mlsanityData to 14 Oct 2026

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

arXiv 2412.15750 ↗First posted 20 Dec 2024cs.LGcited by 3

On the map: Mechanistic interpretability → Knowledge and representations inside LLMs

Abstract (arXiv)

Large Language Models (LLMs) have shown impressive performance across a wide range of tasks. However, the size of LLMs is steadily increasing, hindering their application on computationally constrained environments. On the other hand, despite their general capabilities, there are many situations where only one specific task is performed, rendering all other capabilities unnecessary and wasteful. This leads us to the following question: Is it possible to extract the minimal subset from an LLM that is able to perform a specific task in a faster, standalone manner? Recent works on Mechanistic Interpretability (MI) have shown that specific tasks are performed by a localized subset of components, or circuit. However, current techniques used to identify the circuit cannot be used to extract it for its standalone usage. In this work, we propose a novel approach to automatically extract the subset of the LLM that properly performs a targeted task requiring no additional training and a small amount of data samples. We evaluate our approach on different tasks and show that the resulting models are (i) considerably smaller, reducing the number of parameters up to 82.77% and (ii) more interpretable, as they focus on the circuit that is used to carry out the specific task, and can therefore be understood using MI techniques.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Knowledge and representations inside LLMs, one of 13 directions in Mechanistic interpretability. Builds on 21 of its 34 references that are in the map. First posted on arXiv 20 Dec 2024.

Builds on

21 of 34 references.

References · 21

  1. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  6. 2020Scaling Laws for Neural Language Modelscited by 6,586
  7. 2022LaMDA: Language Models for Dialog Applicationscited by 1,220
  8. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  9. 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,121
  10. 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 939
  11. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 724
  12. 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 526
9 more
  1. 2013Do Deep Nets Really Need to be Deep?cited by 474
  2. 2022Distilling Reasoning Capabilities into Smaller Language Modelscited by 158
  3. 2023The Hydra Effect: Emergent Self-repair in Language Model Computationscited by 156
  4. 2019Distilling Task-Specific Knowledge from BERT into Simple Neural Networkscited by 153
  5. 2024Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanismscited by 149
  6. 2022LUT-GEMM: Quantized Matrix Multiplication based on LUTs for Efficient Inference in Large-Scale Generative Language Modelscited by 105
  7. 2023Memory-Efficient Fine-Tuning of Compressed Large Language Models via sub-4-bit Integer Quantizationcited by 100
  8. 2024Finding Transformer Circuits with Edge Pruningcited by 60
  9. 2023What Matters In The Structured Pruning of Generative Language Models?cited by 30

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 1.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Mechanistic Interpretability for Large Language Model Alignment: Progress, Challenges, and Future Directions
  2. 2026Data-driven Circuit Discovery for Interpretability of Language Models
  3. 2023Proto-lm: A Prototypical Network-Based Framework for Built-in Interpretability in Large Language Models
  4. 2025Can abstract concepts from LLM improve SLM performance?
  5. 2024Crafting Large Language Models for Enhanced Interpretability
  6. 2026Translation Heads: Disentangling meaning from language in LLM-based machine translation
  7. 2025Weight-sparse transformers have interpretable circuits
  8. 2026From Insight to Action: A Novel Framework for Interpretability-Guided Data Selection in Large Language Models