Self-building Neural Networks

Andrea Ferigo, Giovanni Iacca · DOI

TL;DR

This paper introduces the Self-building Neural Network (SBNN), a novel architecture that mimics the brain's synaptogenesis and pruning processes. By combining Hebbian learning for network growth with magnitude-based pruning, SBNNs dynamically adapt their structure based on task experience, leading to improved performance and better generalization compared to traditional fixed-architecture neural networks.

What Problem Does This Paper Address?

The human brain is remarkably efficient and adaptable, a feat attributed in part to its dynamic development. During early life, neurons form connections (synaptogenesis), and later, less useful connections are pruned. While artificial neural networks (ANNs) have achieved impressive results, they typically rely on fixed architectures designed a priori. This paper addresses the gap between the brain's adaptive structural development and the static nature of most ANNs. Specifically, it aims to create a model that can learn its own optimal structure through experience, mirroring the biological processes of synaptogenesis and synaptic pruning. This could lead to more efficient, adaptable, and potentially more biologically plausible AI systems.

Methods

The core innovation is the Self-building Neural Network (SBNN), which integrates two key mechanisms:

  • Hebbian Learning: This is a biologically inspired plasticity rule where synaptic weights are strengthened based on the correlated activity of pre- and post-synaptic neurons. The paper uses the ABCD model, a task-agnostic plasticity rule that updates weights after each forward pass. This mechanism drives the "growth" of connections.
  • Magnitude-Based Pruning: After a certain period of learning (across episodes), the SBNN applies global magnitude pruning. This involves removing connections with weights below a certain threshold, determined by a user-defined pruning rate. Crucially, the SBNN decides when to prune, not just how much.

The SBNN starts with all possible connections initialized to zero. During task execution, Hebbian learning activates and strengthens these connections. Once pruning is triggered, Hebbian learning is halted, and the network operates with its pruned structure. A novel procedure is also introduced to handle cycles in the network graph after pruning, ensuring a valid topological order for activation.

Datasets

The paper uses three classical control tasks from OpenAI Gym for training and evaluation:

  • Cart Pole: Balancing an inverted pendulum.
  • Mountain Car: Driving a car up a steep hill.
  • Lunar Lander: Landing a spacecraft safely.

These are standard benchmarks for reinforcement learning agents, allowing for direct comparison with existing methods.

Key Insights and Ideas

  • Dynamic Structure is Key: The SBNN demonstrates that allowing a network to dynamically build and prune its own structure based on experience can lead to significant advantages over fixed architectures.
  • Pruning as a Performance Enhancer: Contrary to intuition, pruning doesn't just reduce complexity; it actively improves performance by removing noise and focusing on essential connections. This effect is more pronounced in SBNNs than in traditional networks.
  • Task-Specific Architectures Emerge: The SBNN naturally develops different network structures for different tasks, suggesting that the "brain" it builds is tailored to the specific problem it's solving.
  • Early Learning is Sufficient: The experiments suggest that even a single episode can provide enough information for the SBNN to effectively prune its connections, highlighting the efficiency of the learning process.
  • Generalization Through Structure: SBNNs show superior generalization capabilities, adapting better to unseen tasks, especially when a significant portion of the network has been pruned. This implies that the learned structure is more robust and transferable.

Key Results

  • Improved Performance: SBNNs generally outperform traditional Feed-Forward Neural Networks (FFNNs) on the tested OpenAI tasks, particularly Mountain Car and Lunar Lander.
  • Robustness to Pruning: The performance of SBNNs degrades less significantly than FFNNs as the pruning rate increases.
  • Generalization: SBNNs demonstrate better adaptation to unseen tasks, especially when over 80% of weights are pruned.
  • Structural Differences: FFNNs tend to utilize most of their connections, while SBNNs often develop sparse structures with two distinct peaks in connection usage (one very sparse, one dense), suggesting different emergent strategies.
  • Parameter Sensitivity: The timing of pruning (pruning time, pt) is a critical hyperparameter, with earlier pruning (lower pt) generally leading to better performance.

Limitations and Future Work

  • Parameter Optimization: The paper acknowledges that the number of parameters to optimize in SBNNs can be significantly higher than in FFNNs due to the ABCD rule per connection. Future work aims to address this by exploring neuron-level plasticity rules and modifying update rules.
  • Activation Order: Handling cycles in the pruned network requires a procedure to establish a topological order. The current method uses a distance-based approach, but further refinement is suggested.
  • Complexity of Tasks: The current experiments are on relatively simple control tasks. The authors plan to test SBNNs on more complex problems, such as soft robot control, and larger input/action spaces.
  • Automated Pruning Decisions: Future research will focus on developing systems that can automatically decide when and how much to prune based on the information flow within the network.

Summary updated

BibTeX
@inproceedings{ferigo2023self,
  author = {Andrea Ferigo and Giovanni Iacca},
  title = {{Self-building Neural Networks}},
  booktitle = {GECCO Companion},
  year = {2023},
  doi = {10.1145/3583133.3590531},
}
Figure