This repository accompagnies our work accepted at the 1st AutoML conference.
Kaitlin Maile, Emmanuel Rachelson, Hervé Luga, Dennis G. Wilson, "When, where, and how to add new neurons to ANNs." AutoML Conference, 2022.
This repository is implemented in Julia/Flux. For implementations of NORTH* metrics and growable architectures in Python/PyTorch, see NeurOps.
The main program for training a growing neural network is found in exp/runneurogenesis.jl
. This script accepts command line arguments, detailed in exp/utilities.jl
, such as the trigger and initialization strategies, base architecture, dataset, and hyperparameters. Models and basic operations are defined in src/models.jl
. Trigger scoring functions are defined in src/scores.jl
. Initialization functions are defined src/initializations.jl
.
-
If you do not have Julia >= 1.6.0, download and install Julia and add it to your
PATH
. -
Clone this repository.
-
From the main directory of this repository, run:
julia --project -e "using Pkg; Pkg.instantiate()"
- To run a single trial of NORTH-Select neurogenesis for a 2 hidden layer MLP on the generated toy data, run:
julia --project exp/runneurogenesis.jl \
--trigger svdacts \
--init orthogact \
--name simtrial \
--expdir outputs \
--seed 1 \
--dataset sim \
--effdim 8 \
--epochs 50
- To run a single trial of NORTH-Pre neurogenesis for a 2 hidden layer MLP on MNIST, run the following line. Note that you will be prompted to whether you would like to download MNIST.
julia --project exp/runneurogenesis.jl \
--trigger svdacts \
--init solveorthogact \
--hidden 2 \
--name mnisttrial \
--expdir outputs \
--seed 1
- To run a single trial of NORTH-Weight neurogenesis for VGG11 on CIFAR10 with a GPU, run the following line. Note that you will be prompted to whether you would like to download CIFAR10.
julia --project exp/runneurogenesis.jl \
--trigger svdweights \
--init orthogweights \
--epochs 100 \
--batchsize 128 \
--name vggcifar10 \
--expdir outputs \
--vgg \
--dataset cifar10 \
--gpu \
--seed 1