DLoFT: Gradient-Decoupled Fine-Tuning for Generalizable Long Chain-of-Thought Reasoning

Si-Tong Wu, Hao-Ru Tan, Jing-Yao Li, Shao-Feng Zhang, Xiao-Juan Qi +2 more
1/1/2025

No official code found. Best implementation: stonewst/DLoFT (18 stars).

Abstract

Long chain-of-thought (LongCoT) has emerged as a powerful reasoning paradigm for enabling large language models (LLMs) to solve complex tasks through a systematic and thorough thinking phase. Although supervised fine-tuning (SFT) on high-quality LongCoT traces has proven effective to activate LongCoT abilities, we find that models trained in this way tend to overfit problem-specific knowledge and heuristics, leading to degraded out-of-distribution performance.

Show full abstract

To address this issue, we propose a Decoupled LongCoT Fine-Tuning (DLoFT) algorithm, which enables the model to learn generalizable LongCoT reasoning abilities while preventing overfitting to the reasoning content with problem-specific information. The key idea is to decouple the gradient into two orthogonal components: 1) a paradigm-relevant gradient corresponding to the general LongCoT paradigm and 2) a content-relevant gradient reflecting the problem-specific information, where only the former gradient is used to update model parameters. Specifically, by leveraging the unique two-phase composition (thinking and solution) of the Long-CoT response, our gradient decoupling mechanism isolates the content-relevant gradient via a projection operation and separates the paradigm-relevant gradient through orthogonalization. Our DLoFT ensures the model concentrate on internalizing the LongCoT paradigm rather than memorizing problem-specific knowledge and heuristics. Extensive experiments demonstrate that our DLoFT significantly improves the generalization behavior of LongCoT abilities compared to SFT while maintaining strong in-distribution performance. The code is available at https://github.com/dvlab-research/DLoFT .

DOISemantic Scholar

Code Implementations(1)

stonewst/DLoFTCommunity25%

Official Code of NeurIPS-2025 Paper "DLoFT: Gradient-Decoupled Fine-Tuning for Generalizable Long Chain-of-Thought Reasoning"

182

Similar Papers

Cite this paper

@article{wu2025dloft,
  title  = {DLoFT: Gradient-Decoupled Fine-Tuning for Generalizable Long Chain-of-Thought Reasoning},
  author = {Si-Tong Wu and Hao-Ru Tan and Jing-Yao Li and Shao-Feng Zhang and Xiao-Juan Qi and Bei Yu and Jia-Ya Jia},
  year   = {2025},
  doi    = {10.52202/085713-0598},
  url    = {https://doi.org/10.52202/085713-0598},
  journal = {Neural Information Processing Systems}
}

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/68a52e5b881836f96cec6feedc54a0f05127b1b0.svg)](https://codeofpaper.com/paper/68a52e5b881836f96cec6feedc54a0f05127b1b0)

Discussion