atlas

Research map / Large language models / Agents, code and math

Hypothesis Testing the Circuit Hypothesis in LLMs

NeurIPS 2024 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 1 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.

Formalizes the circuit hypothesis into testable criteria (mechanism preservation, localization, minimality) and applies hypothesis tests to six benchmark circuits, finding synthetic circuits align while discovered circuits satisfy the criteria only partially.

Problem

Evaluating whether LLM capabilities are implemented by small subnetworks (circuits) that satisfy idealized properties of preservation, localization, and minimality, which has lacked principled quantitative tests.

Approach

Translate the idealized circuit criteria into statistical hypothesis tests (equivalence, independence, minimality as stringent tests; sufficiency and partial necessity as flexible tests) that compare candidate circuits against random reference circuits, avoiding exhaustive circuit search.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use the Induction circuit instead of the full modelInduction circuit · Inductionproportion candidate outperforms model: 0.03Hurt
Use the IOI circuit instead of the full modelIOI circuit · IOIproportion candidate outperforms model: 0.24Hurt
Use the Greater-Than circuit instead of the full modelGreater-Than circuit · G-Tproportion candidate outperforms model: 0.07Hurt
Use the Docstring circuit instead of the full modelDocstring circuit · Docstringproportion candidate outperforms model: 0.1Hurt
Use the candidate circuit instead of a random circuit at 90% of model sizeIOI and Greater-Than circuits · IOI; G-TfaithfulnessHelped
Use the candidate circuit instead of a random circuit at 30% of model sizeDocstring and Induction circuits · Docstring; InductionfaithfulnessHelped
Remove around 50% of the canonical circuit edges (ablation)Greater-Than circuit · G-Tfaithfulness: 50%No clear effect
Remove about 20% of the canonical circuit edges (ablation)IOI circuit · IOIfaithfulness: 20%No clear effect
Remove a few minimal edges from the canonical circuit (ablation)Canonical circuits · Circuit tasksfaithfulnessNo clear effect
Knock out the candidate circuit rather than a same-size random circuit from the modelDocstring circuit · Docstringfaithfulness after knockdownNo clear effect
Use STR instead of zero-ablation for knockdown (ablation)IOI and Greater-Than circuits · IOI; G-Trelative significance of candidate-circuit knockdownMixed

Surprising findings

Limitations

Experimental setup

Datasets: IOI dataset OpenWebText validation split (induction) Docstring dataset greater-than dataset Tracr task inputs

Benchmarks: IOI Induction Docstring Greater-Than Tracr-R Tracr-P

Metrics: p-value faithfulness (l2 norm) HSIC proportion of inputs where circuit outperforms model

Baselines: ACDC

Builds on: activation patching automatic circuit discovery (ACDC) TransformerLens

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