Disentangling Reasoning from Knowledge via Entity Anonymization

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 144 papers46 conceptsfrozen 2026-10-04

When a Large Language Model (LLM) answers a question about a famous novel or a historical event, is it actually "reading" the text provided in the prompt, or is it simply reciting facts it memorized during pre-training? This ambiguity is the central challenge of modern AI evaluation. To solve it, researchers have converged on a powerful mechanism: entity anonymization.

By systematically replacing names, locations, and dates with abstract placeholders or pseudonyms, researchers can "blind" a model to its internal world knowledge. This forces the model to rely exclusively on the internal logic and relational structure of the provided text—transforming a test of memory into a pure test of reasoning.

The Memorization Trap

The primary motivation for anonymization is the "data contamination" problem. Because LLMs are trained on massive swathes of the internet, they have likely seen the answers to most standard benchmarks before. Yucheng Li and colleagues address this in LatestEval by generating fresh tests from recent news and replacing answers with placeholders. Without this, models might use simple pattern matching or verbatim retrieval rather than genuine synthesis.

This "cheating" via memory happens even in complex literary tasks. In a study of quotation attribution, Gaspard Michel et al. found that models often identify speakers in novels by recalling the book's plot. To prove the model is actually reasoning about the dialogue, they replaced character names with gender-matched pseudonyms in A Realistic Evaluation of LLMs for Quotation Attribution in Literary Texts. If the model can still attribute the quote to the new name, it demonstrates true contextual understanding.

Mechanisms of Abstraction

Anonymization isn't just about hiding names; it's about breaking the link between a token and the model's pre-trained weights. Several strategies have emerged to achieve this:

  • Generic Placeholders: Replacing entities with tokens like @entity1 or [PERSON_A]. Takeshi Onishi et al. used this in the Who-did-What dataset to force models toward deeper semantic reasoning.
  • Entity Pseudonymization: Swapping real names for synthetic or unrelated ones. Elan Markowitz and team used this in KG-LLM-Bench to decouple a model’s internal knowledge from its ability to process Knowledge Graphs.
  • Orthographic Obfuscation: A more radical approach where the spelling of words is scrambled while keeping the logic intact. Adam Mahdi introduced this in LINGOLY-TOO to prevent models from using linguistic shortcuts.

Isolating the Reasoning Engine

Why does this work? In a standard transformer, an entity like "Paris" carries a dense vector of pre-trained associations (Eiffel Tower, France, etc.). When that token is replaced by a nonsense string or a placeholder, those associations vanish. The model's attention mechanism is then forced to look elsewhere—specifically at the surrounding context—to determine what that placeholder represents.

This is particularly critical for evaluating long-context models. In $\infty$BENCH, Xinrong Zhang et al. programmatically replaced names and locations to ensure that a model's success on a 200,000-token task was due to its ability to track long-range dependencies, not its memory of the source document. Similarly, Nianqi Li and colleagues used entity masking in CR-LLM to isolate "concept reasoning" from name-based retrieval.

Beyond Names: Logic and Bias

The utility of anonymization extends into specialized domains. In medical NLP, Simon Suster and Walter Daelemans developed CliCR, which anonymizes clinical terms to prevent models from relying on label frequency. This forces the architecture to focus on the structural and relational context of a patient's case report.

Furthermore, anonymization helps researchers understand the "lobotomizing" effect of debiasing. Mahdi Zakizadeh et al. used entity replacement in DiFair to distinguish between a model's genuine gender knowledge and its learned biases. By replacing names with abstract tokens, they could measure if a model still understood gendered context when the "stereotypical" name was removed.

By stripping away the "who" and the "where," these researchers have created a more rigorous "how"—a way to see the gears of machine reasoning turning in isolation from the vast, often noisy, library of facts stored in their weights.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_disentangling_reasoning_from_knowledge_v_cba7f398,
  title = {Disentangling Reasoning from Knowledge via Entity Anonymization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/disentangling-reasoning-from-knowledge-via-entity-anonymization/rdr_cba7f398f0ab4d7e9514ddf4a8b98da3},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 1, frozen text):

@misc{lacuna_disentangling_reasoning_from_knowledge_v_cba7f398_v1,
  title = {Disentangling Reasoning from Knowledge via Entity Anonymization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/disentangling-reasoning-from-knowledge-via-entity-anonymization/rdr_cba7f398f0ab4d7e9514ddf4a8b98da3/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-27},
}