CoChat

Understanding Language Model Circuits through Knowledge Editing

Open access

The DOI matches its DataCite record; 43 of the 44 references it cites were found in a registry or an index; none of the 7 sources its claims cite is checked for support yet.

Abstract

Recent advances in language model interpretability have identified circuits, critical subnetworks that replicate model behaviors, yet how knowledge is structured within these crucial subnetworks remains opaque. To gain an understanding toward the knowledge in the circuits, we conduct systematic knowledge editing experiments on the circuits of the GPT-2 language model. Our analysis reveals intriguing patterns in how circuits respond to editing attempts, the extent of knowledge distribution across network components, and the architectural composition of knowledge-bearing circuits. These findings offer insights into the complex relationship between model circuits and knowledge representation, deepening the understanding of how information is organized within language models. Our findings offer novel insights into the ``meanings'' of the circuits, and introduce directions for further interpretability and safety research of language models.

Overview

CoChat Summary

TL;DR

Systematic knowledge editing on GPT-2 circuits shows that task-relevant circuits resist editing more than their complementary parts, suggesting structured knowledge storage. The ideal knowledge-bearing circuit likely lies between 5% and 50% of parameters, and LayerNorm is unexpectedly prominent in these circuits.

Key findings

  • Circuits are more knowledgeable and harder to edit than complementary circuits: pre-edit, extracted circuits had significantly lower negative log probabilities of HIERARCHY DATA entities than complements (p < 0.05); post-edit, complementary 50% circuits consistently outperformed 50% circuits for dna1 and h, while the full model edited best. The 5% circuit showed stronger “confirmation bias” than the 50% circuit.
  • The ideal knowledge-bearing circuit likely falls between 5% and 50% of parameters. Median post-edit negative log probabilities of the new target were 7.78 for 50% circuits, 8.10 for 35%, 8.28 for 25%, 9.30 for 15%, and 9.37 for 5% circuits; complementary circuits were much lower (1.26e-2 to 9.99e-2).
  • Circuit overlap is non-negligible: 5% circuits overlapped between 13% and 18%, at least twice the 5% random baseline. For 50% circuits, overlaps were 0.61 (h–dna1), 0.58 (h–ra), and 0.59 (dna1–ra).
  • LayerNorm accounts for a larger share of circuit parameters than attention or MLP layers, especially in 5% circuits. For dna1 5% circuits: attn 0.04, mlp 0.05, ln 0.37; for dna1 50% circuits: attn 0.30, mlp 0.30, ln 0.63.

Methods

  • Used GPT-2 base. Circuits were extracted with differentiable masking, combining a faithfulness loss and a sparseness loss, using hardconcrete distributions and a straight-through estimator; circuits were studied at 5%, 15%, 25%, 35%, and 50% of model parameters.
  • Circuit-aware model editing replaced the classification head with the language model head, then fine-tuned with EasyEdit using cross-entropy and SGD while non-circuit parameters were masked to zero. Edits used HIERARCHY DATA (198 facts), changing true targets to new targets.
  • Data included hierarchical data, eight BLiMP linguistic datasets, and five safety-behavior datasets from Perez et al. (2022). Analyses compared circuits vs. complementary circuits via negative log probabilities, measured mask similarity overlap across tasks, and computed layer-type proportions within circuits.

Limitations

  • The paper states it used only GPT-2, only fine-tuning for model editing, and only a handful of text classification problems including linguistic and safety behavior tasks.
  • The paper states the exact size of the idealized circuit remains to be further investigated.
  • The text makes evident that generalization to other model architectures, other editing methods, and broader task sets is not established.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

DataCite · 10.48550/arxiv.2406.17241

Cites

43 of 44 references verified0 citation errors · 1 not checkable

Statistics

Nothing to recompute.

Figures

Image 1
CC-BY · From the PDF
Pror t t i t uit) oi t t t i t uit
Pror t t i t uit) oi t t t i t uitCC-BY · From the PDF
Image 3
CC-BY · From the PDF
Figure 4 Post-edit Negative Log Probability of New Target Distribution (50% circuit) (BLiMP).
Figure 4 Post-edit Negative Log Probability of New Target Distribution (50% circuit) (BLiMP).CC-BY · From the PDF
Figure 5 Pre-edit Negative Log Probability of True Target Distribution (50% circuit) (BLiMP).
Figure 5 Pre-edit Negative Log Probability of True Target Distribution (50% circuit) (BLiMP).CC-BY · From the PDF
Figure 6 Post-edit Negative Log Probability of New Target Distribution (50% circuit) (Model-Written Evaluations).
Figure 6 Post-edit Negative Log Probability of New Target Distribution (50% circuit) (Model-Written Evaluations).CC-BY · From the PDF
Figure 7 Pre-edit Negative Log Probability of True Target Distribution (50% circuit) (Model-Written Evaluations).
Figure 7 Pre-edit Negative Log Probability of True Target Distribution (50% circuit) (Model-Written Evaluations).CC-BY · From the PDF
Image 8
CC-BY · From the PDF
Image 9
CC-BY · From the PDF
Figure 10 Post-edit Negative Log Probability of New Target Distribution (5% circuit) (Model-Written Evaluations).
Figure 10 Post-edit Negative Log Probability of New Target Distribution (5% circuit) (Model-Written Evaluations).CC-BY · From the PDF
Figure 11 Pre-edit Negative Log Probability of True Target Distribution (5% circuit) (Model-Written Evaluations).
Figure 11 Pre-edit Negative Log Probability of True Target Distribution (5% circuit) (Model-Written Evaluations).CC-BY · From the PDF

Verification

Claims the paper makes

0 Valid · 0 Not valid · 4 Not checked · 48 Own results and interpretations

31 more claims

Create a free account to see all 52 claims and to verify the 5 references still open.

See all claims — free account
  • It may state two separate claims as one. 8
  • Probably not a substantial claim. 9

Create a free account to see these claims.

Citations

Cites

Show all 44 references

Research works printed but not linked: 1

  1. Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. 2019. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9.

Cited by

Metadata

Authors
Ge, H., Rudzicz, F., & Zhu, Z.
Affiliations
  • Columbia University (US)
  • Dalhousie University (CA)
  • Stevens Institute of Technology (US)
Venue
arXiv
Publisher
arXiv
Published
2024
ISSN
2331-8422 (ISSN-L)
OpenAlex
W4400064742
Cited by
8
References
37
Citations by year
2026: 1 · 2025: 5 · 2024: 2
Type
posted content
Language
en
Open access
Locations
arXiv (submittedVersion, cc-by)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Explainable Artificial Intelligence (XAI)
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
Keywords
knowledge editing, GPT-2, knowledge representation, interpretability, circuit architecture, knowledge distribution, language model safety

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

A language model drew the claims from the paper on 2026-11-29, under version 3 of the claim definition (model deepseek-v4.1-flash, prompt extract-v3).

A second model labelled each claim on 2026-11-29 (model jev-1.13-20260917, definition revision gold-guideline-v0.2).

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.