How Many Different Outputs Can a Transformer Generate?
Maxime Meyer, Mario Michelessa, Caroline Chaux, Vincent Tan
Overview
This talk investigates a fundamental limitation of modern Large Language Models (LLMs): their inability to reliably handle or generate tasks and outputs that diverge significantly from their training data distribution. Using a motivating example where ChatGPT struggles to construct a sentence featuring words entirely from ten different languages, the speakers explore whether such edge-case outputs are merely statistically improbable or fundamentally inaccessible due to the mathematical properties of transformer architectures.

Key moments
- 0:00 Introduction and motivating example of transformer limitations
- 2:00 Theoretical framework and embedding space analysis
- 4:00 Experimental setup using the cramming task
- 6:00 Conclusion and summary of findings
- 6:40 Q&A: Connection to automata theory and Myhill-Nerode equivalence classes
- 8:00 Q&A: Discussion on model quantization and tested model suites
How Many Different Outputs Canem a Transformer Generate?
Speakers: Maxime Meyer; Mario Michelessa; Caroline Chaux; Vincent Tan
Conference: ICML
YouTube: https://slideslive.com/39083549
Overview
This talk investigates a fundamental limitation of modern Large Language Models (LLMs): their inability to reliably handle or generate tasks and outputs that diverge significantly from their training data distribution. Using a motivating example where ChatGPT struggles to construct a sentence featuring words entirely from ten different languages, the speakers explore whether such edge-case outputs are merely statistically improbable or fundamentally inaccessible due to the mathematical properties of transformer architectures.
The core contribution of this work is a theoretical and empirical framework that explains how transformer embedding spaces partition into token-specific zones. Because transformers operate with finite numerical precision, these zones shrink exponentially as output length increases, creating strict mathematical limits on the total number of unique outputs a model can generate. Given by Maxime Meyer and his co-authors Mario Michelessa, Caroline Chaux, and Vincent Tan, this talk matters because it shifts the analytical lens away from over-parameterized weight matrices and onto the geometry of the embedding space itself, offering a novel way to quantify model capacity and generation limits.
Background
▶ Watch: Introduction and motivating example of transformer limitations (0:00)
In the machine learning and systems research community, it is well-documented that LLMs experience sharp performance degradation when evaluated on out-of-distribution (OOD) prompts. Prior work has largely attributed this phenomenon to dataset bias, inadequate pre-training token diversity, or poor alignment during Reinforcement Learning from Human Feedback (RLHF). However, treating these failures solely as training data gaps overlooks the underlying structural constraints of neural network hardware and numerical representation.
Transformers process information within high-dimensional continuous embedding spaces. While continuous spaces suggest infinite capacity in theory, digital hardware relies on finite-precision representations—effectively limiting the number of distinct bits a model can leverage. When mapping continuous soft prompts to discrete natural language tokens via greedy decoding (or deterministic generation), the mapping is bounded. In automata theory and formal languages, similar state-partitioning concepts exist (such as Myhill-Nerode equivalence classes), but translating these concepts to massive, non-linear deep learning systems remains an open challenge. This research bridges that gap by formalizing how finite precision interacts with high-dimensional geometric partitioning in standard transformer architectures.
Key Findings
▶ Watch: Experimental setup using the cramming task (4:00)
The authors arrive at three main theoretical predictions, which they successfully validate through empirical benchmarking:
- Exponential Decay Threshold: Beyond a specific critical threshold of output length, the proportion of accessible target outputs drops off exponentially fast.
- Linear Scaling Law: The threshold governing output accessibility scales linearly with the size of the input prompt length ($M$) relative to the output length ($N$).
- Bounding Model Capacity: The research establishes a mathematical upper bound on the linear scaling factor, capturing how model capacity changes across different architectural families and parameter scales.
Using the cramming task framework introduced by Yuri Kuratov, the authors evaluated accessibility across multiple architectures including the Pythia suite, Llama, and Gemma. Their theoretical upper bounds predicted empirical scaling factors within a tight ratio of 5 to 10 across models, proving that simple geometric analysis of embedding spaces can reliably track capacity differences across distinct model families.
Technical Deep Dive
▶ Watch: Conclusion and summary of findings (6:00)
The technical heart of the analysis centers on how transformer embedding spaces partition and how numerical precision dictates accessibility. The high-dimensional embedding space is partitioned into zones where every zone corresponds to a specific token. Common tokens occupy larger zones, while rare or out-of-distribution tokens occupy exponentially smaller zones.
When analyzing sequence generation across multiple tokens ($1, 2, 3, 4, 5$, etc.), the corresponding geometric zones shrink exponentially fast. Because transformers possess a finite number of bits (finite precision), there is a physical boundary to this shrinking process:
$$\text{Prompt Space Size} \sim C^M$$
$$\text{Output Space Size} \sim V^N$$
Where $M$ is the length of the prompt, $C$ is a constant determined by embedding geometry, $V$ is the vocabulary size, and $N$ is the length of the output. Because the output space scales exponentially as $V^N$ while the discretized soft prompt space scales as $C^M$, a strict mathematical bottleneck emerges. When the number of possible outputs exceeds the number of uniquely addressable prompt partitions, entire subsets of natural language sentences become fundamentally inaccessible to deterministic generation.
To formalize this, the authors discretized the prompt space into balls of radius $\epsilon$, where $\epsilon$ represents the transformer's numerical precision. By bounding the embedding space into various geometric shapes and applying advanced bounding techniques, they derived upper bounds on the linear scaling factor that closely track empirical performance across diverse open-weights models.
Experimental Setup & Results
▶ Watch: Q&A: Connection to automata theory and Myhill-Nerode equivalence classes (6:40)
The empirical evaluation relied heavily on the cramming task methodology. Given a fixed pre-trained transformer model $\tau$ and a fixed memory size or prompt length $M$, the experimental pipeline sampled target outputs $X$ of varying lengths $N$. Gradient descent was then applied to find a prompt of length $M$ that successfully yielded the target output under deterministic/greedy decoding. If a valid input was found, the target was deemed accessible.
- Models Evaluated: The Pythia suite (spanning sizes from 160 million, 410 million, to 1 billion parameters), alongside Llama and Gemma models.
- Metrics: Proportion of accessible target outputs as a function of output length $N$; ratio of theoretical upper bounds to observed empirical slopes.
- Headline Results:
- Empirical accessibility curves demonstrated a sharp, exponential drop-off past the predicted capacity threshold.
- Plotted accessibility thresholds (e.g., the 50% accessibility mark) confirmed a strict linear scaling relationship with input prompt size $M$.
- Theoretical upper bound ratios remained stable (ranging between 5 and 10) across widely different model families. For instance, while empirical scaling factors varied by a factor of 3 between different model configurations (ranging from 40 to 140), the theoretical upper bound ratios tracked this variation tightly within a narrow 9-to-10 window.
Practical Implications
▶ Watch: Q&A: Discussion on model quantization and tested model suites (8:00)
For ML practitioners and infrastructure teams, these findings provide a sobering reminder that scaling model parameters does not magically eliminate fundamental geometric and precision bottlenecks. Even if a model is trained on trillions of tokens, deterministic generation under finite precision enforces hard ceilings on output coverage.
Model builders must recognize that out-of-distribution failure modes are not exclusively semantic; they are heavily influenced by embedding space geometry and numerical resolution. While the study did not explicitly test various quantization schemes during the core experiments, the heavy reliance on finite precision ($\epsilon$-balls) implies that aggressive quantization (such as INT4 or FP4) could artificially shrink accessible zones further, exacerbating generation failures on rare or composite reasoning tasks.
Key Takeaways
- Geometric Bottlenecks: Transformers partition embedding spaces into token zones that shrink exponentially fast for rare or complex sequences.
- Finite Precision Limits: Due to finite bit precision, overly long or complex target outputs become mathematically inaccessible, regardless of prompt engineering.
- Linear Scaling Thresholds: The transition point where output accessibility begins an exponential decline scales linearly with input prompt length ($M$).
- Predictable Capacity Ratios: Analyzing just a fraction of the model parameters (the embedding space) yields accurate theoretical upper bounds that track capacity variations across architectures like Pythia, Llama, and Gemma.
- Beyond Data Volume: OOD failure is partly a structural limitation of discrete mapping from continuous high-dimensional spaces, highlighting that data collection alone cannot solve all generation boundaries.
About the Speaker(s)
- Maxime Meyer: Presenting joint research work on transformer output accessibility.
- Mario Michelessa: Co-author of this research on transformer outputs and accessibility.
- Caroline Chaux: Co-author of this research on transformer outputs and accessibility.
Co-authors: Vincent Tan.
Reviews
→ Top-rated talks at International Conference on Machine Learning 2026
All talks from International Conference on Machine Learning 2026