Abstract
Traditional linguistics and computer science model language as a discrete sequence of symbols. However, modern Large Language Models (LLMs) are built upon continuous mathematical functions. This paper investigates whether LLMs implicitly treat language as a continuous flow rather than a discrete sequence. By introducing the Continuous Causal Transformer (CCT) framework, the authors demonstrate that standard LLMs can process "fractional" tokens and interpolate between semantic concepts in embedding space. The findings suggest that LLMs operate on an "alien" linguistic logic that is fundamentally continuous in both time and space.
Introduction
In the standard paradigm of Natural Language Processing, text is tokenized into discrete units. A model receives a sequence of integers, maps them to vectors, and predicts the next discrete token. Yet, the underlying neural networks are smooth function approximators. This research explores the tension between discrete inputs and continuous architectures, asking: Do LLMs secretly harbor continuous representations of language?
To answer this, the authors examine two dimensions of continuity:
- Time Continuity: How the model behaves when the "duration" of a token in a sequence is treated as a fractional value rather than a unit of one.
- Space Continuity: How the model interprets vectors that exist in the mathematical vacuum between valid vocabulary embeddings.
The Continuous Causal Transformer (CCT)
The authors propose a theoretical generalization of the Transformer architecture called the Continuous Causal Transformer (CCT). In a standard Transformer, the attention mechanism calculates a weighted sum over a discrete set of tokens. The CCT replaces this sum with an integral over a continuous-time function.
Mathematically, the authors prove that existing pretrained LLMs are a specific, discretized instance of the CCT where every token has a duration of exactly $d=1$. This realization allows researchers to probe existing models—such as Llama 3, Mistral, and Gemma—for continuous behavior without the need for retraining. By modifying attention masks and positional encodings to accept floating-point values, they can simulate sequences where tokens have non-integer lengths.
Methodology
The study utilizes several synthetic datasets and custom prompt templates to isolate specific logical behaviors:
Time Continuity Experiments
To test temporal continuity, the authors fed models sequences where token durations were mathematically "shrunk." For example, in a word-counting task (e.g., "apple apple apple apple"), the duration of each "apple" token was reduced from 1.0 toward 0.0. They also tested mathematical reasoning, such as asking for the sum of two numbers while shrinking the duration of the operands.
Space Continuity Experiments
To test spatial continuity, the authors bypassed the discrete vocabulary entirely. They injected linear interpolations between two embeddings (e.g., a vector $V = 0.5 \cdot \text{apple} + 0.5 \cdot \text{banana}$) directly into the model. They then prompted the model to reason about this "alien" intermediate token ($\star$), asking questions about its category, color, or properties.
Key Insights and Results
The Reality of Fractional Tokens
The experiments revealed that LLMs intuitively grasp the concept of "half a token." In counting tasks, as token duration was reduced, the models' numerical predictions transitioned smoothly. For instance, a model counting four apples would gradually shift its prediction to three, then two, as the duration decreased. Across various models, this temporal manipulation produced 190% more unique numerical predictions than a strictly discrete model would allow, rising to 205% when entire sentences were shrunk.
Emergent "Fuzzy" Semantics
In the embedding interpolation tests, models demonstrated a sophisticated ability to reason about non-existent concepts. When presented with a vector halfway between "apple" and "banana," models like Llama 3 and Mistral correctly identified the object as a fruit. More impressively, when asked for the object's color, the models often responded with "green"—a logical intermediate between a red apple and a yellow banana. In approximately 80% of these tests, the model's probabilistic outputs stayed within the logical bounds defined by the two endpoint tokens, suggesting a stable and predictable internal map of continuous meaning.
Mathematical Sensitivity
Temporal continuity also affected symbolic logic. When the duration of the number "13" was shrunk in the prompt "The sum of 24 and 13 is", the models' outputs shifted from "3" (the first digit of 37) to "2" (treating the input as if the "13" had vanished or reduced in magnitude, leading to a sum in the 20s).
Discussion and Limitations
These findings suggest that LLMs do not process language using human-like discrete logic. Instead, they rely on a fluid representation of concepts that defies traditional linguistic boundaries. This "alien" processing style allows them to handle noise and ambiguity with remarkable flexibility.
However, the study notes several limitations. The current CCT framework assumes a stepwise constant function for simplicity; future work could explore piece-wise polynomials or more complex continuous functions. Additionally, while the study proves the existence of continuous behavior, the internal mechanistic reasons—how specific weights facilitate this interpolation—remain to be fully decoded.
Conclusion
By demonstrating that LLMs are implicitly continuous, this research opens new avenues for model efficiency and generation. The ability to operate in continuous time and space could lead to new parallel generation techniques or more robust pretraining methods. Ultimately, the paper challenges the fundamental assumption that language must be treated as a sequence of discrete symbols, suggesting that the future of AI may lie in mastering the spaces between the words.
Summary updated