mlsanityData to 14 Oct 2026

Probability Consistency in Large Language Models: Theoretical Foundations Meet Empirical Discrepancies

arXiv 2505.08739 ↗First posted 13 May 2025cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Can autoregressive large language models (LLMs) learn consistent probability distributions when trained on sequences in different token orders? We prove formally that for any well-defined probability distribution, sequence perplexity is invariant under any factorization, including forward, backward, or arbitrary permutations. This result establishes a rigorous theoretical foundation for studying how LLMs learn from data and defines principled protocols for empirical evaluation. Applying these protocols, we show that prior studies examining ordering effects suffer from critical methodological flaws. We retrain GPT-2 models across forward, backward, and arbitrary permuted orders on scientific text. We find systematic deviations from theoretical invariance across all orderings with arbitrary permutations strongly deviating from both forward and backward models, which largely (but not completely) agreed with one another. Deviations were traceable to differences in self-attention, reflecting positional and locality biases in processing. Our theoretical and empirical results provide novel avenues for understanding positional biases in LLMs and suggest methods for detecting when LLMs' probability distributions are inconsistent and therefore untrustworthy.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 32 of its 37 references that are in the map. First posted on arXiv 13 May 2025.

Builds on

32 of 37 references.

References · 32

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  4. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  5. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  6. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  7. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  8. 2019Similarity of Neural Network Representations Revisitedcited by 1,755
  9. 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
  10. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
  11. 2023Measuring Faithfulness in Chain-of-Thought Reasoningcited by 703
  12. 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 554
20 more
  1. 2025Reasoning Models Don't Always Say What They Thinkcited by 415
  2. 2019Revealing the Dark Secrets of BERTcited by 301
  3. 2022cosFormer: Rethinking Softmax in Attentioncited by 213
  4. 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 208
  5. 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 151
  6. 2024Transformers need glasses! Information over-squashing in language taskscited by 91
  7. 2024Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibrationcited by 74
  8. 2024Large language models surpass human experts in predicting neuroscience resultscited by 69
  9. 2025On the Emergence of Position Bias in Transformerscited by 59
  10. 2018Regularizing Neural Machine Translation by Target-bidirectional Agreementcited by 40
  11. 2025How do language models learn facts? Dynamics, curricula and hallucinationscited by 37
  12. 2024Mission: Impossible Language Modelscited by 32
  13. 2024Learned feature representations are biased by complexity, learning order, position, and morecited by 23
  14. 2023Meet in the Middle: A New Pre-training Paradigmcited by 22
  15. 2024Arrows of Time for Large Language Modelscited by 20
  16. 2024Matching domain experts by training from scratch on domain knowledgecited by 2
  17. 2024Reverse Modeling in Large Language Modelscited by 2
  18. 2024Confidence-weighted integration of human and machine judgments for superior decision-makingcited by 1
  19. 2024Beyond Human-Like Processing: Large Language Models Perform Equivalently on Forward and Backward Scientific Textcited by 1
  20. 2025What Makes the Preferred Thinking Direction for LLMs in Multiple-choice Questions?cited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.