Towards Understanding Fine-Tuning Mechanisms of LLMs via Circuit Analysis
Not on the map. Why?
Abstract (arXiv)
Fine-tuning significantly improves the performance of Large Language Models (LLMs), yet its underlying mechanisms remain poorly understood. This paper aims to provide an in-depth interpretation of the fine-tuning process through circuit analysis, a popular tool in Mechanistic Interpretability (MI). Unlike previous studies (Prakash et al. 2024; Chhabra et al. 2024) that focus on tasks where pre-trained models already perform well, we develop a set of mathematical tasks where fine-tuning yields substantial performance gains, which are closer to the practical setting. In our experiments, we identify circuits at various checkpoints during fine-tuning and examine the interplay between circuit analysis, fine-tuning methods, and task complexities. First, we find that while circuits maintain high node similarity before and after fine-tuning, their edges undergo significant changes, in contrast to prior work that shows circuits only add some additional components after fine-tuning. Based on these observations, we develop a circuit-aware Low-Rank Adaptation (LoRA) method, which assigns ranks to layers based on edge changes in the circuits. Experimental results demonstrate that our circuit-based LoRA algorithm achieves an average performance improvement of 2.46% over standard LoRA with similar parameter sizes. Furthermore, we explore how combining circuits from subtasks can enhance fine-tuning in compositional tasks, providing new insights into the design of such tasks and deepening the understanding of circuit dynamics and fine-tuning mechanisms.
Key facts. Cited by 20 papers in the map (data through 14 Oct 2026). Builds on 41 of its 51 references that are in the map. First posted on arXiv 17 Feb 2025.
Builds on
41 of 51 references.
References · 41
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
- 2022Mass-Editing Memory in a Transformercited by 1,001
- 2022In-context Learning and Induction Headscited by 964
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 767
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 724
29 more
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
- 2021Causal Abstractions of Neural Networkscited by 422
- 2023AdaLoRA: Adaptive Budget Allocation for Parameter-Efficient Fine-Tuningcited by 357
- 2023Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Modelscited by 243
- 2023Evaluating the Ripple Effects of Knowledge Editing in Language Modelscited by 242
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 232
- 2023Attribution Patching Outperforms Automated Circuit Discoverycited by 209
- 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 202
- 2020Causal Mediation Analysis for Interpreting Neural NLP: The Case of Gender Biascited by 191
- 2024A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicitycited by 185
- 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 149
- 2024Have Faith in Faithfulness: Going Beyond Circuit Overlap When Finding Model Mechanismscited by 149
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 118
- 2023Mechanistically analyzing the effects of fine-tuning on procedurally defined taskscited by 115
- 2024TruthX: Alleviating Hallucinations by Editing Large Language Models in Truthful Spacecited by 91
- 2023A Mechanistic Interpretation of Arithmetic Reasoning in Language Models using Causal Mediation Analysiscited by 89
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 85
- 2023Successor Heads: Recurring, Interpretable Attention Heads In The Wildcited by 77
- 2023Copy Suppression: Comprehensively Understanding an Attention Headcited by 76
- 2024Finding Transformer Circuits with Edge Pruningcited by 60
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspectivecited by 51
- 2024LoRA-drop: Efficient LoRA Parameter Pruning based on Output Evaluationcited by 38
- 2024Iteration Head: A Mechanistic Study of Chain-of-Thoughtcited by 31
- 2023Interpretability Illusions in the Generalization of Simplified Modelscited by 25
- 2024What Can Transformer Learn with Varying Depth? Case Studies on Sequence Learning Taskscited by 19
- 2024How Transformers Utilize Multi-Head Attention in In-Context Learning? A Case Study on Sparse Linear Regressioncited by 14
- 2024Learning and Unlearning of Fabricated Knowledge in Language Modelscited by 4
- 2024Understanding the role of FFNs in driving multilingual behaviour in LLMscited by 3
Built on by
Citing papers per year: 2025: 7; 2026: 13.
20 papers.
Sort:
By area:
- 2025Model Unlearning via Sparse Autoencoder Subspace Guided Projectionscited by 18
- 2025Does higher interpretability imply better utility? A Pairwise Analysis on Sparse Autoencoderscited by 10
- 2025Planted in Pretraining, Swayed by Finetuning: A Case Study on the Origins of Cognitive Biases in LLMscited by 5
- 2025Mixture of Length and Pruning Experts for Knowledge Graphs Reasoningcited by 5
- 2026SafeSeek: Universal Attribution of Safety Circuits in Language Modelscited by 4
- 2025Probability Signature: Bridging Data Semantics and Embedding Structure in Language Modelscited by 2
- 2025PATCH: Mitigating PII Leakage in Language Models with Privacy-Aware Targeted Circuit PatcHingcited by 2
- 2026Demystifying Variance in Circuit Discovery of LLMscited by 2
- 2026What does a Bayes-filtered transformer believe? A predictive Monte Carlo approachcited by 1
- 2026Text Capability Loss in Vision-Language Adaptation: An Attention-Sink Diagnosiscited by 1
- 2026Capsule Lens: Locating and Tracking Concept Geometry in Model Representationscited by 1
- 2025Distilled Circuits: A Mechanistic Study of Internal Restructuring in Knowledge Distillationcited by 0
8 more
- 2026Beyond Transfer Accuracy: Mechanism-Guided Controlled Adaptation for Low-Resource Languagescited by 0
- 2026Mechanism Shift During Post-training from Autoregressive to Masked Diffusion Language Modelscited by 0
- 2026Training Prompt Matters: State-Adaptive Optimization for Robust Fine-Tuningcited by 0
- 2026Inherited Circuits, Learned Semantics: How Fine-Tuning Creates Evasion Vulnerabilities Invisible to Standard Evaluationcited by 0
- 2026AEGIS: A Mechanism-Guided Defense against Visual Synonym Jailbreaks in Text-to-Image Modelscited by 0
- 2026Beyond Static Interpretability: Anticipating Post-SFT Mechanisms from Pre-SFT Parameters for Better Tuningcited by 0
- 2026Decoupling Internal Representational Changes and Causal Importance in Fine-Tuned Large Language Modelscited by 0
- 2026Rewired or Gated? How Instruction Tuning Shapes Knowledge-Conflict Circuits in LLMscited by 0
- 2026Rewired or Gated? How Instruction Tuning Shapes Knowledge-Conflict Circuits in LLMs22 Sep 2026
- 2026Decoupling Internal Representational Changes and Causal Importance in Fine-Tuned Large Language Models17 Sep 2026
- 2026Capsule Lens: Locating and Tracking Concept Geometry in Model Representations4 Sep 2026
- 2026Text Capability Loss in Vision-Language Adaptation: An Attention-Sink Diagnosis1 Sep 2026
- 2026Beyond Static Interpretability: Anticipating Post-SFT Mechanisms from Pre-SFT Parameters for Better Tuning25 Aug 2026
- 2026What does a Bayes-filtered transformer believe? A predictive Monte Carlo approach19 Jul 2026
- 2026AEGIS: A Mechanism-Guided Defense against Visual Synonym Jailbreaks in Text-to-Image Models7 Jul 2026
- 2026Inherited Circuits, Learned Semantics: How Fine-Tuning Creates Evasion Vulnerabilities Invisible to Standard Evaluation25 Jun 2026
- 2026Demystifying Variance in Circuit Discovery of LLMs15 Jun 2026
- 2026Training Prompt Matters: State-Adaptive Optimization for Robust Fine-Tuning1 Jun 2026
- 2026SafeSeek: Universal Attribution of Safety Circuits in Language Models24 Mar 2026
- 2026Mechanism Shift During Post-training from Autoregressive to Masked Diffusion Language Models21 Jan 2026
8 more
- 2026Beyond Transfer Accuracy: Mechanism-Guided Controlled Adaptation for Low-Resource Languages13 Jan 2026
- 2025PATCH: Mitigating PII Leakage in Language Models with Privacy-Aware Targeted Circuit PatcHing8 Oct 2025
- 2025Does higher interpretability imply better utility? A Pairwise Analysis on Sparse Autoencoders4 Oct 2025
- 2025Probability Signature: Bridging Data Semantics and Embedding Structure in Language Models24 Sep 2025
- 2025Mixture of Length and Pruning Experts for Knowledge Graphs Reasoning28 Jul 2025
- 2025Planted in Pretraining, Swayed by Finetuning: A Case Study on the Origins of Cognitive Biases in LLMs9 Jul 2025
- 2025Model Unlearning via Sparse Autoencoder Subspace Guided Projections30 May 2025
- 2025Distilled Circuits: A Mechanistic Study of Internal Restructuring in Knowledge Distillation16 May 2025
- 2025Does higher interpretability imply better utility? A Pairwise Analysis on Sparse Autoencoderscited by 10
- 2026Demystifying Variance in Circuit Discovery of LLMscited by 2
- 2026Capsule Lens: Locating and Tracking Concept Geometry in Model Representationscited by 1
- 2026Beyond Transfer Accuracy: Mechanism-Guided Controlled Adaptation for Low-Resource Languagescited by 0
- 2026Beyond Static Interpretability: Anticipating Post-SFT Mechanisms from Pre-SFT Parameters for Better Tuningcited by 0
- 2026Rewired or Gated? How Instruction Tuning Shapes Knowledge-Conflict Circuits in LLMscited by 0
- 2026Rewired or Gated? How Instruction Tuning Shapes Knowledge-Conflict Circuits in LLMs22 Sep 2026
- 2026Capsule Lens: Locating and Tracking Concept Geometry in Model Representations4 Sep 2026
- 2026Beyond Static Interpretability: Anticipating Post-SFT Mechanisms from Pre-SFT Parameters for Better Tuning25 Aug 2026
- 2026Demystifying Variance in Circuit Discovery of LLMs15 Jun 2026
- 2026Beyond Transfer Accuracy: Mechanism-Guided Controlled Adaptation for Low-Resource Languages13 Jan 2026
- 2025Does higher interpretability imply better utility? A Pairwise Analysis on Sparse Autoencoders4 Oct 2025
- 2025Planted in Pretraining, Swayed by Finetuning: A Case Study on the Origins of Cognitive Biases in LLMscited by 5
- 2025Mixture of Length and Pruning Experts for Knowledge Graphs Reasoningcited by 5
- 2025Probability Signature: Bridging Data Semantics and Embedding Structure in Language Modelscited by 2
- 2025PATCH: Mitigating PII Leakage in Language Models with Privacy-Aware Targeted Circuit PatcHingcited by 2
- 2026What does a Bayes-filtered transformer believe? A predictive Monte Carlo approachcited by 1
- 2026Training Prompt Matters: State-Adaptive Optimization for Robust Fine-Tuningcited by 0
- 2026Inherited Circuits, Learned Semantics: How Fine-Tuning Creates Evasion Vulnerabilities Invisible to Standard Evaluationcited by 0
- 2026Decoupling Internal Representational Changes and Causal Importance in Fine-Tuned Large Language Modelscited by 0
- 2026Decoupling Internal Representational Changes and Causal Importance in Fine-Tuned Large Language Models17 Sep 2026
- 2026What does a Bayes-filtered transformer believe? A predictive Monte Carlo approach19 Jul 2026
- 2026Inherited Circuits, Learned Semantics: How Fine-Tuning Creates Evasion Vulnerabilities Invisible to Standard Evaluation25 Jun 2026
- 2026Training Prompt Matters: State-Adaptive Optimization for Robust Fine-Tuning1 Jun 2026
- 2025PATCH: Mitigating PII Leakage in Language Models with Privacy-Aware Targeted Circuit PatcHing8 Oct 2025
- 2025Probability Signature: Bridging Data Semantics and Embedding Structure in Language Models24 Sep 2025
- 2025Mixture of Length and Pruning Experts for Knowledge Graphs Reasoning28 Jul 2025
- 2025Planted in Pretraining, Swayed by Finetuning: A Case Study on the Origins of Cognitive Biases in LLMs9 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2025Slimming Down LLMs Without Losing Their Minds
- 2025Attribution-Guided Pruning for Insight and Control: Circuit Discovery and Targeted Correction in Small-scale LLMs
- 2026Mechanistic Interpretability for Large Language Model Alignment: Progress, Challenges, and Future Directions
- 2024LoRA Land: 310 Fine-tuned LLMs that Rival GPT-4, A Technical Report
- 2026Learning Rate Matters: Vanilla LoRA May Suffice for LLM Fine-tuning
- 2026Navigating by Old Maps: The Pitfalls of Static Mechanistic Localization in LLM Post-Training
- 2024Extracting Interpretable Task-Specific Circuits from Large Language Models for Faster Inference
- 2024Scaling Laws for Forgetting When Fine-Tuning Large Language Models