Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lib_circuitnet

Open-source replication attempt of CircuitNet: CircuitNet: A Generic Neural Network to Realize Universal Circuit Motif Modeling, Wang et al., in Pytorch.

Content 🔍

This repository proposes an attempt to replicate the CircuitNet architecture for image classification only, as a personal project. A main script is available to run training on MNIST and CIFAR-10, following the hyperparameters set by the paper. Another script proposes a "raw" genetic selection approach to set the hyperparameters, aiming to converge to the article's proposed ones (why not grid search? For "fun" :) ).

NB: The base core prototype of the module script was developed with ChatGPT-4, then iteratively and manually corrected and refined. Several differences and ambiguous points remain between this proposal and the paper's implementation. There is a minor gap between the accuracy of this script and the paper's performance of about 0.2%.

How to run it ? 🚀

  1. Clone the repository:
    git clone https://github.com/kevinhelvig/lib_circuitnet.git
    
  2. Navigate to the repository folder:
    cd lib_circuitnet
    
  3. Install the required dependencies:
    pip install torch torchvision
    
  4. Run the main script:
    python main.py
    

References and hints ❓

The CircuitNet approach proposes a model that mimic more accurately how the brain looks to work regarding the "networks and graph theory" angle to study the brain : the different regions of the brain look to be organized following a "small worlds" topology, where densely connected nodules processes local or mono-modal information, with very sparse and limited connections between these different areas.

Several interesting papers linked (to be completed)

Future works ? 🚧

This repo should be considered primarily as a personal project and isn't intended to be pursued or extended further. However, several improvements might be added in the longer term for fun or by other coders:

  • Replication of experiments proposed in reinforcement learning and/or forecasting?
  • Modifications to the script to reproduce the paper more accurately?
  • Adapt CircuitNet to NLP for token prediction?
  • Come back to spiking neurons instead ? (more biologically plausible ?)

About

Replication attempt of CircuitNet [CircuitNet: A Generic Neural Network to Realize Universal Circuit Motif Modeling] in Pytorch

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages