When a human reads the sentence "Xylo was founded by Zorp," they immediately understand the relationship between the two entities, even though they have never heard of Xylo or Zorp. However, modern language models (LMs) often struggle with this basic abstraction. Instead of performing genuine linguistic reasoning, they frequently rely on entity-based shortcuts—memorized associations from their pre-training data that allow them to "cheat" on benchmarks without actually understanding the text.
The Memorization Trap
Pre-trained models do not treat names as generic labels. Instead, they "ground" common names to specific famous individuals and organizations. As Vered Shwartz, Rachel Rudinger, and Oyvind Tafjord demonstrate in "You are grounded!": Latent Name Artifacts in Pre-trained Language Models, names like Donald or Bernie carry baked-in sentiments and factual associations.
This creates a conflict between parametric knowledge (what the model learned during training) and contextual knowledge (what is actually written in the prompt). When a model sees "Elon Musk," it doesn't just see a noun; it retrieves a cluster of pre-memorized facts. If the text describes Musk in a role that contradicts these facts, the model often "flips" its answer to match its internal bias rather than the provided evidence.
Testing Fragility via Entity Renaming
To reveal how much models rely on these shortcuts, researchers use entity renaming. If a model truly understands the logic of a passage, its performance should remain stable if "Apple" is renamed to "FruitCorp" or a random string like "Gkx-7".
However, Jun Yan, Robin Jia, and Xiang Ren found that Machine Reading Comprehension (MRC) models suffer performance drops of up to 20% when entities are renamed (On the Robustness of Reading Comprehension Models to Entity Renaming). This suggests that models aren't reading the passage to find the answer; they are using the question to trigger a search for familiar, high-probability entity names in the text.
This fragility is even more pronounced in specialized domains. In the CORE dataset, Philipp Borchert and colleagues show that in business contexts—where names can represent products, brands, or legal entities—models fail because they can no longer rely on simple entity-type shortcuts.
Shallow Heuristics in Relation Extraction
Relation Extraction (RE) is the task of identifying the link between two entities (e.g., [Steve Jobs, founder, Apple]). Ideally, a model should analyze the verbs and syntax connecting the entities. In practice, models often ignore the context entirely.
Yiwei Wang and Bryan Hooi argue that RE models exploit statistical correlations between specific names and relations (How Fragile is Relation Extraction under Entity Replacements?). For instance, if "Switzerland" frequently appears with the relation "country of residence" in the training set, the model will predict that relation for any sentence containing "Switzerland," even if the sentence is actually about a vacation or a bank account.
Shachar Rosenman and Yoav Goldberg describe these as shallow heuristics (Exposing Shallow Heuristics of Relation Extraction Models with Challenge Data). Models check if the entity types are compatible (e.g., Person and Organization) and if a known relation exists between them in the real world, skipping the hard work of semantic analysis.
The Causal Backdoor
Why does this happen? From a causal inference perspective, the entity names act as confounders. Fei Wang and Muhao Chen explain that there is a "backdoor path" where the model associates a relation with the entities themselves rather than the linguistic link (A Causal View of Entity Bias in (Large) Language Models).
When the context is removed entirely, leaving only the two entity names, state-of-the-art models can still predict the "correct" relation with surprising accuracy. This confirms that the models are not reasoning about the sentence; they are performing a lookup of historical associations.
Building Robustness
To force models to learn context rather than names, researchers have proposed several "blinding" techniques:
- Targeted Feature Dropout: Puyang Xu introduced a method that selectively masks entity tokens during training (Targeted feature dropout for robust slot filling). This forces the model to rely on the surrounding "slots" and syntactic patterns to identify the entity's role.
- Counterfactual Data Augmentation (CDA): By systematically swapping entity names with obscure ones or random strings during training, researchers like Nan Xu break the spurious correlations between names and labels (Does Your Model Classify Entities Reasonably?).
- Entity Masking: Erenay Dayanik and Sebastian Padó showed that masking actor names in political claim detection prevents the model from simply flagging any sentence by a famous politician as a "claim" (Masking Actor Information Leads to Fairer Political Claims Detection).
The goal of this research direction is to move LMs away from being "stochastic parrots" of their training data and toward becoming robust engines of linguistic and logical inference. As Tianyu Gao notes, until we address this entity bias, our evaluations of model "reasoning" will remain inflated by the models' ability to memorize their way to the right answer (Manual Evaluation Matters).