arXiv Machine Learning By Maor Farid

Large Language Models as Nonlinear Dynamical Systems: The Three Clocks of Depth, Training, and Generation

Read the original on arXiv Machine Learning →

The paper treats language models as nonlinear dynamical systems, showing that a transformer’s layers, training steps, and token generation each act as a distinct clock exhibiting classic dynamical behaviors such as fixed points, bifurcations, synchronization, chaos, and noise‑driven escape. By mapping fifteen nonlinear‑dynamics concepts onto these clocks, the authors create a Three‑Clock Dictionary and derive reduced‑order models—e.g., softmax as a Boltzmann distribution and attention as a Kuramoto model—to explain phenomena like loss spikes and repetition loops. Experiments on GPT‑2 and Pythia confirm Arrhenius‑like escape from repetition loops, revealing temperature‑dependent behavior that varies with generation length and model size, and the paper outlines twelve open problems for future research.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv Machine Learning.

arXiv AI
Oct 16

Learning to Read Out: Unembedding Dynamics in Language Model Pretraining

The paper investigates when a language model actually learns task information versus when its readout (unembedding matrix) learns to express that information. Using a new parameter‑trajectory cross‑coding method, the authors find that hidden states can encode task data early in training, but the readout reorganizes only in a narrow window (0.4–1.1% of Pythia’s pretraining). By varying the readout learning rate, they show that faster readout learning reduces the gap between hidden‑state encoding and output expression without affecting final performance.

By Matteo He, William F. Shen, Alex Iacob, Andrej Jovanovic, Xinchi Qiu, Nicholas D. Lane
arXiv AI
Nov 6

How Finite Brains Generalize Without Bound: Spatial Memory as a Universal Computer

The paper argues that finite brains generalize to arbitrarily long inputs by using spatial memory that grows with input size while the learner’s observations remain finite. It proposes that this memory is structured as cycles—grid modules, place cells, and hippocampal indices—controlled by a prefrontal system that never directly observes the cycles. Experiments show a neural network trained on strings up to 40 symbols achieves high accuracy on longer sequences, outperforming LSTMs and Transformers on several benchmarks and correctly reversing strings up to 15,015 symbols.

By Yuhang He, Si Wu
arXiv Machine Learning
Oct 3

Stable and Counterfactually Robust Physical World Models from Imposed Structure and Learned Physics

The paper introduces a world model that learns to predict the evolution of physical systems while respecting key physical principles. By hard‑coding a general structure—generating dynamics from the gradient of a learned energy via a fixed reversible operator and imposing constraints on energy, dissipation, and interventions—the model achieves second‑law compatible dissipation, accurate responses to parameter changes, long‑term stability, and robustness to disturbances. Experiments on an electromagnetic cavity, a particle‑in‑cell grid, and shallow‑water fluid demonstrate that the model can recover accurate constitutive functions, distinguish conserving from dissipating regimes, and transfer learned physics to unseen conditions, outperforming unconstrained models.

By Yufeng Wang, Parivesh Priye, Lu Wei, Haibin Ling