Fine-Tuning is Subgraph Search: A New Lens on Learning Dynamics

Yueyan Li, Wenhao Gao, Caixia Yuan, Xiaojie Wang
2/10/2025
cs.LGcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

The study of mechanistic interpretability aims to reverse-engineer a model to explain its behaviors. While recent studies have focused on the static mechanism of a certain behavior, the learning dynamics inside a model remain to be explored. In this work, we develop a fine-tuning method for analyzing the mechanism behind learning. Inspired by the concept of intrinsic dimension, we view a model as a computational graph with redundancy for a specific task, and treat the fine-tuning process as a search for and optimization of a subgraph within this graph. Based on this hypothesis, we propose circuit-tuning, an algorithm that iteratively builds the subgraph for a specific task and updates the relevant parameters in a heuristic way. We first validate our hypothesis through a carefully designed experiment and provide a detailed analysis of the learning dynamics during fine-tuning. Subsequently, we conduct experiments on more complex tasks, demonstrating that circuit-tuning could strike a balance between the performance on the target task and the general capabilities. Our work offers a new analytical method for the dynamics of fine-tuning, provides new findings on the mechanisms behind the training process, and inspires the design of superior algorithms for the training of neural networks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2025finetuning,
  title  = {Fine-Tuning is Subgraph Search: A New Lens on Learning Dynamics},
  author = {Yueyan Li and Wenhao Gao and Caixia Yuan and Xiaojie Wang},
  year   = {2025},
  eprint = {2502.06106},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.06106v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.06106.svg)](https://codeofpaper.com/paper/2502.06106)

Discussion