mlsanityData to 7 Oct 2026

What Kinds of Tokens Benefit from Distant Text? An Analysis on Long Context Language Modeling

arXiv 2406.11238 ↗First posted 17 Jun 2024cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

As the context length that large language models can handle continues to increase, these models demonstrate an enhanced ability to utilize distant information for tasks such as language modeling. This capability contrasts with human reading and writing habits, where it is uncommon to remember and use particularly distant information, except in cases of foreshadowing. In this paper, we aim to explore which kinds of words benefit more from long contexts in language models. By analyzing the changes in token probabilities with increasing context length, we find that content words (e.g., nouns, adjectives) and the initial tokens of words benefit the most. Frequent patterns in the context (N-grams) also significantly impact predictions. Additionally, the model's prior knowledge plays a crucial role in influencing predictions, especially for rare tokens. We also observe that language models become more confident with longer contexts, resulting in sharper probability distributions. This overconfidence may contribute to the increasing probabilities of tokens with distant contextual information. We hope that our analysis will help the community better understand long-text language modeling and contribute to the design of more reliable long-context models.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 20 of its 32 references that are in the map. First posted on arXiv 17 Jun 2024.

Builds on

20 of 32 references.

References · 20

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  5. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  6. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  7. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  8. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  9. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  10. 2024Yi: Open Foundation Models by 01.AIcited by 706
  11. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  12. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 443
8 more
  1. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 360
  2. 2023Effective Long-Context Scaling of Foundation Modelscited by 301
  3. 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 232
  4. 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 201
  5. 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 175
  6. 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
  7. 2023PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Trainingcited by 109
  8. 2024Base of RoPE Bounds Context Lengthcited by 49

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.