A dynamical systems theory of reward-modulated learning in linear recurrent networks
Abstract
We study how recurrence shapes sparse-reward learning in linear recurrent networks trained with a linearised REINFORCE rule in a high-dimensional teacher–student setting. We show that learning is governed by the temporal responses of the student and teacher, which determine the joint Gaussian statistics of their trajectories. Recurrence introduces temporal correlations, making the probability of receiving a reward a Gaussian persistence problem. We characterise its exponential decay with episode length through the dominant eigenvalue of a transfer operator, and show that recurrence can either increase or decrease reward availability depending on the alignment of temporal responses. These changes in trajectory statistics can accelerate or delay escape from sparse-reward plateaus, while in a reward-limited regime plateau-escape times grow exponentially with episode length. Our results provide a quantitative theory of how recurrent connectivity and sparse reward interact during learning.
Overview of contributions
TL;DR
We provide a theory for reward-driven learning in linear recurrent neural networks within a teacher-student setting.
How does recurrent connectivity shape learning from rewards when a task requires an entire sequence of correct actions for success?
We study this question in linear recurrent networks trained with a linearised REINFORCE rule in a teacher–student setting. The student receives a reward only when its decisions agree with the teacher’s decisions at every time step within an episode. The very presence of recurrent connections introduces temporal dependences between decisions, thereby changing the probability of success of a learning episode.
[ - put schematic from video - ]
Here,
- we connect the probability of a successful episode to the alignment of the (impulse) response vectors of the two networks.
- We show that the relative alignment of the initial response vectors determined by the initial weight configuration can either increase or decrease reward availability.
- We find that the instantaneous weight updates are dominated by a few shared collective directions.
- Our theory seperates reward availability from the expected updates conditioned on success.
- We further show how different connectivity realisations result in different learning trajectories albeit starting from same initial performance.
Teacher-student reward-driven learning
We view the in recurrent neural networks in a teacher-student setting in terms of the persitence probability of a correlated Gaussian process (that of the joint output pre-activations). Rewarded episodes result from the continual agreement between teacher and student, i.e. from trials where the joint output Gaussian process remains within the agreement orthants ((+,+) or (-,-)).
Reward requires agreement throughout the episode
Both teacher and student see the same inputs at every time step, but process them throgh different connectivity to generate decisions. Instead of considering the hard-sign binary decisions of each network, we focus at the output pre-activations, and , i.e. the values before the sign operation of the network readout. For the two networks to agree, the pre-activations are sufficient to have the same sign, i.e. to fall within the first or third quadrant in the space. Thus to secure a successful episode the joint output trajectory of the teacher-student pair has to remain within this agreement region, and change decision signs in tandem.
A killed transfer operator
Since success requires the joint teacher-student trajectory to remain within the agreement region, we can compute the success probability by emplying a Feynman-Kac style operator for discrete time process that kills trajectories that hit the bounderies of the agreement regions at decision time steps. This amounts to introducing a so called killed Transfer operator whose eigenspectrum reveals and in particular its dominant eigenvalue, reveals the long-time behaviour of trajectories described by this killed process.
Learning updates concentrate in few collective directions
The presence of the single readout enforces a shared subspace structure to the learning fileds of the input weights and recurrent weights . We find that the instantaneous learning updates have a shared sub-space structure, where the left factor of the instantaneous update is confined within a Krylov like subspace spanning the iterative application of the recurrent connectivity matrix to the readout Thus the column-space of the learning field lies within , , whose dimensionality is limited by the duration of the episode and size of recurrent network, .
This motivates a reduced representation of the learning dynamics in what we call the projected shared-subspace model which is inspired by the diagonal structure of spectrally aligned networks learning with gradient minimising objectives introduced mainly by Saxe et al. and the low-rank networks describing collective interactions within the network introduced by Mastrogiuseppe et al. Here, the development of network connectivity deviates from both low-dimensional descriptions, but the instantaneous learning updates, at least for the settings we consider and given the aforementioned readout constraint, are rank deficient.
The same behavioural output at initialisation can lead to different learning trajectories
The success probability of the
Video
Wide visual
%I constrained the maximum width of the text column to make sure it’s readable even when the screen is wide. But images and other visuals should “break out” and take up more %horizontal space: for this, try wrapping them in the Wide component.
Figure with caption
Wrap a visual in a Figure component to add a caption.
Comparison slider
Use the Comparison component to compare two visuals with an interactive slider.
Tab panels
Tab panels are a great way to display a labeled collection of related visuals without taking up too much space.
Carousel
A carousel is another useful pattern for a collection of visuals that don’t necessarily have meaningful labels.
Two columns
Use the two columns component to display two columns of content. In this example, the first column contains a YouTube video embed and the second column contains an interactive 3D model viewer. By default, they display side by side, but if the screen is narrow enough (for example, on mobile), they’re arranged vertically.
You can also add formulas, rendered during the build process using so they’re quick to load for visitors of your project page. You can write them inline, like this: . Or, you can write them as a block:
Citation
If you copy your bibliography into ./bibliography.bib, you can cite papers using their BibTeX keys, and they’ll be automatically formatted and included in the bibliography section at the end. For example: (Vaswani et al., 2017). Note that these citations are distinct from footnotes1, which show up in a separate section if you use them.
Table
Add simple tables using GitHub Flavored Markdown syntax:
| Model | Accuracy | F1 score | Training time (hours) |
|---|---|---|---|
| BERT-base | 0.89 | 0.87 | 4.5 |
| RoBERTa-large | 0.92 | 0.91 | 7.2 |
| DistilBERT | 0.86 | 0.84 | 2.1 |
| XLNet | 0.90 | 0.89 | 6.8 |
BibTeX citation
Displaying the BibTeX entry for your paper in a code block makes it easy to copy and paste.
@misc{roman2024academic, author = "{Roman Hauksson}", title = "Academic Project Page Template", year = "2024", howpublished = "\url{https://research-template.roman.technology}",}Bibliography
Footnotes
-
On the web, they should really be called “endnotes”, since each page constitutes a full document. ↩