KPFlow: An Operator Perspective on Dynamic Collapse Under Gradient Descent Training of Recurrent Networks

James Hazelden, Laura Driscoll, Eli Shlizerman, Eric Shea-BrownarXiv 2025 · DOI · arXiv

Abstract

Recurrent neural networks (RNNs) frequently exhibit "dynamic collapse" during training, where high-dimensional hidden states settle into simple, low-dimensional patterns. We present KPFlow, a theoretical framework that decomposes gradient descent into distinct parameter ($K$) and temporal flow ($P$) operators. Our analysis reveals that the network's own architecture, specifically the low-rank nature of the $K$ operator, acts as a bottleneck that drives this simplicity bias. We validate this framework on neuroscience-inspired tasks, demonstrating how initial connectivity scales influence learning speed and representation dimensionality.

Introduction

A persistent observation in training recurrent systems like RNNs and Gated Recurrent Units (GRUs) is dynamic collapse. Despite their high-dimensional capacity, these models often converge to simple, low-dimensional solutions such as fixed-point attractors or rings. While this "simplicity bias" aids interpretability and generalization, a rigorous explanation for finite, non-linear models has been lacking. Existing theories, such as the Neural Tangent Kernel (NTK), primarily address the infinite-width limit, leaving a gap in our understanding of how specific recurrent architectures shape learning in practical settings.

The KPFlow Framework

The authors introduce the KPFlow decomposition, which formalizes the gradient flow—the change in hidden states during learning—as a product of three linear operators: $$\delta z = -[P \circ K \circ P^*](Err)$$

The KPFlow decomposition maps error signals through adjoint ($P^*$), parameter ($K$), and flow ($P$) operators to determine hidden state updates.
  1. The Parameter Operator ($K$): Analogous to the NTK for feed-forward networks, $K$ describes how weight changes translate into network tangents. Crucially, $K$ is proven to be a low-rank operator, restricting weight updates to a narrow subspace.
  2. The Linearized Flow Propagator ($P$): This operator characterizes how perturbations at one timepoint propagate through the trajectory, linking learning dynamics to Lyapunov stability and optimal control.
  3. Consensus SVD: To handle the computational demands of these large operators, a "matrix-free" Singular Value Decomposition (SVD) approach was developed to analyze massive datasets across trials and timepoints.

Experimental Validation

The framework was tested on several benchmarks:

  • Memory-Pro Task: A classic spatial memory task requiring the reproduction of 2D coordinates after a delay.
  • Multi-task Suite: Investigating representation sharing across tasks like Memory-Pro/Anti and Delay-Pro/Anti.
  • Biophysical Models: Extension to Hodgkin-Huxley neuron models to demonstrate the framework's broad applicability.

Understanding Dynamic Collapse

The primary driver of dynamic collapse is the $K$-bottleneck. Because $K$ is low-rank, it filters out most of the error signal, forcing the network to learn within a highly constrained subspace. This collapse is a fundamental property of the architecture; even before training, the rank of $K$ is significantly lower than that of $P$.

Experimental results on the Memory-Pro task showing (B) convergence time vs. connectivity scale $g$, (C) the effective rank of $K$ before and after training, and (D, F) the evolution of neural trajectories.

Key findings include:

  • Rank Disparity: In a 256-unit RNN, the $K$ operator's effective rank is often as low as ~7, while $P$ remains high-rank, confirming parameterization as the source of simplicity bias.
  • Connectivity and Speed: Larger initial weights (higher connectivity scale $g$) increase the effective rank of $K$, widening the "bottleneck" and leading to faster convergence.
  • Multi-task Alignment: An "Interference Matrix" derived from KPFlow can predict task-sharing patterns early in training, long before hidden state representations align.

Discussion and Future Directions

While KPFlow provides a robust analytical tool, several areas remain for future exploration. A rigorous derivation of why $P$ consistently maintains high rank is still needed. Additionally, applying this framework to massive models trained on complex, high-dimensional data (e.g., large language models) will test its scalability. Finally, the KPFlow perspective offers a path toward designing new optimization algorithms that explicitly manipulate the rank of $K$ to control the degree of dynamic collapse.

Summary updated

Abstract

Gradient Descent (GD) and its variants are the primary tool for enabling efficient training of recurrent dynamical systems such as Recurrent Neural Networks (RNNs), Neural ODEs and Gated Recurrent units (GRUs). The dynamics that are formed in these models exhibit features such as neural collapse and emergence of latent representations that may support the remarkable generalization properties of networks. In neuroscience, qualitative features of these representations are used to compare learning in biological and artificial systems. Despite recent progress, there remains a need for theoretical tools to rigorously understand the mechanisms shaping learned representations, especially in finite, non-linear models. Here, we show that the gradient flow, which describes how the model's dynamics evolve over GD, can be decomposed into a product that involves two operators: a Parameter Operator, K, and a Linearized Flow Propagator, P. K mirrors the Neural Tangent Kernel in feed-forward neural networks, while P appears in Lyapunov stability and optimal control theory. We demonstrate two applications of our decomposition. First, we show how their interplay gives rise to low-dimensional latent dynamics under GD, and, specifically, how the collapse is a result of the network structure, over and above the nature of the underlying task. Second, for multi-task training, we show that the operators can be used to measure how objectives relevant to individual sub-tasks align. We experimentally and theoretically validate these findings, providing an efficient Pytorch package, \emph{KPFlow}, implementing robust analysis tools for general recurrent architectures. Taken together, our work moves towards building a next stage of understanding of GD learning in non-linear recurrent models.
BibTeX
@misc{hazelden2025kpflow,
  author = {James Hazelden and Laura Driscoll and Eli Shlizerman and Eric Shea-Brown},
  title = {{KPFlow: An Operator Perspective on Dynamic Collapse Under Gradient Descent Training of Recurrent Networks}},
  year = {2025},
  eprint = {2507.06381},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.06381},
}
Figure