Definition
Assume a discrete sentence is really an integer sampling of an underlying continuous-time function on , taken in the simplest case as stepwise-constant: , subject to the intervals partitioning and ; each token’s duration is . The Continuous Causal Transformer (CCT) replaces discrete causal attention with an integral over this continuous function:
where , , use the same, unchanged pretrained weight matrices — the operator is a generalization of the attention mechanism applied to a richer input space, not a retrained model. Dropping the constraint that takes values only in the discrete embedding lattice (so arbitrary points of , e.g. linear interpolations between two token embeddings, are valid continuous “sentence” values) is the companion space-continuity extension.
Exact reduction to discrete attention
Under the stepwise-constant assumption, the integral is proven (not just argued) to reduce exactly to — standard discrete causal attention exactly recovered when every duration . A companion equivalence shows Euler-discretizing the integral is the same as standard attention with duration-weighted coefficients. CCT is therefore not a new architecture requiring retraining, but a strict mathematical generalization of the operator already implemented by any pretrained Transformer’s weights.
Key evidence
Marro, Evangelista, Huang, La Malfa, Lombardi & Wooldridge (2025, ICLR 2025) run pretrained Llama2-13B-Chat, Llama3-8B, Phi-3-Medium-4k-Instruct, Gemma-1-7B, Gemma-2-9B and Mistral-7B through the CCT operator with two kinds of off-lattice continuous input intervention, in both cases directly manipulating the input and measuring the behavioral output effect:
Time continuity — continuously shrinking a repeated token’s duration (e.g. “apple” repeated times, duration factor swept over ) and recording which count the model outputs: a genuinely discrete model should output a fixed count almost everywhere in the sweep (one “peak”), but every model tested instead outputs multiple distinct counts as duration varies continuously — normalized peak frequency averages 0.74 observed vs. 0.26 expected under the discrete-model counterfactual for single-token duration shrinking (up to 3.60x more distinct outputs than the discrete baseline, e.g. Llama2-13B 0.260.92), and 0.67 vs. 0.22 (3.28x) for full-sentence event-duration shrinking on 200 how-to tutorials — replicated across all six models.
Space continuity — linearly interpolating between two token embeddings (200 records, 40 interpolation steps) and measuring output smoothness via a normalized max-derivative (empirical Lipschitz) estimate (global average 6.214, range 4.96-9.28 across models) and an excursion statistic (how far the interpolated output probability strays outside the range spanned by the two endpoint outputs; global average 0.034, with 20.79% of records exceeding a 0.05 threshold). Off-lattice embedding points — which map to no real token — still produce smoothly-varying, semantically consistent next-token distributions rather than noise (e.g. an “apple”-“banana” interpolation passing through an intermediate point whose top prediction is “green,” a non-trivial semantic composition of the two fruits’ colors, not a simple average). A translation/scaling ablation (Appendix D) confirms CCT output is empirically shift-invariant (shifting all positions by up to 10 has negligible effect) but not scale-invariant (uniformly scaling durations changes output substantially), consistent with RoPE’s known translation-invariance; the effect is weaker, but still present, in GPT-2 (learned positional embeddings, no RoPE).
See
shrinking-token-duration-or-interpolating-embeddings-produces-multiple-distinct-smoothly-varying-outputs-from-pretrained-llms-under-a-provably-attention-equivalent-continuous-time-operator.
Relative to manifolds-1d-continuum and linear-direction
Unlike 1D continuum manifold or Linear Direction, which describe a learned geometric shape found by probing already-trained representations, this operator is a architecture-level mathematical generalization applied at inference time — the “continuity” claim is about the function the (unmodified) weights compute on an enlarged, continuous input domain, not about a shape discovered in the model’s own activations.
Key papers
- Marro, Evangelista, Huang, La Malfa, Lombardi & Wooldridge (2025). Language Models Are Implicitly Continuous. ICLR 2025, arXiv:2504.03933 — origin of the Continuous Causal Transformer and the time/space continuity experiments documented above.