Abstract
Trained recurrent networks are powerful tools for modeling dynamic neural computations. We present a target-based method for modifying the full connectivity matrix of a recurrent network to train it to perform tasks involving temporally complex input/output transformations. The method introduces a second network during training to provide suitable "target" dynamics useful for performing the task. Because it exploits the full recurrent connectivity, the method produces networks that perform tasks with fewer neurons and greater noise robustness than traditional least-squares (FORCE) approaches. In addition, we show how introducing additional input signals into the target-generating network, which act as task hints, greatly extends the range of tasks that can be learned and provides control over the complexity and nature of the dynamics of the trained, task-performing network.
Introduction
Training Recurrent Neural Networks (RNNs) is notoriously difficult due to the credit-assignment problem. Determining which specific neurons in a complex, hidden layer are responsible for an incorrect output is a significant challenge. While standard solutions like Backpropagation Through Time (BPTT) exist, they often struggle with long-term dependencies where gradients "vanish" or "explode" over thousands of time steps. An alternative, FORCE learning, typically only modifies a small fraction of the network's connections, which limits its complexity and stability.
The authors introduce full-FORCE, a novel method that modifies the entire connectivity matrix of an RNN. By using a second "target-generating" network to provide internal goals for every neuron, full-FORCE creates networks that are more efficient, robust to noise, and capable of learning complex timing tasks that traditional methods cannot handle.
Methods: The Dual-Network Architecture
The core innovation of full-FORCE is the use of two distinct networks during the training phase:
- The Target-Generating Network (The "Teacher"): This is a random, fixed network driven by the desired output signal ($f_{out}$). Because it is forced to "know" the answer, its internal neurons fluctuate in a way that is mathematically consistent with performing the task.
- The Task-Performing Network (The "Student"): This is the network intended for deployment.
During training, the "Student" network is optimized so that every single one of its internal neurons matches the activity of a corresponding neuron in the "Teacher" network. This is achieved using Recursive Least Squares (RLS) to modify the full connectivity matrix ($J$). By matching the full internal dynamics of a successful "driven" network, the student network inherits a stable, task-relevant dynamical structure.
Tasks and Performance
The paper evaluates full-FORCE on three neuroscience-inspired tasks designed to test dynamical complexity:
- Frequency-Modulated Oscillation: Producing a complex wave triggered by a brief pulse.
- Interval Matching ("Ready-Set-Go"): Producing an output pulse after a delay exactly equal to the time between two input pulses.
- Delayed Comparison: Determining which of two pulses separated by a long delay was larger, testing working memory.
Key Results
- Oscillation Task: A full-FORCE network with 300 units mastered the frequency-modulated wave, while a standard FORCE network of the same size failed completely.
- Noise Resistance: full-FORCE networks showed "graceful degradation" under high Gaussian noise, whereas traditional FORCE networks often experienced total performance collapse.
- Timing and Extrapolation: In the interval matching task, adding "hints" to the teacher network improved the student's success rate from 4% to 91%. Remarkably, these networks could extrapolate to solve the task for time intervals they were never exposed to during training.
Discussion and Insights
By modifying the entire $J$ matrix, full-FORCE "prunes" chaotic instabilities, pulling eigenvalues back from the edge of chaos for higher stability. A standout feature is the use of task hints—extra information given to the "Teacher" network (like a ramping signal) that the "Student" never sees during testing. By mimicking a teacher that had these hints, the student learns to internally generate its own "memory traces."
While powerful, the method has limitations. Updating a full $N \times N$ matrix is computationally expensive as $N$ grows. Additionally, "hints" currently require manual design based on researcher intuition. Future work aims to automate hint discovery and extend the method to biologically realistic spiking neural networks.
Summary updated