Dynamical Learning of Dynamics

Christian Klos, Yaroslav Felipe Kalle Kossio, Sven Goedeke, Aditya Gilra, Raoul-Martin MemmesheimerPhysical 2020 · DOI

Abstract

The ability of humans and animals to quickly adapt to novel tasks is difficult to reconcile with the standard paradigm of learning by slow synaptic weight modification. Here, we show that fixed-weight neural networks can learn to generate required dynamics by imitation. After appropriate weight pretraining, the networks quickly and dynamically adapt to learn new tasks and thereafter continue to achieve them without further teacher feedback. We explain this ability and illustrate it with a variety of target dynamics, ranging from oscillatory trajectories to driven and chaotic dynamical systems.

Introduction

The standard paradigm in neuroscience and artificial intelligence posits that learning occurs through the slow modification of synaptic weights, a process known as synaptic plasticity. However, biological systems often exhibit an extraordinary ability to adapt to new tasks with a speed that far exceeds typical weight-tuning timescales. While recurrent neural networks (RNNs) can learn complex dynamics, they generally require weight updates for each new task or a continuous external "teacher" signal to maintain performance. This research addresses a fundamental question: How can a neural network with static weights rapidly learn and subsequently recall a new dynamical task autonomously?

Methodology: Learning Without Weight Changes

The authors propose a two-stage framework using an RNN of "leaky rate neurons" that shifts the burden of learning from structural weight changes to fast state-space dynamics.

1. Pretraining (Meta-learning)

Using the FORCE rule, the network's output weights are trained to generate a "family" of signals (e.g., sinusoids of varying frequencies) alongside a corresponding "context" signal $c(t)$. This phase effectively teaches the network to act as an autoencoder for dynamics, mapping specific internal context states to specific output trajectories.

2. Dynamical Learning (Inference)

Once weights are fixed, the network encounters a novel target from the same family. The error between the network's output and the target is fed back as an input. This error signal acts as a driving force, pushing internal dynamics toward the correct "context" for the specific target.

3. Autonomous Recall

After a brief imitation period, the error feedback is removed, and the context variable is "clamped" to its average value. The network then continues to generate the learned trajectory independently.

Schematic of the pretraining (a) and dynamical learning (b) phases.

Results across Diverse Dynamical Systems

The flexibility of this approach was tested across several synthetic task families, demonstrating both high capacity and extreme speed. The networks typically learn new tasks within a few characteristic timescales of the target dynamics.

  • Periodic and Complex Oscillations: The network successfully learned sinusoids and complex Fourier series (up to order 10). Larger networks (3,000 neurons) achieved a median success rate of nearly 90% for high-order series.
  • Driven and Chaotic Systems: The model adapted to driven systems, such as an overdamped pendulum, and even chaotic systems like the Lorenz attractor. In the Lorenz task, the network captured the underlying "tent map" structure—the mathematical signature of the attractor—proving it learned the system's fundamental rules rather than just memorizing a path.
Performance across diverse tasks including complex Fourier series (a, d), driven dynamics (c), and chaotic Lorenz systems (e, f).

Key Insights and Discussion

The "context" variable $c(t)$ functions similarly to a tuning dial; pretraining establishes a manifold of possible behaviors, and the error signal during dynamical learning "tunes" the network to the appropriate point on that manifold. This "learning by imitation" allows for rapid adaptation without structural modification.

Generalization and Biological Plausibility

The network demonstrates true generalization, learning the underlying "vector field" of a task family. For instance, a network pretrained on white-noise-driven pendulums can correctly respond to triangular wave drives. Furthermore, while the FORCE rule is an engineering tool, the authors show that similar results can be achieved using weight perturbation, a more biologically plausible reinforcement learning mechanism.

Limitations

The primary constraint is the reliance on pretraining; the network can only learn new "representatives" of a family it already understands (e.g., it cannot learn to draw squares if only pretrained on circles). Additionally, the current model requires manual "clamping" of the context variable for recall, suggesting the need for future internal "latching" mechanisms to achieve full biological autonomy.

Summary updated

BibTeX
@inproceedings{klos2020dynamical,
  author = {Christian Klos and Yaroslav Felipe Kalle Kossio and Sven Goedeke and Aditya Gilra and Raoul-Martin Memmesheimer},
  title = {{Dynamical Learning of Dynamics}},
  booktitle = {Physical},
  year = {2020},
  doi = {10.1103/physrevlett.125.088103},
}
Figure