Energy-Entropy Regularization: The True Power of Minimal Looped Transformers
Wai-Lun Lam
TL;DR
The paper tackles the difficulty of training a minimal single-head looped Transformer by reframing optimization as a physical process governed by energy and entropy. It introduces Energy-Entropy Regularization (EER), combining Tsallis entropy with Hamiltonian latent dynamics to sculpt a funnel-like loss landscape and guide the model toward stable, globally optimal solutions. A key theoretical contribution is a contraction bound (Theorem 3.2.1) linking attention entropy to contractivity, enabling stable fixed-point convergence even in low-dimensional latent spaces ($d=8$). Empirically, the authors demonstrate length-generalization to $L=1000$ on the induction head task with a compact model, and show a characteristic phase transition where performance dramatically improves as kinetic energy and entropy are dissipated and potential wells deepen, supported by resource-efficient hardware experiments.
Abstract
Recent research suggests that looped Transformers have superior reasoning capabilities compared to standard deep architectures. Current approaches to training single-head looped architectures on benchmark tasks frequently fail or yield suboptimal performance due to a highly non-convex and irregular loss landscape. In these settings, optimization often stagnates in poor local minima and saddle points of the loss landscape, preventing the model from discovering the global minimum point. The internal mechanisms of these single-head looped transformer models remain poorly understood, and training them from scratch remains a significant challenge. In this paper, we propose a novel training framework that leverages Tsallis entropy and Hamiltonian dynamics to transform the geometry of the loss landscape. By treating the parameter updates as a physical flow, we successfully trained a single-head looped Transformer with model dimension $d = 8$ to solve induction head task with input sequence length of 1000 tokens. This success reveals the internal mechanism behind the superior reasoning capability.
