atlas

Research map / Large language models / Language, safety and interpretability

Extracting Interpretable Task-Specific Circuits from Large Language Models for Faster Inference

AAAI 2025 · Large language models › Language, safety and interpretability · approach: Pruning and circuits in LLMs · 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.

Proposes an automatic, training-free method that prunes GPT-2 Small down to a task-specific circuit (attention heads and optionally MLPs) using mean/zero ablation and KL-divergence thresholds, yielding standalone smaller models for three circuit-studied tasks.

Problem

Circuits found by mechanistic interpretability are localized via activation patching, which only adds hooks and does not shrink or speed up the model; there is no way to extract a task-specific standalone submodel from an LLM.

Approach

Traverse attention heads (and optionally MLPs) from last layer to first, temporarily ablate each node on a small patching set, and permanently remove it if the KL-divergence increase on a validation set is below a threshold alpha, so the pruned model is physically smaller and faster rather than hook-patched.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Include MLPs in pruning (ablation)Circuit extraction on GPT-2 Small · Acronymsaccuracy: 99.92 \pm 0.17 -> 78.64 \pm 5.16Hurt
Include MLPs in pruning (ablation)Circuit extraction on GPT-2 Small · IOIaccuracy: 100.00 \pm 0.00 -> 96.53 \pm 1.52Hurt
Include MLPs in pruning (ablation)Circuit extraction on GPT-2 Small · Greater-thanaccuracy: 100.00 \pm 0.00 -> 99.84 \pm 0.36No clear effect
Include MLPs in pruning (ablation)Circuit extraction on GPT-2 Small · Acronymsparameter reduction: 32.88 \pm 0.00 -> 63.70 \pm 3.10Helped
Include MLPs in pruning (ablation)Circuit extraction on GPT-2 Small · IOIparameter reduction: 28.66 \pm 0.50 -> 72.31 \pm 2.98Helped
Include MLPs in pruning (ablation)Circuit extraction on GPT-2 Small · Greater-thanparameter reduction: 32.65 \pm 0.00 -> 82.77 \pm 0.13Helped
Include MLPs in pruning (ablation)Circuit extraction on GPT-2 Small · Acronymsinference time reduction: 83.56 \pm 0.53 -> 86.20 \pm 1.02Helped
Include MLPs in pruning (ablation)Circuit extraction on GPT-2 Small · IOIinference time reduction: 57.58 \pm 8.76 -> 82.78 \pm 0.72Helped
Include MLPs in pruning (ablation)Circuit extraction on GPT-2 Small · Greater-thaninference time reduction: 77.78 \pm 0.15 -> 88.33 \pm 1.00Helped
Use mean ablation instead of zero ablation (ablation)Circuit extraction on GPT-2 Small · Acronymsaccuracy at comparable model sizeHelped
Use mean ablation instead of zero ablation (ablation)Circuit extraction on GPT-2 Small · IOI and Greater-thanresulting model sizeHelped
Increase the pruning threshold (ablation)Circuit extraction on GPT-2 Small · Acronymsresulting model sizeHurt

Surprising findings

Limitations

Experimental setup

Datasets: Acronym prediction prompts (Lee et al. style template) IOI templated sentences (one of 15 templates) Greater-than year prompts

Benchmarks: Acronym prediction Indirect Object Identification Greater-than

Metrics: accuracy parameter reduction (%) inference time (ms) TPR and FPR of recovered attention heads KL divergence

Baselines: knowledge distillation (logit matching) zero ablation

Builds on: activation patching automatic circuit discovery knowledge distillation

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