Language models suffer from a curse of ambiguity

Nicolas Zucchet, Hyun Dong Lee, Scott Linderman

TL;DR

This paper introduces the "curse of ambiguity" in large language models (LLMs): the more uncertain or diverse the next-token distribution is for a given context, the harder it is for a model to learn it accurately. Through a combination of mathematical proofs and empirical testing, the authors demonstrate that ambiguous contexts demand significantly more parameter capacity, larger embedding dimensions, and longer training times, while also amplifying harmful token-sampling noise.

What Problem Does This Paper Address?

Autoregressive language models generate text one token at a time by predicting a probability distribution over a vocabulary. While traditional applications often rely on greedy decoding (picking the single most likely token), modern LLM capabilities—such as inference-time compute scaling, reinforcement learning (RLHF), and synthetic data generation—depend heavily on sampling from the full distribution. For these techniques to work safely and effectively, the model's output distribution must be well-calibrated, accurately capturing true real-world uncertainty.

However, some prompts are highly deterministic ("The capital of France is..."), while others are deeply ambiguous ("The cat sat on the... [mat/floor/couch]"). This paper investigates a fundamental bottleneck: How does the inherent ambiguity of a context affect a neural network's ability to accurately master its next-token distribution?

Methods

The authors simplify the analytical challenge by isolating the final linear head (the softmax layer) of the transformer, framing next-token prediction as a multi-class logistic regression problem. They model ambiguity by defining a target distribution that is uniform over a random support of size $k$ (where a larger $k$ signifies greater ambiguity).

They analyze this setup through four theoretical frameworks:

  1. Model Capacity (Hebbian Model): Using an associative memory framework to determine the maximum number of contexts a model can accurately recall.
  2. Embedding Dimension (Compressed Sensing): Applying convex polytope theory to find the minimum embedding dimension ($h$) required to represent a distribution of support size $k$.
  3. Optimization Dynamics (Gradient Flow): Modeling gradient flow on cross-entropy loss to evaluate learning speeds across different phases of training.
  4. Stochastic Optimization (SDEs): Utilizing stochastic differential equations to quantify how training on single-token samples (rather than full distribution vectors) introduces gradient noise.

Finally, they validate these theoretical insights using both controlled synthetic transformers and real-world pretrained LLMs.

Datasets

  • Synthetic 3-gram Dataset: Constructed from the TinyStories corpus, restricted to a vocabulary of the 2,000 most frequent words. This setup provides an exact, mathematically verifiable ground-truth distribution for every word pair.
  • Real-World Corpus: Dolma v1.7. Because true language distributions are unobservable in the wild, the authors use a large model (OLMo-2 13B) as a proxy for the ground truth and evaluate a smaller model (OLMo-2 1B) against it.

Key Insights and Ideas

  • The Four Roots of the Curse: The difficulty of handling ambiguity is hardcoded into both architecture and optimization:
  • Capacity: Storing a distribution with a support size of $k$ requires $k$ times more parameter space than a deterministic one ($\text{capacity} \propto hd/k$).
  • Dimension: To avoid the "softmax bottleneck," the embedding dimension must scale linearly with ambiguity ($h \ge 2k$).
  • Optimization: Ambiguity slows down initial training because the model encounters each valid continuation less frequently, resulting in a weaker gradient signal.
  • Noise Floor: Because models train on single token samples rather than full probability vectors, stochastic gradient descent hits an asymptotic variance floor that degrades as $k$ increases.
  • Systematic "Leakage": When models struggle with ambiguous contexts, their primary failure mode is systematically leaking probability mass outside of the valid support tokens, which artificially inflates the entropy of the generated text.
Figure 1: Architectural roots of the curse of ambiguity: ambiguous distributions require more parameters to be stored and larger embeddings to be represented. Schematic description of the theoretical analysis of Section 3, depicting how the network capacity (left) and the required embedding dimension (right) depend on our measure of ambiguity, which is the number of possible next tokens k (the support size) under the ground-truth distribution. The capacity is proportional to the number of parameters and inversely proportional to k, while the required embedding dimension grows proportionally with k, with a larger constant when the backbone cannot produce arbitrary embeddings (realistic vs. ideal backbone). Capacity predictions are empirically validated in Appendix A.6.

Key Results

  • Theoretical Bounds: The paper proves that exact distribution representation requires an embedding dimension of $h \ge 2k$ for an ideal backbone, or $h = \Omega(k \log(d/k))$ under realistic, noisy conditions.
  • Ablation Alignments: In synthetic tasks, increasing total parameter capacity or training duration uniformly improves performance. Conversely, expanding the embedding dimension or optimizing the full KL divergence (removing sampling noise) specifically rescues performance on highly ambiguous contexts.
  • Real-World Verification: Evaluations of OLMo models on the Dolma corpus confirmed a clear, positive correlation between a model's loss (KL divergence) and the context's effective support size at any fixed context frequency.
Figure 2: Learning roots of the curse of ambiguity: ambiguous distributions require more optimization steps to be learned and amplify the noise coming from next-token sampling. Simulation of the dynamics theoretically analyzed in Section 4. Increasing the support size k slows down initial gradient descent on the expected loss and yields larger losses in the long run (left), and widens the gap between sampled-batch trajectories and the expected-loss dynamics (right). The insights from this simplified one-context toy model extend to a linear head trained on many contexts of mixed ambiguity, as shown in Appendices C.2 and D.6.

Limitations and Future Work

  • Lack of Contextual Structure: The theoretical models treat contexts as independent and unstructured. In natural language, semantic similarities (e.g., synonyms) allow models to share features and bypass pure memorization, partially mitigating the curse.
  • Proxy Dependencies: The real-world analysis assumes that the OLMo-2 13B model represents the absolute "ground truth" distribution of natural text, which is an imperfect assumption.
  • Future Directions: The authors suggest exploring how data structure naturally counteracts this curse, examining whether neural networks inherently favor memorizing deterministic sequences over stochastic ones, and designing new loss functions to mitigate the token-sampling noise floor.

Summary updated

BibTeX
@inproceedings{zucchet2026language,
  author = {Nicolas Zucchet and Hyun Dong Lee and Scott Linderman},
  title = {{Language models suffer from a curse of ambiguity}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=hY4qGi3waD},
}
Figure