SFT Conflicts, RL Coexists: A Theoretical and Empirical Analysis of Multi-Task Learning Paradigms for LLMs
Authors: Kejian Zhu, Zhuoran Jin, Shangqing Tu, Hongbang Yuan, Yushi Bai, Kang Liu, Juanzi Li, Jun Zhao
Summary (Overview)
- Core Finding: Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL) exhibit fundamentally different behaviors in multi-task training: SFT suffers from severe task conflicts (catastrophic forgetting) during multi-stage training, while RL enables stable task coexistence with cumulative performance gains.
- Mechanistic Insight: At the parameter level, RL induces sparse, minimal updates with approximately orthogonal directions across tasks (cosine similarity
), whereas SFT produces dense, large-magnitude updates with high inter-task similarity (to 1.0). - Theoretical Contribution: The paper proves that gradient interference in SFT is norm-limited (bounded by absolute gradient magnitude ), while RL interference is variance-limited (bounded by intra-group rollout variance ), explaining why RL naturally decouples multi-task optimization.
- Practical Application: The authors propose Parallel-RL, a decoupled training paradigm where tasks are trained independently in parallel and updates are merged, achieving performance comparable to or exceeding single-task RL while improving training efficiency and modularity.
- Empirical Validation: Experiments on DeepSeek-R1-Distill-Qwen-1.5B/7B across math, science, logic, and code tasks confirm that multi-stage SFT degrades performance by 23.1% on average, while multi-stage RL improves it by 24.9%.
Introduction and Theoretical Foundation
Background and Motivation
The paper addresses a critical gap in understanding how SFT and RL behave differently in multi-task learning scenarios for large language models (LLMs). While previous work has examined single-task differences between these paradigms, their multi-task behaviors remain underexplored.
Key Observation: In practice, researchers typically use:
- Mixed-data training for SFT (to mitigate forgetting)
- Multi-stage training for RL (where each stage focuses on a single task)
This divergence in practice suggests an underlying mechanistic difference that the paper seeks to explain.
The Central Phenomenon
The paper identifies two critical empirical findings:
- Multi-stage SFT collapses (average decline of 23.1% vs. base model), while multi-stage RL improves (average gain of 24.9%).
- Single-task SFT harms untrained tasks (average decline of 5.1% on other tasks), while single-task RL preserves or improves them (average gain of 2.3%).
This is termed "SFT Conflicts and RL Coexists."
Theoretical Foundation
The paper formalizes the gradient structure of both paradigms. Let denote the policy parameterized by , and be the supervision distribution:
The two fundamental distinctions are:
- Policy Source: SFT is off-policy (samples from fixed expert distribution); RL is on-policy (samples from current policy ).
- Advantage Function: RL incorporates a scalar weighting term that reweights gradient contributions.
Methodology
Experimental Setup
- Base Models: DeepSeek-R1-Distill-Qwen-1.5B and 7B
- RL Algorithm: GRPO (Group Relative Policy Optimization)
- Efficiency Technique: LoRA for parameter-efficient fine-tuning (in preliminary experiments); full-parameter training for main experiments
- Tasks and Benchmarks:
- Math: MATH500, AIME2025
- Science: MMLU, GPQA
- Logic: Knights & Knaves (KK)
- Code: LiveCodeBench
Analytical Framework
The paper analyzes parameter update vectors for each task using two geometric properties:
- Magnitude ( norm)
- Pairwise cosine similarity between tasks
GRPO Gradient Definition
For input from task with group-wise rollouts :
where the advantage is standardized: , with and being the group mean and standard deviation of rewards.
Key property (zero-sum): \sum_{k=1}^{G} \hat{A}_{i,k}(x) = 0 \tag{4}
Parallel-RL Framework
The proposed paradigm:
- Launch parallel RL training processes, one per task
- Each produces a task-specific update
- Merge updates:
Three merging strategies explored:
- Naive Parallel-RL: Sum or mean of updates
- Sparse Parallel: TIES method or SVD rank-1 retention
- Adapted Parallel-RL: Light post-merge adaptation with 5% of original training data
Empirical Validation / Results
Parameter-Level Analysis
Observation 1: RL updates are minimal and sparse
- Average norm of : ~ for RL vs. for SFT (over two orders of magnitude difference)
- Only ~20% of RL parameters have magnitudes exceeding , compared to 93% for SFT
Observation 2: RL optimization directions are approximately orthogonal
- Pairwise cosine similarity between different RL tasks: ~
- SFT similarity: on the order of to 1.0, with some updates pointing in opposite directions
Quantitative Score Function Analysis
| Indicator | SFT | RL |
|---|---|---|
| ~7.1 | ~ | |
| - | ~ | |
| CosSim(, ) | ~ | ~ |
Main Results (Table 4 Summary)
DeepSeek-R1-Distill-Qwen-1.5B:
| Method | Δ Base (%) | Retention (%) |
|---|---|---|
| Single-Task SFT | +5.5 | - |
| Single-Task RL | +9.3 | - |
| Mixed Data SFT | +5.2 | - |
| Multi-Stage SFT | -8.3 | - |
| Mixed Data RL | +8.9 | - |
| Multi-Stage RL | +10.2 | - |
| Naive Parallel-RL (sum) | +6.6 | 94.2 |
| TIES Parallel-RL | +8.0 | 97.4 |
| Adapted Parallel-RL | +10.7 | 103.2 |
Key Results for 7B Model:
- Adapted Parallel-RL achieves +8.0% over base, with 102.4% retention of single-task RL performance
- Naive Parallel-SFT retains only ~67% of single-task SFT performance, demonstrating severe conflicts
Ablation Study
Removing a specific from the merged model causes:
- Average performance drop on the corresponding task (): 7.1%
- Performance on other tasks remains robust, with slight improvement (): +0.6%
This confirms that Parallel-RL effectively decouples task-specific capabilities.
Theoretical and Practical Implications
Theoretical Analysis
The paper builds on RL's Razor (Shenfeld et al., 2025):
Proposition 4.1 (Convergence to KL-Minimal Solution): Under binary rewards, policy gradient converges to:
This means RL implicitly selects the optimal policy closest in KL-divergence to initialization, explaining the sparsity of updates.
Gradient Interference Decomposition
Lemma 4.3 (Gradient Inner Product Decomposition): The RL interference term decomposes as:
where is the residual score function.
Key insight: The zero-sum property of advantages removes the mean gradient direction , transforming interference into a function of intra-group residuals only.
Upper Bound Theorem
Theorem 4.5 (Upper Bound on Gradient Interference):
- SFT Upper Bound (Norm-Limited):
- RL Upper Bound (Variance-Limited):
Where bounds the expected norm of expert score functions, and bounds the intra-group variance of residual score functions.
Mechanism Summary
- Advantage Function as Filter: Removes the dense mean gradient, leaving only intra-group residuals
- On-Policy Nature: Ensures residuals remain minimal (limited by intra-group divergence for fixed input and parameters)
- Concentration of Measure: Independent zero-mean sparse vectors in high-dimensional space are approximately orthogonal with high probability:
Practical Implications
- Training Paradigm Shift: Parallel-RL enables modular, composable training where tasks are decoupled
- Efficiency Gains: Tasks can be trained in parallel rather than sequentially, reducing wall-clock time
- Flexibility: Task-specific modules can be added or removed without retraining
- Performance: Adapted Parallel-RL can even surpass single-task RL performance, suggesting beneficial cross-task generalization
Conclusion
Main Takeaways
-
SFT Conflicts vs. RL Coexists: SFT's dense, high-magnitude updates cause catastrophic interference across tasks, while RL's sparse, orthogonal updates enable coexistence.
-
Norm-Limited vs. Variance-Limited Interference: The theoretical analysis proves that SFT interference scales with absolute gradient magnitude, while RL interference is bounded by intra-group rollout variance—a fundamental consequence of the advantage function and on-policy optimization.
-
Parallel-RL as a New Paradigm: The orthogonality of RL updates enables a decoupled training paradigm where tasks are trained independently and merged, achieving superior efficiency and modularity.
Future Directions
- The paper suggests Parallel-RL requires further exploration of:
- Task selection strategies (which tasks can be effectively parallelized)
- Single-task training tricks that maximize compatibility
- Extension to other RL algorithms beyond GRPO
- Scaling to larger models and more diverse task sets
Impact Statement
The work aims to advance multi-task learning for LLMs toward AGI, while emphasizing the importance of maintaining safety and reliability for each individual task during efficient multi-task training. The authors note no distinct ethical risks beyond those inherent in LLM development.
Related papers
- The Working Set of a Coding Agent: Coherence Debt in Repository-Scale Tasks
Repository-scale coding success depends on edit-time availability of coupled facts from context or parametric memory, not on total context consumed or fact distance.
- EvoMem: Memory-Augmented Evolution for Code Optimization
EvoMem's persistent memory of successful mutation strategies yields a 6.40% average performance gain and 5.93x speedup in LLM-based evolutionary code search.
- HarnessOpt-Bench: Evaluating LLMs at Harness Optimization
HARNESSOPT-BENCH shows optimizer model choice matters 1.8x more than coding harness choice for agent improvement, with broader search driving gains and trace reading providing no benefit.