The Problem
Ask a language model "What is the capital of France?" and it answers "Paris." Ask it to fill in "The capital of France is ___" and it usually still says "Paris." But what if the model learned the fact under one format and not the other? A new paper from Tel Aviv University—*LMs as Task-Specific Knowledge Bases* by Amit Elhelo, Amir Globerson, and Mor Geva—demonstrates experimentally that knowledge in language models is not stored in a unified knowledge base, but separately per task format. The same fact may be answered by one parameter set for cloze tasks, another for multiple choice, and a third for open QA.
Experimental Design: Tracking Knowledge Co-Occurrence
The researchers used OLMo-3-7B, whose training checkpoints are public, allowing them to track when facts are acquired. They tested five relation types (country-capital, country-language, landmark-country, company-headquarters, person-instrument) under six tasks:
- Completion: continue "The capital of France is Paris"
- Cloze (FiTB): "The capital of France is ___"
- OpenQA: "What is the capital of France?"
- MCQA: pick the correct option
- Neg MCQA: pick the incorrect option
- Verification: "The capital of France is Paris. True or false?"
Mechanistic Analysis: Locating Where Knowledge Lives
For each (fact, task) pair, the authors identified a small set of critical parameters—removing them collapsed the model's performance on that fact for that task while barely affecting others. Such task-specific parameter subsets do exist: the same fact is stored separately for different tasks.
They also quantified "entanglement" between tasks: generative tasks are relatively independent, while discriminative tasks overlap more. Consequence: editing parameters for a cloze-format fact may leave the MCQA answer untouched—undermining the reliability of knowledge editing at a fundamental level.
Why Chain-of-Thought Works: An Unexpected Finding
CoT is known to help models recall facts they fail to answer directly. The authors hypothesized that CoT partly works by activating parameter subsets belonging to other tasks. Experiments confirmed this: ablating a task's own subset could be largely compensated by CoT (it routes through other tasks' knowledge addresses), but ablating other tasks' subsets hurt CoT more than direct answering. CoT is not querying a unified store—it jumps between fragmented knowledge stores.
Why It Matters
The paper undermines the popular "LM as knowledge base" metaphor:
1. Knowledge editing should be clean—edit once, apply everywhere. In practice, editing one format may not change another. 2. Evaluation should be comprehensive—one format should suffice. In practice, single-task evaluation captures only a fraction of model knowledge. 3. Consistency should be default—one fact, one version. In practice, models may give contradictory answers across formats.
This has direct implications for AI safety: machine unlearning or knowledge updating requires locating parameter subsets across *all* task formats—editing one is not enough.
A Deeper Question
The author draws a cognitive-science analogy: human memory is also split (procedural vs. declarative, episodic vs. semantic). But humans have a unified working-memory system—consciousness as an interface—coordinating these stores; a model's "working memory" is just task-specific attention activating one subset at a time, which may explain worse cross-task consistency than humans.
Conclusion
The paper's restrained but profound conclusion: "what a model knows and how you ask it are intertwined in parameter space." This is not an engineering bug but an architectural property. Understanding what LMs actually are is the prerequisite for making them reliable and controllable.
Paper: LMs as Task-Specific Knowledge Bases: An Interpretability Analysis
Code: github.com/amitelhelo/TaskInvariance
Authors: Amit Elhelo, Amir Globerson, Mor Geva (Tel Aviv University / Google Research)