Abstract
Language models often prioritize parametric knowledge (memorized facts) over contextual information, leading to "entity bias" and unfaithful hallucinations. This paper proposes a Structured Causal Model (SCM) to mitigate this bias. By perturbing entities with their semantic neighbors—using convex hull embedding manipulation for white-box models and placeholder prompting for black-box models—the authors demonstrate significant improvements in faithfulness and out-of-distribution performance across relation extraction and reading comprehension tasks.
Introduction: The Challenge of Entity Bias
When presented with a sentence like "Bill Gates went to Microsoft Building 99 as a visitor," a Large Language Model (LLM) might incorrectly identify the relationship as "founder" rather than "visitor." This phenomenon, known as entity bias, occurs because LLMs develop "shortcuts" during training on web-scale data. They often retrieve pre-memorized facts associated with famous entities instead of processing the specific context provided in a prompt. This leads to unfaithful predictions, particularly when the context contradicts the model's internal memory.
While causal inference has been explored to address this, previous methods often required complex probability estimations that are computationally prohibitive for massive models, especially "black-box" systems where internal weights are inaccessible.
Methodology
The authors introduce a new Structured Causal Model (SCM) designed for practical estimation and intervention.
White-Box Intervention
For open-source models like RoBERTa where internal weights are accessible, the authors employ a training-time intervention. They identify the $k$-nearest neighbors of an entity in the embedding space and construct a "convex hull" around them. During training, the entity's embedding is replaced with a random point within this hull. This process "washes out" specific biasing information while preserving essential semantic categories (e.g., identifying the entity as a "person" or "businessman").
Black-Box Intervention
For closed models like GPT-3.5, the authors developed a four-step in-context prompting strategy:
- Replace: Original entities are substituted with abstract placeholders (e.g.,
subject_entity). - Find: The LLM itself is used to identify similar entities (e.g., "Name two people similar to Bill Gates").
- Define: These similar entities are used to define the placeholders within the prompt.
- Query: The model is queried using the modified, de-biased prompt.
Experimental Evaluation
The approach was evaluated on two primary NLP tasks:
- Relation Extraction (RE): Tested on TACRED (In-Distribution) and EntRED (Out-of-Distribution). EntRED specifically challenges models to handle entities in non-typical roles.
- Machine Reading Comprehension (MRC): Evaluated using TriviaQA and an "answer-substituted" variant where the correct answer in the text is replaced with a different entity of the same type, forcing reliance on context.
Key Insights
- The Similarity "Sweet Spot": The number of neighbors ($k$) is a critical hyperparameter. Insufficient neighbors fail to mitigate bias, while too many neighbors expand the convex hull until the model loses necessary semantic information (e.g., entity type), degrading performance.
- The Necessity of Definitions: Simply using placeholders like
[ENTITY]is insufficient. Without definitions providing similar examples, the model loses predictive signals like entity type, hindering sentence comprehension. - Synergy with Entity Typing: Causal intervention is complementary to explicit entity typing. Combining both methods yields superior results, suggesting that neighbor-based signals provide more nuanced semantic information than coarse labels.
Results and Discussion
The proposed interventions yielded substantial improvements in faithfulness and Out-of-Distribution (OOD) performance:
- White-Box Models: Improved OOD performance by 5.7 points in RE and 9.1 points in MRC.
- Black-Box Models (GPT-3.5): The in-context strategy achieved a 20.5 point improvement in exact match accuracy for MRC.
- Reduced Memorization: The intervention reduced the "memorization ratio" by up to 17.6 points in RE tasks, indicating a significant decrease in the model's reliance on internal bias.
Limitations and Future Work
While effective, several challenges remain. The black-box experiments were limited to zero-shot prompting; future studies should investigate interactions with few-shot learning. Additionally, finding neighbors and constructing hulls adds preprocessing complexity. As LLMs continue to evolve, the underlying SCM may require further refinement to address more open-ended generation and reasoning tasks.
Summary updated