Finetune Once: Decoupling General & Domain Learning with Dynamic Boosted Annealing

Yang Tang, Ruijie Liu, Yifan Wang, Shiyu Li, Xi Chen · Submission to ICLR 2026 · Withdrawn

TL;DR

Fine-tuning Large Language Models (LLMs) on domain-specific data usually risks catastrophic forgetting unless practitioners spend enormous compute tuning delicate data-mixing ratios. The authors propose Dynamic Anchor Annealing (DAA), a "finetune once" framework that uses a one-time precomputed "global gradient" over general data to anchor domain-specific optimization. DAA eliminates the need for data-mixture sweeps, cutting training GPU hours by over 90% while achieving an average 5.8% boost in joint domain-and-general performance.

What Problem Does This Paper Address?

When adapting an LLM to specialized vertical domains (such as finance, medicine, or law), the standard practice to prevent catastrophic forgetting of general reasoning is Data Mixture (DM)—blending general conversational data with domain-specific data. However, the optimal mixture ratio (e.g., 1:1, 1:3, 1:5) varies wildly across domains and base models, requiring expensive, repeated trial-and-error training runs. While Parameter-Efficient Fine-Tuning (like LoRA) mitigates forgetting and reduces compute, it often lags behind full-parameter fine-tuning on domain-specific capability.

The paper asks: Can we decouple domain adaptation from general data mixing entirely, tuning only on domain data while preventing representational collapse?

Methods

DAA is a full-parameter fine-tuning framework that separates general and domain optimization signals directly in gradient space using three core components:

  1. Global Gradient Anchoring (GGA):
  2. A general "global gradient" ($\hat{g}_G$) is precomputed once by running a forward/backward pass across general-domain data with a learning rate of zero ($\eta_G = 0$) and Adam first momentum $\beta_1 \to 1$.
  3. To make it memory-efficient, the momentum matrix is compressed via Singular Value Decomposition (SVD) down to rank $r = 512$ (occupying only ~5.5 GB VRAM).
  4. During domain fine-tuning, the domain gradient $g_{D,t}$ is regularized by blending with this static anchor: $g_{B,t} = \gamma_t \hat{g}_G + (1 - \gamma_t)g_{D,t}$, where $\gamma_t$ decays linearly over training steps.
  5. Dynamic Correction (DC):
  6. The framework dynamically modulates optimization step sizes based on the cosine similarity between the current domain gradient and the precomputed global anchor.
  7. Orthogonal gradients (low interference) permit larger domain update steps, whereas highly aligned gradients (high interference) scale down updates to protect general knowledge.
  8. Annealing Learning (AL):
  9. Employs a low initial learning rate ($\eta_0^a = 10^{-7}$) coupled with a linear decay schedule without warmup, which keeps parameter updates modest and prevents representational disruption.
       [General Data]
              │
    (Zero-LR Training)
              │
              ▼
    [Global Gradient m_G] ──(SVD Compression r=512)──┐
                                                     │
       [Domain Data]                                 ▼
              │                         ┌───────────────────────────┐
     (Domain Gradient) ────────────────►│ • Gradient Anchoring (GGA)│
                                        │ • Dynamic Correction (DC) │──► [LLM Update]
                                        │ • Annealing Learning (AL) │
                                        └───────────────────────────┘

Datasets

  • General Instruction Data: 54,042 Chinese QA pairs, 65,596 English QA pairs, and 1,881 Chinese multiple-choice questions (filtered from a 2.4M sample pool using Platypus-style filtering).
  • Vertical Domain Datasets:
  • Finance: FinGPT sentiment analysis (76,772 samples from FPB, FiQA, TFNS, and NWGI).
  • Medicine: CMB-Exam benchmark (269,359 Chinese medical exam questions).
  • Law: Chinese legal corpus covering case summaries, QA, and syllogistic reasoning (99,237 samples from CAIL-Long, LawGPT, Lawyer LLaMA, and Fuzi).
  • News QA (Newly Introduced Benchmark): A strictly leak-free temporal Out-of-Distribution (OOD) dataset consisting of 30,613 true/false QA statements extracted from news published after December 2024 to avoid pretraining contamination.
  • General Capability Benchmarks: MMLU, MMLU-Pro, GSM8K, MATH, and M3Exam.

Key Insights and Ideas

  • Loss Landscapes & Noise Disparities: The authors find that general-domain data has nearly double the gradient noise scale and a far more tortuous loss landscape than domain-specific data. Directly mixing them destabilizes domain convergence. Freezing a stable general optimization prior circumvents this conflict.
  • Gradient Anchors Act as "Model Artifacts": Just as base model weights are distributed, foundation model providers could release precomputed low-rank global gradients once. Downstream users could simply load this anchor for any vertical domain fine-tuning.
  • Temporal OOD Exposes Catastrophic Forgetting: On familiar domains (e.g., medicine, finance), base LLMs already possess extensive prior knowledge, so fine-tuning is primarily style alignment. On the unseen News QA benchmark, Direct FT completely collapsed on Qwen3 (general score dropped to 3.83%), whereas DAA maintained robust general performance (68.52%) while excelling on the domain task (80.82%).

Key Results

  • Overall Performance: Evaluated on Llama-3.1-8B, Phi-4-14B, and Qwen3-8B across four vertical domains, DAA consistently achieved the highest harmonic mean score ($S$) balancing domain performance ($S_D$) and general reasoning ($S_G$). On average, it improved joint performance by 5.8% over vanilla fine-tuning with data mixtures.
  • Compute Reduction: Because it avoids iterative ratio searches (sweeping ratios like 1:1, 1:3, 1:5) and skips replaying general data online, DAA reduced GPU-hour requirements by ~91% compared to vanilla fine-tuning (e.g., ~4.2 vs. ~46.7 GPU-hours on 16$\times$ A100s).
  • Memory Overhead: Adding the SVD-compressed gradient anchor added only ~0.7 GB of peak VRAM during training compared to direct fine-tuning.

Limitations and Future Work

  • Domain and Architecture Scope: Experiments were restricted to dense autoregressive language models on text tasks (classification, QA, and summarization). Applicability to Mixture-of-Experts (MoE), multimodal models (vision/speech), or RL-based alignment remains untested.
  • Very Large Scale Architectures: Extreme model depths and hundreds of billions of parameters might exhibit stability or convergence nuances that smaller dense models (~7B–14B) did not display.
  • Integration with PEFT: DAA is currently evaluated as full-parameter fine-tuning; the authors note future work will adapt GGA and DC specifically to low-rank adapter updates (e.g., applying anchors directly to LoRA parameter gradients).

Summary updated

BibTeX
@misc{tang2025finetune,
  author = {Yang Tang and Ruijie Liu and Yifan Wang and Shiyu Li and Xi Chen},
  title = {{Finetune Once: Decoupling General \& Domain Learning with Dynamic Boosted Annealing}},
  year = {2025},
  eprint = {2509.26242},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.26242},
}

Loading related content...

Figure