Large Language Models as Nonlinear Dynamical Systems: The Three Clocks of Depth, Training, and Generation
Maor Farid
Abstract
Language models are dynamical systems. A transformer is iterated over its layers, over the steps of its training and over the tokens it generates, and on each of these three clocks it shows behavior that nonlinear dynamics has studied for a century: fixed points, bifurcations, synchronization, chaos and noise-driven escape from potential wells. The two communities rarely meet, so this behavior is often rediscovered under new names. We build a bridge between them. To describe, we condense about 200 papers into the Three-Clock Dictionary, which maps fifteen concepts of nonlinear dynamics onto each clock and marks every correspondence as proved, measured or conjectured, and we show each concept in a mechanical system and in a language model side by side. To explain, we derive reduced-order models: the softmax is a Boltzmann distribution, gradient descent an Euler step on a nonlinear spring, a loss spike a ball thrown out of a stiff valley, attention on the circle a Kuramoto model, and a repetition loop a well that deepens while it is occupied. We then test these explanations on open language models, on a laptop CPU. Escape from repetition loops in GPT-2 and Pythia follows the Arrhenius law with the logit gap as the barrier, and the barrier deepens and then saturates, so the temperature needed to leave a loop falls like 1/ N with the generation length N and rises with model size. Coherent text lives in a narrow window of temperatures, which a small reasoning model shares at its recommended temperature. Training makes each Pythia layer more expansive, and a small transformer trains at a multi-mode edge of stability. The third step, solving problems of language models, is still ahead: controllers derived from the escape analysis remove loops but do not yet beat the best fixed temperature. We state twelve open problems where nonlinear dynamics could get there.
Create a lesson
Related papers
Margin Dynamics for Large Language Model Alignment
Shared title terminology · Xingzi Xu, Mehmet Saygin Seyfioglu, Karim Bouyarmane
Depth-Linked Residual Tokens for Multimodal Retrieval and Generation
Shared title terminology · Jiangfan Zhang, Wentao Bao, Xian Wu et al.
Neural Conditional Gaussian Model: Efficient Data Assimilation with Sequential Uncertainty Quantification for Nonlinear Dynamics
Shared title terminology · Chuanqi Chen, Nan Chen
OceanCoder: A Verification-Guided Large Language Model for Automated Simulation Modelling in Ocean Engineering
Shared title terminology · Can Xue, Changhong He, Ziyi Sun et al.
Large-scale Neuron Community Discovery Reveals Neuron-Sparse Behaviors in Language Models
Shared title terminology · Igor Shilov, Thomas Fel, Tal Haklay et al.
Beyond Attribute-Centric Fairness: Modelling and Mitigating Unified Bias Representation in Omni-modal Large Language Models
Shared title terminology · Runqi Lin, Suqin Yuan, Zihao Fu et al.