atlas

Research map / Large language models / Retrieval and knowledge

Knowledge Circuits in Pretrained Transformers

NeurIPS 2024 · Large language models › Retrieval and knowledge · approach: Knowledge editing in LLMs · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Uses circuit discovery (ACDC-style zero ablation with a MatchNLL metric) to extract knowledge circuits of attention heads and MLPs in GPT-2 and TinyLLaMA, and uses them to analyze knowledge editing, multi-hop reasoning, hallucination and in-context learning.

Problem

Prior knowledge-storage work localizes facts to isolated MLP neurons or single components, which overlooks how attention heads and MLPs cooperate to store and express knowledge and limits understanding of knowledge editing failures and behaviors like hallucination.

Approach

Define a "knowledge circuit" as a subgraph of the residual-rewritten computation graph (attention heads, MLPs, embeddings) that is sufficient to answer a factual prompt, discovered by ablating edges and keeping only those whose removal hurts prediction; then analyze mover, relation and other heads inside it and how editing or failures change them.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
retain the discovered knowledge circuit instead of the full modelGPT2-Medium · Knowledge circuits, D_test (Avg)Hit@10: 0.44 -> 0.47Helped
use the discovered knowledge circuit rather than a same-size random circuitGPT2-Medium · Knowledge circuits, D_test (Avg)Hit@10: 0.00 -> 0.47Helped
ablate the newly appeared ICL attention head (ablation)GPT2-Medium ICL circuit · adj_comparativePerformance: 62.24 -> 32.55Hurt
ablate the newly appeared ICL attention head (ablation)GPT2-Medium ICL circuit · word_sentimentPerformance: 89.02 -> 55.50Hurt
ablate the newly appeared ICL attention head (ablation)GPT2-Medium ICL circuit · substance_phasePerformance: 78.74 -> 52.85Hurt
ablate the newly appeared ICL attention head (ablation)GPT2-Medium ICL circuit · occupation_genderPerformance: 86.97 -> 59.54Hurt
ablate the newly appeared ICL attention head (ablation)GPT2-Medium ICL circuit · person_occupationPerformance: 35.17 -> 23.27Hurt

Surprising findings

Limitations

Experimental setup

Datasets: LRE dataset (factual, commonsense, linguistic, bias relations)

Benchmarks: LRE relation dataset subsets (Hit@10 completeness)

Metrics: Hit@10 rank change across layers node/edge overlap

Baselines: ROME FT-M random circuit

Builds on: ACDC automated circuit discovery ROME knowledge neurons LRE relation dataset logit lens

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy