ShadowBench: Exposing Lexical Anchoring and the Illusion of Forgetting in Large Language Models

Sujan Maharjan, Lu LiuarXiv 2026

TL;DR

Large Language Models (LLMs) are "lexically anchored," meaning their ability to retrieve facts is heavily dependent on explicit entity names. This paper introduces ShadowBench, a benchmark showing that even frontier models like GPT-5.4 suffer a >20% performance drop when names are removed, and reveals that current "machine unlearning" techniques often create an "illusion of forgetting"—suppressing names while leaving the underlying "shadow knowledge" dangerously intact.

What Problem Does This Paper Address?

We often assume that if an LLM "knows" a fact, it can access that fact regardless of how the question is framed. However, the authors argue that LLM knowledge is fundamentally tied to specific lexical tokens—the names of entities. This "lexical anchoring" means that while a model might possess a cluster of facts about a person, it struggles to connect them if the person's name isn't explicitly mentioned in the prompt.

This isn't just an academic curiosity; it has massive implications for AI Safety and Machine Unlearning. If we try to make a model "forget" a sensitive entity (like a private individual or a dangerous chemist) by penalizing the use of their name, does the model actually erase the knowledge, or does it just learn to hide the name while keeping the underlying information accessible?

Methods

The authors propose a new evaluation framework centered on the Dual-Trait Association (DTA) task. Instead of asking "Who is [Entity]?", the model is given a "shadow description" (Trait A) and must identify a second, independent attribute (Trait B) from a list of distractors.

To ensure the model isn't just using clever shortcuts, the authors implemented a Semantic Hardening Pipeline:

  • Lexical Anonymization: Replacing names and gendered pronouns with "the subject."
  • Generational Proximity Filter (GPF): Ensuring distractors are from the same 25-year era to prevent the model from guessing based on dates.
  • Demographic Matching: Matching distractors by gender and domain to neutralize lexical leaks (e.g., "Best Actress").
The ShadowBench Construction Pipeline

The researchers also introduced the Latent Entity Leakage Rate (LELR), a metric that checks if a model—specifically one that has undergone "unlearning"—explicitly reconstructs the "forbidden" name in its internal Chain-of-Thought (CoT) reasoning traces to solve a task.

Datasets

The study introduces ShadowBench, a benchmark built from a January 2023 Wikipedia snapshot across three domains: Technology, Sports (Tennis), and Entertainment (Actors).

Entities are stratified into:

  • Upper Tier (Head): The top 10% most popular entities.
  • Lower Tier (Tail): The bottom 10% (niche entities).

For the unlearning experiments, they curated a "Forget Set" of 300 QA pairs focused on a specific target (Elon Musk) to test how well state-of-the-art unlearning algorithms (Gradient Ascent, Gradient Difference, and NPO) actually perform.

Key Insights and Ideas

  • The Shadow Gap: There is a persistent gap between "Direct QA" (where the name is provided) and "ShadowBench" (where it is hidden). This gap exists across all model scales, from 8B parameter models to the most advanced frontier models.
  • The Illusion of Forgetting: Unlearning algorithms often act as superficial output filters. They successfully stop the model from saying a name, but the model can still use its "shadow knowledge" to solve associative tasks.
  • The Reasoning Dividend: Reasoning models (using CoT) are better at bridging latent facts because they often "reconstruct" the hidden name in their scratchpad.
  • Two Modes of Leakage:
    1. Explicit Reconstruction: For popular entities, unlearned models still "think" of the name internally (high LELR).
  • Implicit Attribute Correlation: For niche entities, models can't reconstruct the name, but they still retain direct links between attributes, allowing them to bypass safety filters entirely.

Key Results

The evaluation of frontier models revealed that lexical anchoring is an inherent property of Transformer-based retrieval. Even Claude-Sonnet-4.6, which has near-perfect direct recall, showed a 16-20% performance drop on niche entities when lexical anchors were removed.

Figure 2: The Persistence of the Shadow Gap. Accuracy comparison between Direct QA (grey) and ShadowBench (blue). Entity name acts as mandatory retrieval trigger; removing it caused accuracy drops across all scales. Notably, Claude-Sonnet-4.6 established the highest baseline (>98% direct recall) yet still exhibited a ∼16% performance drop for niche entities, confirming that lexical anchoring is an inherent property of Transformer-based retrieval. Additional results are provided in Appendix B.1.

In the unlearning experiments, the results were even more striking. For the "unlearned" Qwen3-8B model:

  • Direct recall of the target entity's name was successfully suppressed.
  • However, the LELR remained over 74%, meaning the model was still explicitly identifying the "forgotten" entity in its reasoning traces to solve the ShadowBench tasks.
Qualitative analysis of latent entity leakage in an unlearned model

Limitations and Future Work

The authors acknowledge several limitations:

  • Scope: The study is restricted to English and Wikipedia data. Future work should explore multilingual contexts and non-encyclopedic data.
  • Popularity Proxy: The popularity score is an external proxy; actual training frequency in proprietary models remains unknown.
  • Internal Probing: LELR only catches leakage in models that generate visible reasoning traces. Future research should integrate internal representation probing to detect "shadow" persistence in standard decoding.
  • Temporal Sensitivity: Frontier models still occasionally exploit subtle era-based cues, suggesting the need for even more rigorous temporal isolation in future benchmark versions.

Summary updated

BibTeX
@misc{maharjan2026shadowbench,
  author = {Sujan Maharjan and Lu Liu},
  title = {{ShadowBench: Exposing Lexical Anchoring and the Illusion of Forgetting in Large Language Models}},
  year = {2026},
  eprint = {2611.15925},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.15925},
}
Figure