Mechanisms of skill transfer from pretraining to target task in recurrent neural networks

JaeHeon Lee, David Hocker, Cristina SavinOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

Researchers have discovered that pretraining Recurrent Neural Networks (RNNs) on specific "sub-skills"—like keeping track of time—is far more effective than simply practicing easier versions of a final task. By building a "dynamical scaffold" during pretraining, the network can solve complex problems using only minor, low-rank adjustments to its internal wiring.

What Problem Does This Paper Address?

We know that "curriculum learning"—starting with easy tasks before moving to hard ones—helps both humans and AI learn better. In machine learning, this is often explained through "loss landscapes," suggesting that easy tasks guide the model toward a good starting point in a massive space of possibilities.

However, we don't really understand the mechanics of this transfer. What exactly is the model "carrying over" from one task to the next? This paper moves beyond abstract landscapes to look at the actual "gears and levers" of the model: its internal dynamical systems. The authors investigate why some curricula lead to massive speedups while others, which seem equally "simple," barely help at all.

Methods

The authors used a standard Recurrent Neural Network (RNN) and tasked it with fixed-length temporal integration. Essentially, the network receives a stream of noisy numbers and must report their running sum over a set period (e.g., 12 time steps).

To understand skill transfer, they compared several pretraining curricula:

  1. Solo Training: Learning the target task from scratch.
  2. Short Integration: Learning to sum numbers over a shorter time window (a "simpler" version of the target).
  3. Counting: Learning to track time (an oscillation) without caring about the sum (a "sub-skill").
  4. Flip-Flop: Learning a simple memory task with a similar mathematical "rank" but different logic.

The researchers analyzed the results using Principal Component Analysis (PCA) to visualize the "shape" of the neural activity and a minimum rank metric to measure how much the network's internal weights had to change to adapt to the new task.

Datasets

The study uses synthetic datasets generated for the specific tasks:

  • Integration Task: Inputs are i.i.d. Gaussian samples ($\mu = \pm 0.3, \sigma = 0.6$). The target is the cumulative sum.
  • Counting Task: The same noisy inputs are provided, but the network must ignore them and output a sine/cosine wave representing the phase of the trial.
  • Flip-Flop Task: A standard benchmark for RNN memory where the network must store and update binary bits based on pulse inputs.

Key Insights and Ideas

  • The "Birdcage" Solution: When solving the integration task, the RNN often develops a beautiful geometric structure the authors call a "birdcage." One part of the network acts like a clock (a limit cycle), while another part acts like a set of parallel bars (line attractors) that track the sum.
  • Scaffolding is Better than Simplification: Surprisingly, pretraining on "Counting" (the clock) was much more effective than pretraining on "Short Integration." The "Counting" task builds the "scaffold" of the birdcage. Once the clock is running, the network only needs to make "low-rank" (minor) tweaks to add the integration bars.
  • Lazy vs. Rich Learning: If the pretraining task provides a good scaffold, the network can be "lazy" during the final task, changing very few internal connections to succeed. If the pretraining is irrelevant (like the Flip-Flop task), the network has to "richly" reorganize its entire structure, which is slow and difficult.
  • Dynamical Incompatibility: Not all simple tasks help. The Flip-Flop task uses "fixed points" (static memories), while integration requires "limit cycles" (moving clocks). Trying to turn a Flip-Flop network into an Integrator is actually harder than starting from scratch because the internal dynamics are fundamentally incompatible.

Key Results

  • Massive Speedups: Networks pretrained on the "Counting" sub-skill reached the target performance significantly faster than those trained on "Short Integration" or solo training.
  • Low-Rank Adaptation: After "Counting" pretraining, the network only required a change of rank ~5 (out of 100 possible dimensions) to solve the target task. In contrast, solo training required much higher-rank changes.
  • Geometric Preservation: Using metrics like Centered Kernel Alignment (CKA), the authors showed that the internal "shape" of the representations learned during pretraining is largely preserved and reused in the final solution.

Limitations and Future Work

The primary limitation is the simplicity of the tasks. While fixed-length integration is a classic "unit test" for RNNs, it is a far cry from the complexity of modern Large Language Models (LLMs). It remains to be seen if these "dynamical scaffolds" exist in the same way within transformer architectures or more complex Reinforcement Learning agents.

The authors suggest that future work should explore continual learning. If we can understand how to build these scaffolds without overwriting them, we might be able to create AI that learns a library of reusable "dynamical motifs," allowing it to master new skills with almost zero additional training.

Summary updated

Abstract

Pretraining on simpler tasks can often improve learning outcomes on a more difficult target task. Nonetheless, what makes for a good pretraining curriculum and the mechanisms of positive transfer across tasks remain poorly understood. Here we use RNNs trained on fixed length temporal integration to compare curricula with varying degrees of effectiveness. We show that pretraining on simpler versions of the target task is less effective than curricula which take advantage of the target task's compositional structure and train sub-skills needed for solving it. By exploiting the highly structured solution of our target task, we can mechanistically explain improvements in speed and quality of learning in terms of the slow features of the RNN dynamics that the curriculum helps build, and the reuse and adaptation of those slow features during target training. Our results argue that pretraining on tasks that individually hone sub-skills required for the target are particularly beneficial, as they build a scaffolding on which additional dynamical systems structures can be compositionally expanded to achieve the final function. Thus, our results document a novel mechanism for repurposing dynamical systems features in support of cognitive flexibility.
BibTeX
@misc{lee2026mechanisms,
  author = {JaeHeon Lee and David Hocker and Cristina Savin},
  title = {{Mechanisms of skill transfer from pretraining to target task in recurrent neural networks}},
  year = {2026},
  url = {https://openreview.net/forum?id=DyOXbjStzW},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure