Abstract
Traditional artificial neural networks (ANNs) are predominantly designed as Directed Acyclic Graphs (DAGs) to facilitate global backpropagation. However, biological brains exhibit complex cyclic structures. This paper introduces Cyclic Neural Networks, which leverage the Forward-Forward (FF) algorithm to enable localized training within cyclic topologies. By replacing global error gradients with local loss functions, we demonstrate that non-sequential architectures, such as complete graphs, can outperform standard layer-by-layer models on benchmarks like MNIST and NewsGroup.
Introduction
Since the inception of deep learning, the architectural design of neural networks has been constrained by the mathematical requirements of Backpropagation (BP). BP necessitates a clear, acyclic path to propagate error gradients from the output back to the input. Consequently, most ANNs are structured as sequential layers.
In contrast, biological systems, such as the C. elegans connectome, reveal a highly interconnected web characterized by feedback loops and cycles. By adhering strictly to DAGs, current AI research may be overlooking a vast design space of more flexible and biologically plausible architectures.
Methodology
The proposed framework decouples network topology from the constraints of backpropagation by utilizing the Forward-Forward (FF) algorithm.
Computational Neurons and Local Loss
Instead of simple nodes, this architecture employs "computational neurons"—independent units that function as mini-MLPs. Each unit is optimized using a local loss function, learning to distinguish "positive" data from "negative" data independently. This eliminates the need for a global gradient.
Cyclic Topologies
The shift to local optimization allows for arbitrary network shapes. The authors explore "Graph Over Multi-layer Perceptron" (GOMLP) structures, including:
- Cycle Graphs: Neurons connected in a closed loop.
- Complete Graphs: A fully connected topology where every neuron communicates with every other neuron.
- Random Graphs: Small-world and scale-free models.
A final readout layer aggregates outputs from all computational neurons to perform classification tasks.
Experimental Results
The Cyclic NN (GOMLP) was evaluated against traditional BP-trained chains across three datasets: MNIST (vision), NewsGroup (text), and IMDB (sentiment analysis).
| Model | MNIST (Error %) | NewsGroup (Error %) | IMDB (Error %) |
|---|---|---|---|
| BP-Chain | 1.77 | 42.11 | 17.16 |
| FF-Complete | 1.54 | 38.36 | 17.58 |
The FF-Complete model, a fully connected cyclic graph, consistently outperformed or matched the performance of traditional sequential models. This suggests that the sequential bottleneck of modern ANNs may limit information flow, and that cyclic connectivity can enhance representational power.
Discussion and Key Insights
The success of cyclic structures trained with local loss functions offers several key insights:
- Information Flow: Breaking the sequential chain allows for more robust information exchange, as evidenced by the superior performance of the complete graph.
- Biological Plausibility: The model aligns more closely with Hebbian learning principles. It supports "extensibility," allowing for the dynamic addition of neurons without full retraining.
- Privacy and Parallelism: The absence of global gradients mitigates "gradient leakage" risks and facilitates highly parallelized optimization.
Limitations
Despite these advantages, the model is sensitive to hyperparameters like the number of message-passing iterations ($T$). Excessive iterations can lead to "over-smoothing," where neurons lose their specialized expertise. Furthermore, while promising on small-to-medium datasets, the scalability of cyclic architectures to the level of Large Language Models (LLMs) remains a subject for future investigation.
Conclusion
Cyclic Neural Networks represent a significant departure from the DAG-based status quo. By leveraging local optimization, we can build architectures that more closely mimic the complexity of biological brains, potentially unlocking new frontiers in AI efficiency and performance.
Summary updated