[Paper Review] What Context Features Can Transformer Language Models Use?
This paper investigates what types of contextual information transformers use to improve language modeling. Using the $ρ$-information framework, it ablates lexical and structural features in long contexts and finds that only content words and local co-occurrence patterns carry most usable information—deleting function words or shuffling word order reduces performance by less than 15%, suggesting syntactic and propositional details are largely irrelevant for current models.
Transformer-based language models benefit from conditioning on contexts of hundreds to thousands of previous tokens. What aspects of these contexts contribute to accurate model prediction? We describe a series of experiments that measure usable information by selectively ablating lexical and structural information in transformer language models trained on English Wikipedia. In both mid- and long-range contexts, we find that several extremely destructive context manipulations -- including shuffling word order within sentences and deleting all words other than nouns -- remove less than 15% of the usable information. Our results suggest that long contexts, but not their detailed syntactic and propositional content, are important for the low perplexity of current transformer language models.
Motivation & Objective
- To identify which aspects of long-context inputs contribute usable information to transformer language models.
- To determine whether syntactic structure, word order, or lexical content drives predictive performance in long-context modeling.
- To measure the impact of controlled context ablations on model perplexity using a formal information-theoretic framework.
- To distinguish between information loss and distributional shift in model performance under ablation.
- To guide future model design toward more efficient, information-preserving context representations.
Proposed method
- The study employs the $ρ$-information framework (Xu et al., 2020) to quantify usable predictive information in language model contexts.
- It trains transformer language models on Wikipedia data and evaluates perplexity under controlled ablations of context features.
- Ablations include shuffling word order within sentences, deleting all words except content words (nouns), and removing function words.
- The method isolates the effect of structural vs. lexical information by comparing model performance on ablated vs. original contexts.
- Experiments are conducted on a 768-token context length, with model performance measured via held-out perplexity.
- The framework enables disentanglement of performance drops due to information loss versus distributional shift.
Experimental results
Research questions
- RQ1Which features of long-context inputs are most useful for transformer language model predictions?
- RQ2How much usable information is retained when syntactic structure or word order is destroyed?
- RQ3To what extent do content words and local co-occurrence patterns carry predictive information compared to function words or global structure?
- RQ4Does the presence of named entities or document identity explain the benefit of long contexts?
- RQ5Are performance drops under ablation due to information loss or distributional shift?
Key findings
- Shuffling word order within sentences reduces model perplexity by less than 15%, indicating minimal reliance on local word order.
- Deleting all words except nouns results in a perplexity increase of less than 15%, showing that content words carry most usable information.
- Removing function words also causes less than 15% increase in perplexity, suggesting that grammatical function words contribute little to predictive power.
- Retaining only document identity or named entities leads to significant performance drops, indicating that long-context benefits are not explained by topic or entity information alone.
- The results suggest that current transformer models primarily use local co-occurrence statistics and content words rather than syntactic or propositional structure.
- The study demonstrates that many ablations previously thought to be highly disruptive have minimal impact on usable information, challenging assumptions about model reliance on linguistic structure.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.