Language Models Are Implicitly Continuous
Summary
Defines a Continuous Causal Transformer (integral attention) that recovers discrete Transformers at unit duration. On Llama2/3, Phi-3, Gemma 1/2, and Mistral, shrinking token or sentence duration smoothly changes counts (about 190–205% more unique numeric peaks than a discrete model would allow). Linear interpolations of embeddings (apples–bananas) are treated as valid concepts (color, fruit-ness) even when they map to no vocabulary token. Shift-invariant, not scale-invariant. Published at ICLR 2025. Code https://github.com/samuelemarro/continuous-llm-experiments.
- Venue
- arXiv / University of Oxford / University of Bologna / ETH Zurich
- Purpose
- Show pretrained decoder LLMs already behave as continuous-time/space functions over token duration and embeddings
- Scale
- Llama2-13B-Chat, Llama3-8B, Phi-3-Medium, Gemma-1-7B, Gemma-2-9B, Mistral-7B; 200 word-count prompts; 200 tutorial-step counts; 100 two-digit sums; 50 object-pair interpolations
- Time period
- 2025-04-04 (arXiv 2504.03933 v1). Published at ICLR 2025. HF paper publishedAt 2025-04-04.
- Added
- Oct 1, 2026
- Research status
- done
From the source
- Published
- Apr 4, 2025
- arXiv categories
- cs.CL, cs.LG
- Author comment
- Published at ICLR 2025
- Citations
- 5
- References
- 56
- Published in
- International Conference on Learning Representations
Abstract (from arXiv)
Language is typically modelled with discrete sequences. However, the most successful approaches to language modelling, namely neural networks, are continuous and smooth function approximators. In this work, we show that Transformer-based language models implicitly learn to represent sentences as continuous-time functions defined over a continuous input space. This phenomenon occurs in most state-of-the-art Large Language Models (LLMs), including Llama2, Llama3, Phi3, Gemma, Gemma2, and Mistral, and suggests that LLMs reason about language in ways that fundamentally differ from humans. Our work formally extends Transformers to capture the nuances of time and space continuity in both input and output space. Our results challenge the traditional interpretation of how LLMs understand language, with several linguistic and engineering implications.
Tags
Topics
interpretability, continuous representations, Transformer theory
Research notes
- Primary: arxiv abs (cs.CL; also cs.LG). License not stated on abs/HTML at check. Comment: Published at ICLR 2025. Oxford / Bologna / ETH Zurich. Correspondence samuele.marro@eng.ox.ac.uk. Code https://github.com/samuelemarro/continuous-llm-experiments (18 stars at check). HF paper page 3 upvotes; githubRepo linked; no linked models/datasets. Discord posted abs. Prompt experiments only; no new corpus, so no datasets_local row. License field left blank per catalog convention.
Similar entries
- Paper Verbalizable Representations Form a Global Workspace in Language Models
- Paper Natural Language Autoencoders Produce Unsupervised Explanations of LLM Activations
- Paper Shared Circuits for Shared Grammar: Tracing Subject-Verb Agreement Across Languages
- Post Predictive Data Debugging: Reveal and Shape What Your Model Learns, Before You Train
- Paper Capability Provenance in Language Models: A Case Study in Social Reasoning
- Paper Inducing language models to assert their own consciousness restores human beliefs and values