Continuity and Isolation Lead to Doubts or Dilemmas in Large Language Models
Hector Pasten, Felipe Urrutia, Hector Jimenez, Cristian B. Calderon, Cristóbal Rojas, Alexander Kozachinskiy
TL;DR
This work analyzes fundamental theoretical limits of decoder-only Transformers with compact positional encoding by identifying two core phenomena: isolation, which prevents learning two nearby infinite sequences, and continuity, which fosters stability of outputs under small prompt changes. The authors prove these properties hold generally for such models and corroborate them with empirical studies across modern LLMs on zero-fundamental sequences, code-syntax verification, and periodic pattern generation. The findings imply that even simple pattern learning is inherently constrained: no single model can learn all periodic sequences or multiple nearby sequences, revealing intrinsic doubts or dilemmas in the learnability landscape. The work highlights the practical impact on prompt design, model capabilities, and the limits of current architectures, while noting that certain architectural or training adjustments (e.g., unbounded positional encodings or extended chain-of-thought) might alter these limits.
Abstract
Understanding how Transformers work and how they process information is key to the theoretical and empirical advancement of these machines. In this work, we demonstrate the existence of two phenomena in Transformers, namely isolation and continuity. Both of these phenomena hinder Transformers to learn even simple pattern sequences. Isolation expresses that any learnable sequence must be isolated from another learnable sequence, and hence some sequences cannot be learned by a single Transformer at the same time. Continuity entails that an attractor basin forms around a learned sequence, such that any sequence falling in that basin will collapse towards the learned sequence. Here, we mathematically prove these phenomena emerge in all Transformers that use compact positional encoding, and design rigorous experiments, demonstrating that the theoretical limitations we shed light on occur on the practical scale.
