Language models suffer from a curse of ambiguity
Organizations: Stanford University
Abstract
Large language models increasingly rely on sampling as a driver of their own improvement, making the fidelity of their learned distributions more critical than ever. Yet, not all distributions are equally easy to learn. In this work, we identify a curse of ambiguity: in large language models, and more broadly in all neural networks that produce discrete probability distributions, the more ambiguous a next-token distribution is, the harder it is to learn accurately. Through an extensive theoretical analysis, we trace this curse to architectural and learning roots. More ambiguous distributions require more capacity to be stored, larger embeddings to be represented, more steps to be fitted, and amplify token-sampling noise. We validate these findings on synthetic tasks with controlled ground truth and observe the same signatures in language models trained on real data. Our results provide a new perspective on the statistical capabilities of large language models and a practical framework for when to trust their output distribution.
Figures & tables
Appendix figures & tables23 assets
Supplementary material from the paper’s appendix.
Appendix
| Architecture | linear head, ( parameters) |
| Loss | exact KL divergence to the target distributions |
| Optimizer | Adam, batch size , constant learning rate, steps |
| Support size | |
| Number of contexts | values, log-spaced between and |
| Learning rate | |
| Seeds |
| Architecture | linear head, |
| ( parameters) | |
| Optimizer | stochastic gradient descent, batch size , |
| constant learning rate , steps | |
| Support size | , mixed in equal proportion |
| Contexts per ambiguity level | |
| Seeds |
| Default | Capacity | Embedding | Optimization | Sampling | |
| Architecture | -layer transformer, attention heads | ||||
| Vocabulary | most frequent words of TinyStories | ||||
| Data | -token sequences, batch size , one seed | ||||
| Optimizer | AdamW, cosine schedule, weight decay | ||||
| Learning rate | |||||
| population (1994 est.) Net migration rate: -12.05 migrant(s)/ 1, 000 population (1994 est.) Infant mortality rate: 18.5 deaths/1 , |
| RESSIDA. I will not, uncle. I have forgot my father; I know no touch of consanguinity, No kin, no love, no blood, no soul so near me As the sweet Troil us. O you gods divine, Make Cressid’s name the very crown of falsehood, If ever she leave Tro il |
| from the men of Shechem, and from the house of Millo, and devour Abimele ch. 9:21 And Jotham ran away, and fled, and went to Beer, and dwelt there, for fear of Abimelech his brother. 9:22 When Abime le |
| :014:017 And I, behold, I will harden the hearts of the Egyptians, and they shall follow them: and I will get me honour upon Ph araoh, and upon all his host, upon his chariots, and upon his horsemen. 02:014:018 And the Egyptians shall know that I am the LORD, when I have gotten me honour upon Ph |
| /1, 000 population (1994 est.) Net migration rate: -1.78 migrant(s)/1,000 population (1994 est.) Infant mortality rate: 8.9 deaths/1 , |
| God, that I may be at once avenged of the Philistines for my two eyes. 16:29 And Sam son took hold of the two middle pillars upon which the house stood, and on which it was borne up, of the one with his right hand, and of the other with his left. 16:30 And Sam |
| the tone of fairy tales, and it is certainly not lawlessness or even liberty, though men under a mean modern tyranny may think it liberty by comparison. People out of Portland Gaol might think Fleet Street free; but closer study will prove that both fairies and journalists are the slaves of duty. Fairy godmo thers seem at least as strict as other god mo |