Searcharxiv⌕ Search

arXiv · 2610.31692

Chaos and bifurcations in continuous language-model feedback

Abstract

Feeding a pretrained language model the expected embedding of its own next-token distribution turns it into a discrete-time dynamical system with continuous states. Across Qwen2.5, OLMo-2 and Llama-3 models from 0.5B to 72B parameters, temperature and activation steering move this loop between repeating text and chaos, with positive finite-time Lyapunov exponents. The loop's derivative factorizes into the inverse temperature, the covariance of token embeddings under the next-token distribution (a cross-covariance for untied embeddings) and the network's Jacobian. In one model studied in detail, along recorded orbits, the growth that steering adds comes mainly from the readout, where next tokens compete. The periodic windows show the quantitative signatures of low-dimensional maps, from saddle-node scaling and Feigenbaum's constant to shrimp-shaped domains; passage times predicted in advance from the model's derivatives came within one return-map iterate of the measured passage times in 42 of 48 cases over two prospective stages (24 and 18 of 24), and interval arithmetic proves attracting periodic orbits of the full transformer map. Numerical reproducibility depends on the dynamical regime: changing only the batch layout changed the text of 173 of 192 chaotic float64 loops in the smallest model, compared with only 7 of 192 periodic ones. These results show that bifurcation theory can make quantitative predictions about continuous language-model feedback, with rigorous guarantees for selected periodic orbits of the full transformer.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Timothy D. Jones. 2026-10-20. Chaos and bifurcations in continuous language-model feedback. https://arxiv.org/abs/2610.31692

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Dynamics and non-integrability of the Swinging Atwood Machine with a massive string: chaos, periodic orbits and resonance structures

Building upon our previous studies on nonlinear variable-length pendulum systems, we investigate the Swinging Atwood Machine with a massive string. In contrast to the classical model, string inertia introduces a configuration-dependent moment of inertia, leading to a modified Hamiltonian structure and substantially richer dynamics. To uncover the global organization of the phase space, we combine Poincaré sections, bifurcation diagrams, and Lyapunov exponent maps with our recently developed numerical framework ,,Lyapunov Refined Maps". This approach provides a unified visualization of periodic, quasi-periodic, chaotic, and terminating motions, revealing intricate resonance networks and high-order periodic structures. We investigate the influence of the string mass, system parameters, and energy by constructing Lyapunov maps in parameter and initial-condition spaces and on fixed-energy surfaces. Liouville integrability is studied within the Morales-Ramis theory. By analyzing the normal variational equations along explicit non-stationary radial solutions and applying the Kovacic algorithm, we prove that the differential Galois group is generically SL(2,C), providing a rigorous obstruction to meromorphic Liouville integrability for every nonzero string mass. Thus, the exceptional integrable case of the classical Swinging Atwood Machine is destroyed by the inclusion of string inertia.

nlin.CD↗

Nonintegrability theorem on perturbed integrable Hamiltonian dynamical systems with two independent resonances

In this paper we establish a new theorem for nonintegrability of a perturbed, autonomous, two-degree-of-freedom Hamiltonian dynamical system with two independent resonances, based on a criterion which utilizes the well-known theorem of Poincaré and a Lie-series symplectic transformation. We also make certain assumptions and suggestions as to when the theorem holds and when it does not.

nlin.CD↗

Modal interactions in strongly nonlinear coupled oscillators with closely spaced modes and nonclassical damping distribution

Linear and nonlinear mechanical structures with closely spaced modes and non-classical (nonproportional) damping distribution are susceptible to modal interactions with energy exchanges between modes. In this work we analyze these interactions in a two-degree-of-freedom (2 DoF) coupled oscillator subject to impulse excitation, utilizing action-angle variables and the method of multiple scales. To show the basic steps of the methodology we start from the linear system, then proceed to analyze modal interactions in the system with strongly nonlinear cubic stiffness nonlinearity. In contrast to the linear case, once the dynamics of the nonlinear system is captured in 1:1 resonance, strongly nonlinear modal interactions occur depending on energy. These regimes as well as attraction to capture, 1:1 capture and escape from capture are analyzed in detail. Our analytical study determines the ranges of parameter values for which nonlinear modal interactions due to resonance capture occur. The analytical predictions are fully verified by direct numerical simulations of the governing equations of motion. Possible extensions of the present work to systems of oscillators with more DoF and other types of dissipative elements, e.g., friction or hysteresis are discussed.

nlin.CD↗