Low-Rank RNN Learning Dynamics
Extends the low-rank RNN framework from activity analysis to learning dynamics by deriving gradient-descent ODEs in reduced overlap space, revealing invisible structure that encodes training history.
Metadata
- Source: arXiv:2605.04115
- Authors: Yoav Ger, Omri Barak
- Published: 2026-05-05
- Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Neurons and Cognition (q-bio.NC)
Core Methodology
Key Innovation
Low-rank RNNs have been well-studied for their activity dynamics — how connectivity maps to function. However, the learning process (how synaptic changes reshape representations) remained theoretically opaque. This work derives a closed-form, low-dimensional system of ODEs that governs gradient-descent learning directly in the overlap space, providing analytical tractability for understanding RNN learning.
Overlap Space Decomposition
The central theoretical contribution is the decomposition of overlaps into two classes:
Loss-Visible Overlaps
- Fully determine network activity, output, and loss
- Define the functional mapping of the network
- What traditional low-rank analysis focuses on
Loss-Invisible Overlaps
- Do NOT affect current network function
- Are REQUIRED to describe the learning process
- Act as memory variables encoding training history
- Explain why functionally equivalent networks learn differently
Mathematical Framework
- Low-Rank Connectivity: Express RNN weights as
W = m n^T where m, n are low-rank factors
- Overlap Definition:
q = n^T x where x is the network state (overlap between readout vector and state)
- Gradient Flow in Overlap Space: Derive ODEs for
dq/dt under gradient descent
- Exact for linear RNNs
- Asymptotically exact for nonlinear RNNs in the large-N Gaussian limit
- Decomposition: Split
q into visible (q_v) and invisible (q_i) components:
q_v → determines loss, evolves under gradient
q_i → invisible to loss, but evolves via coupling with q_v
Two Key Phenomena
1. Learning Exposes Connectivity Differences
- Two networks with identical input-output behavior (same loss-visible overlaps)
- May have different loss-invisible overlaps (different internal connectivity)
- Under learning, these differences become visible — the networks diverge
- Implication: Functional equivalence ≠ learning equivalence
2. Loss-Invisible Overlaps as Memory
- Invisible overlaps encode training history
- They persist after training and affect future learning trajectories
- Characterized conditions for when this memory effect occurs
- Implication: Training history leaves persistent traces in network structure
Implementation Guide
Prerequisites
- Understanding of low-rank RNN framework
- Familiarity with gradient descent dynamics
- Knowledge of statistical physics / mean-field theory for large-N limits
Analytical Steps
Define Low-Rank Parameterization:
W = sum_{r=1}^R m_r n_r^T (rank R << N)
Define Overlap Variables:
q_r = n_r^T h (projection of hidden state onto readout vectors)
Derive Gradient Flow:
dW/dt = -eta * dL/dW
=> dm_r/dt = ... (depends on visible overlaps)
=> dn_r/dt = ... (depends on visible + invisible overlaps)
Separate Visible/Invisible Components:
q_visible = components that affect loss
q_invisible = orthogonal complement (zero gradient w.r.t. loss)
Analyze Coupled Dynamics:
dq_visible/dt = f_visible(q_visible) (direct gradient)
dq_invisible/dt = f_invisible(q_visible, q_invisible) (coupled evolution)
Code Example
import numpy as np
from scipy.integrate import solve_ivp
def low_rank_rnn_learning_dynamics(t, state, N, R, activation='tanh'):
"""
Gradient descent dynamics in overlap space for low-rank RNN.
Args:
state: [q_visible, q_invisible] concatenated
N: network size
R: rank of connectivity
activation: nonlinearity
"""
q_v = state[:R] # loss-visible overlaps
q_i = state[R:] # loss-invisible overlaps
# Compute derivatives (simplified linear case)
dq_v = -learning_rate * (W_visible @ q_v - target)
dq_i = coupling_matrix @ q_v + A_invisible @ q_i
return np.concatenate([dq_v, dq_i])
# Solve for learning trajectory
sol = solve_ivp(
low_rank_rnn_learning_dynamics,
t_span=[0, 100],
y0=np.concatenate([q_v_init, q_i_init]),
args=(N=1000, R=2)
)
Applications
- Understanding RNN training dynamics: Why some initializations converge faster
- Network pruning analysis: What structure is preserved/lost during fine-tuning
- Transfer learning: How pre-training history affects downstream adaptation
- Biological learning predictions: Testable hypotheses about synaptic plasticity
- Functionally equivalent networks: Understanding why "same function, different weights" matters for learning
- Continual learning: Invisible overlaps as implicit memory of past tasks
Pitfalls
- Large-N approximation: Results are asymptotically exact only in the infinite-width limit
- Linear vs. Nonlinear: Closed-form exact only for linear RNNs; nonlinear requires Gaussian approximation
- Loss landscape: Assumes smooth, differentiable loss — not applicable to discrete/quantized settings
- Rank assumption: Framework requires low-rank structure; full-rank networks don't benefit from dimensionality reduction
Related Skills
- nonlinear-rnn-fixed-connectivity-solution
- cavity-method-rnn-analysis
- rnn-task-degradation-analysis
- spiking-mode-neural-networks
- attractor-metadynamics-neural
1---2name: low-rank-rnn-learning-dynamics3description: "Framework for analyzing learning dynamics in low-rank RNNs via overlap space decomposition. Distinguishes loss-visible overlaps (determine activity/output/loss) from loss-invisible overlaps (encode training history). Enables understanding of why functionally equivalent networks learn differently. Activation: low-rank RNN learning, RNN overlap space, loss-visible invisible, RNN gradient descent dynamics, RNN learning theory, Ger Barak RNN."4metadata:5 source: https://skillmd.com/skills/hiyenwong/low-rank-rnn-learning-dynamics6---78# Low-Rank RNN Learning Dynamics910> Extends the low-rank RNN framework from activity analysis to learning dynamics by deriving gradient-descent ODEs in reduced overlap space, revealing invisible structure that encodes training history.1112## Metadata13- **Source**: arXiv:2605.0411514- **Authors**: Yoav Ger, Omri Barak15- **Published**: 2026-05-0516- **Subjects**: Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Neurons and Cognition (q-bio.NC)1718## Core Methodology1920### Key Innovation2122Low-rank RNNs have been well-studied for their **activity dynamics** — how connectivity maps to function. However, the **learning process** (how synaptic changes reshape representations) remained theoretically opaque. This work derives a closed-form, low-dimensional system of ODEs that governs gradient-descent learning directly in the **overlap space**, providing analytical tractability for understanding RNN learning.2324### Overlap Space Decomposition2526The central theoretical contribution is the decomposition of overlaps into two classes:2728#### Loss-Visible Overlaps29- Fully determine network activity, output, and loss30- Define the functional mapping of the network31- What traditional low-rank analysis focuses on3233#### Loss-Invisible Overlaps34- Do NOT affect current network function35- Are REQUIRED to describe the learning process36- Act as **memory variables** encoding training history37- Explain why **functionally equivalent networks learn differently**3839### Mathematical Framework40411. **Low-Rank Connectivity**: Express RNN weights as `W = m n^T` where `m, n` are low-rank factors422. **Overlap Definition**: `q = n^T x` where `x` is the network state (overlap between readout vector and state)433. **Gradient Flow in Overlap Space**: Derive ODEs for `dq/dt` under gradient descent44 - Exact for **linear RNNs**45 - Asymptotically exact for **nonlinear RNNs** in the large-N Gaussian limit464. **Decomposition**: Split `q` into visible (`q_v`) and invisible (`q_i`) components:47 - `q_v` → determines loss, evolves under gradient48 - `q_i` → invisible to loss, but evolves via coupling with `q_v`4950### Two Key Phenomena5152#### 1. Learning Exposes Connectivity Differences53- Two networks with identical input-output behavior (same loss-visible overlaps)54- May have different loss-invisible overlaps (different internal connectivity)55- Under learning, these differences become visible — the networks diverge56- **Implication**: Functional equivalence ≠ learning equivalence5758#### 2. Loss-Invisible Overlaps as Memory59- Invisible overlaps encode training history60- They persist after training and affect future learning trajectories61- Characterized conditions for when this memory effect occurs62- **Implication**: Training history leaves persistent traces in network structure6364## Implementation Guide6566### Prerequisites67- Understanding of low-rank RNN framework68- Familiarity with gradient descent dynamics69- Knowledge of statistical physics / mean-field theory for large-N limits7071### Analytical Steps72731. **Define Low-Rank Parameterization**:74 ```75 W = sum_{r=1}^R m_r n_r^T (rank R << N)76 ```77782. **Define Overlap Variables**:79 ```80 q_r = n_r^T h (projection of hidden state onto readout vectors)81 ```82833. **Derive Gradient Flow**:84 ```85 dW/dt = -eta * dL/dW86 => dm_r/dt = ... (depends on visible overlaps)87 => dn_r/dt = ... (depends on visible + invisible overlaps)88 ```89904. **Separate Visible/Invisible Components**:91 ```92 q_visible = components that affect loss93 q_invisible = orthogonal complement (zero gradient w.r.t. loss)94 ```95965. **Analyze Coupled Dynamics**:97 ```98 dq_visible/dt = f_visible(q_visible) (direct gradient)99 dq_invisible/dt = f_invisible(q_visible, q_invisible) (coupled evolution)100 ```101102### Code Example103104```python105import numpy as np106from scipy.integrate import solve_ivp107108def low_rank_rnn_learning_dynamics(t, state, N, R, activation='tanh'):109 """110 Gradient descent dynamics in overlap space for low-rank RNN.111 112 Args:113 state: [q_visible, q_invisible] concatenated114 N: network size115 R: rank of connectivity116 activation: nonlinearity117 """118 q_v = state[:R] # loss-visible overlaps119 q_i = state[R:] # loss-invisible overlaps120 121 # Compute derivatives (simplified linear case)122 dq_v = -learning_rate * (W_visible @ q_v - target)123 dq_i = coupling_matrix @ q_v + A_invisible @ q_i124 125 return np.concatenate([dq_v, dq_i])126127# Solve for learning trajectory128sol = solve_ivp(129 low_rank_rnn_learning_dynamics,130 t_span=[0, 100],131 y0=np.concatenate([q_v_init, q_i_init]),132 args=(N=1000, R=2)133)134```135136## Applications137138- **Understanding RNN training dynamics**: Why some initializations converge faster139- **Network pruning analysis**: What structure is preserved/lost during fine-tuning140- **Transfer learning**: How pre-training history affects downstream adaptation141- **Biological learning predictions**: Testable hypotheses about synaptic plasticity142- **Functionally equivalent networks**: Understanding why "same function, different weights" matters for learning143- **Continual learning**: Invisible overlaps as implicit memory of past tasks144145## Pitfalls146147- **Large-N approximation**: Results are asymptotically exact only in the infinite-width limit148- **Linear vs. Nonlinear**: Closed-form exact only for linear RNNs; nonlinear requires Gaussian approximation149- **Loss landscape**: Assumes smooth, differentiable loss — not applicable to discrete/quantized settings150- **Rank assumption**: Framework requires low-rank structure; full-rank networks don't benefit from dimensionality reduction151152## Related Skills153154- nonlinear-rnn-fixed-connectivity-solution155- cavity-method-rnn-analysis156- rnn-task-degradation-analysis157- spiking-mode-neural-networks158- attractor-metadynamics-neural