Abstract
The construction of biologically plausible models of neural circuits is crucial for understanding the computational properties of the nervous system. Constructing functional networks composed of separate excitatory and inhibitory neurons obeying Dale's law presents a number of challenges. We show how a target-based approach, when combined with a fast online constrained optimization technique, is capable of building functional models of rate and spiking recurrent neural networks in which excitation and inhibition are balanced. Balanced networks can be trained to produce complicated temporal patterns and to solve input-output tasks while retaining biologically desirable features such as Dale's law and response variability.
Introduction
In the biological brain, excitatory (E) and inhibitory (I) inputs to a neuron are typically massive but nearly cancel each other out, maintaining a "balanced" state. This dynamic balance is essential for metabolic efficiency and high-speed signaling. However, replicating this in artificial recurrent neural networks (RNNs) is difficult due to two primary constraints. First, Dale’s Law requires that synaptic weights have fixed signs (positive for E, negative for I), a hard constraint that standard training algorithms like Backpropagation or Recursive Least Squares (RLS) often fail to satisfy. Second, many training methods inadvertently lead to "parametric balance," a fragile state where weights are fine-tuned to zero, rather than the robust dynamic balance observed in nature.
Methods: Target-Based Learning and BCD
To address these challenges, we utilize a target-based learning strategy. This framework employs a "teacher" network, driven by the desired output, to generate target internal currents. A "student" network is then trained to autonomously reproduce these internal currents.
Because standard RLS cannot handle sign constraints, we introduce Bounded Constrained Coordinate Descent (BCD). BCD updates weights individually to minimize error while strictly ensuring they never flip signs, thus preserving Dale's Law. Furthermore, we found that standard $L_2$ regularization (penalizing weight magnitude) pushes networks toward an unrealistic parametric balance. We instead implement $J_0$ regularization, which encourages the network to remain close to its initial balanced state, forcing the learning process to find solutions within the dynamically balanced regime.
Results and Key Insights
The framework was evaluated on several complex tasks, including autonomous oscillations (e.g., sawtooth waves), chaotic dynamics (Lorenz attractor), and cognitive tasks like temporal XOR. The spiking networks achieved 96% accuracy on the XOR task while maintaining the irregular, noisy spiking activity characteristic of real neurons.
A key finding is the "Regularization Trap": standard machine learning penalties often destroy dynamic balance by pushing weights toward zero. As shown in the figure above, $J_0$ regularization allows the network to maintain stability and realistic current scaling as the network size $N$ increases. Additionally, these BCD-trained networks are naturally "noise-canceling," showing high resilience to common-mode perturbations while remaining sensitive to differential signals, mirroring cortical observations.
Discussion
This approach demonstrates that biologically constrained RNNs can be both functional and robust. While the current method relies on a teacher network to provide targets—raising questions about how biological systems might generate such targets endogenously—it provides a powerful tool for building large-scale, biologically plausible models. Future work will explore bridging the gap between rate-based teachers and spiking students to capture even finer temporal dynamics.
Summary updated