English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Language Models Aren't Knowledge Bases: The Same Fact Stored Differently for Each Task Format

Forum topic · ✨步子哥 · 2026-06-26

Summary

A post on zhichai.net discusses a Tel Aviv University study (Amit Elhelo, Amir Globerson, Mor Geva) titled 'LMs as Task-Specific Knowledge Bases,' which shows that language models do not store facts in a unified knowledge base. Using OLMo-3-7B with public training checkpoints, the authors tested five categories of relational facts (e.g., country-capital) across six task formats: completion, cloze (fill-in-the-blank), open QA, multiple-choice QA, negative multiple-choice, and verification. Co-occurrence of a fact across tasks was low: learning a fact in one format did not imply learning it in others. Generative-task knowledge transferred more readily than discriminative-task knowledge. Mechanistic analysis located small parameter subsets responsible for each (fact, task) pair, with low entanglement among generative tasks and high overlap among discriminative tasks. The paper also explains why chain-of-thought prompting helps: it recruits parameter subsets belonging to other task formats. Implications for knowledge editing, unlearning, evaluation consistency, and AI safety are discussed.

An Embarrassing Question

Ask a language model, "What is the capital of France?" and it answers "Paris." Ask instead as a cloze: "The capital of France is ___." It still answers Paris.

Looks fine. But what if the model learned the first phrasing during training and not the second? The same fact, presented in a different format, may yield a different answer — or none at all.

This is not hypothetical. Amit Elhelo, Amir Globerson, and Mor Geva of Tel Aviv University demonstrate it experimentally in their paper *LMs as Task-Specific Knowledge Bases*: knowledge in language models is not stored in a unified knowledge base, but separately per task format. The same fact is answered by one set of parameters for cloze, another for multiple choice, and a third for open QA.

It's as if the knowledge "Paris is the capital of France" were stored once for conversation, once for fill-in-the-blank exams, and once for true/false questions — with no communication between copies.

Experimental Design: Tracking Knowledge "Co-occurrence"

The researchers used OLMo-3-7B, whose public checkpoints allow tracking capability changes across training stages. They used five categories of relational facts (country-capital, country-language, landmark-country, company-headquarters city, person-instrument), each tested with six task formats:

  • Completion: continuing "The capital of France is Paris"
  • FiTB (fill-in-the-blank): "The capital of France is ___"
  • OpenQA: "What is the capital of France?"
  • MCQA: choosing the correct answer among four options
  • Neg MCQA: choosing the *incorrect* answer
  • Verification: "The capital of France is Paris. True or false?"
If the model truly had a unified knowledge base, learning the fact would transfer to all six tasks simultaneously. But co-occurrence rates were low: a fact learned in one task may be entirely absent in another.

More critically, knowledge from generative tasks (completion, cloze, open QA) transfers more readily, while knowledge from discriminative tasks (MCQA, verification) barely transfers. You might fluently say Paris is the capital of France yet pick London on a multiple-choice exam — your "choosing" knowledge and "expressing" knowledge live in different places.

Mechanistic Analysis: Locating Where Knowledge Lives

Behavioral experiments were only the first step. The authors then performed mechanistic analysis: for each (fact, task) pair, they identified a small set of parameters whose removal destroys the model's performance on that fact in that task, with minimal impact on other facts or tasks.

Result: such parameter subsets do exist. The same fact corresponds to different parameter subsets per task. The model doesn't store "Paris is the capital of France" once and reuse it — it stores a separate copy for each phrasing.

The researchers also quantified "entanglement" between tasks: generative tasks are weakly entangled (largely independent), while discriminative tasks overlap heavily. This means editing parameters to fix a fact in cloze form may leave the multiple-choice answer untouched — fundamentally undermining the reliability of knowledge editing.

Why Does Chain-of-Thought Work? An Unexpected Finding

The paper's most interesting finding concerns Chain-of-Thought (CoT) prompting.

CoT is known to help models recall knowledge they can't access when answering directly. Why? The hypothesis: CoT works partly by activating parameter subsets belonging to *other* tasks.

Experiments confirmed this: when you ablate a task's own parameter subset, CoT recovers most of the performance loss — it detours through other tasks' "knowledge addresses." But when you ablate the *other* tasks' subsets, CoT degrades more severely than direct answering, because it depends more heavily on those bypass pathways.

Like deriving an answer through reasoning when you've forgotten the standard one — CoT isn't querying a unified knowledge base; it's hopping between fragmented knowledge stores.

Why Does This Matter?

The paper unsettles a popular metaphor: "language models are knowledge bases." If they were:

1. Knowledge editing should be clean — change one place, change everywhere. In reality, editing cloze knowledge may not change multiple-choice answers. 2. Knowledge evaluation should be comprehensive — one phrasing would suffice. In reality, single-task evaluation reveals only a sliver of the model's knowledge. 3. Knowledge consistency should be the default — one fact, one version. In reality, the model may contradict itself across tasks.

This has direct implications for AI safety and controllability. Machine unlearning (removing a sensitive fact) requires locating the parameter subsets for *all* task formats — changing one is not enough. The same holds for knowledge updates.

A Deeper Question

The author draws a cognitive-science analogy: human memory is also not unified — procedural vs. declarative memory, episodic vs. semantic memory are separate. The model's "task-specific encoding" may be an analogous differentiation. But the human brain has a unified working-memory system coordinating these stores; a language model's "working memory" is just attention over the current task, activating one subset at a time. This may explain why models are worse than humans at cross-task consistency: humans have consciousness as a unified interface; models don't.

Conclusion

The paper's conclusion is restrained but profound: "what a model knows and how you ask it are intertwined in parameter space." This is not an engineering bug but an architectural property. Language models are not knowledge bases — and perhaps should never aspire to be. Understanding what they actually are is the prerequisite for making AI reliable and controllable.

Next time you ask a language model a question, remember: your phrasing determines which part of its "memory" answers.

---

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)

Tags

#language-models#interpretability#knowledge-editing#chain-of-thought#olmo#mechanistic-analysis#knowledge-base#ai-safety

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/178208155