Consolidation or Adaptation? PRISM: Disentangling SFT and RL Data via Gradient Concentration

Yang Zhao, Yangou Ouyang, Xiao Ding, Hepeng Wang, Bibo Cai, Kai Xiong, Jinglong Gao, Zhouhao Sun, Li Du, Bing Qin, Ting Liu

TL;DR

Training LLM agents typically involves Supervised Fine-Tuning (SFT) followed by Reinforcement Learning (RL), but indiscriminately applying both to all data is computationally wasteful and can degrade performance. This paper introduces PRISM, a framework that analyzes the geometric structure of a model's gradients to route "low-conflict" data to SFT for efficient memorization, and "high-conflict" data to RL for deeper logical restructuring. By doing so, PRISM achieves state-of-the-art performance on agent benchmarks while cutting RL compute costs by up to 3.22$\times$.

What Problem Does This Paper Address?

To build capable LLM agents, developers usually rely on a two-stage pipeline: SFT to teach the model behavioral norms (imitation), followed by RL to improve long-horizon reasoning (exploration).

The problem is data allocation. Currently, the standard approach is "Monolithic Sequencing"—shoving 100% of your dataset through SFT, and then 100% through RL. This ignores the fact that different data points have different intrinsic learning needs.

  • If you force RL on easy, already-understood data, you inject exploratory noise that can destroy well-consolidated patterns.
  • If you rely only on SFT for highly complex, counter-intuitive data, the model just memorizes shortcuts instead of actually learning the underlying reasoning.

Current attempts to filter data rely on surface-level heuristics (like whether the model gets the answer right or wrong), which often mask whether the model actually understands the task. The authors wanted a principled, internal metric to decide exactly which data needs SFT and which needs RL.

Methods

The authors propose PRISM (Partitioning Regimes via Internal Spatial-gradient Metrics), a framework that uses the model's own gradients to diagnose "cognitive conflict." It operates in three stages:

  1. Non-Invasive Gradient Probing: Before training, PRISM runs a single forward and backward pass on the frozen base model using the dataset's reference trajectories. It calculates the gradient norms for specific functional units (like Attention and FFN linear projections) without actually updating the weights.
  2. Quantifying Structural Dissonance: PRISM measures how "spiky" or concentrated these gradients are using statistical metrics like the Gini Coefficient, Kurtosis, or Coefficient of Variation (CV).
  3. Distribution-Adaptive Routing: Using a simple median split on these concentration scores, PRISM divides the dataset in half. Data with diffuse, evenly spread updates (low conflict) is routed to SFT. Data with highly concentrated updates in specific neurons (high conflict) is routed to RL.

Datasets

The framework was evaluated on two standard, complex agentic benchmarks:

  • WebShop: An interactive e-commerce environment that tests instruction following and attribute matching over long horizons (simulating real-world website navigation).
  • ALFWorld: A text-based embodied simulation that requires multi-step reasoning and compositional generalization to solve household tasks.

Key Insights and Ideas

  • Gradient Concentration $\neq$ Gradient Magnitude: This is the paper's biggest "aha!" moment. You might assume that a large overall gradient means the model is struggling and needs RL. Not true. Large gradient magnitudes often just indicate a simple knowledge gap (e.g., an unfamiliar word), which SFT can easily fix. However, high gradient concentration—where a tiny subset of neurons is screaming for massive updates—indicates a fundamental clash with the model's existing logic. That structural dissonance requires RL's trial-and-error to rewire.
  • Exploration can be destructive: Applying RL to "low-conflict" data actively hurts the model. It forces the optimizer to explore alternative actions for routines the model already perfectly understands, diluting gradients and interfering with consolidated norms.
  • Less is more (if it's the right data): You don't need to train on 100% of the data with RL to get the best results. Selectively applying RL to only the ~50% of data that actually requires structural adaptation yields better generalization than 100% RL, proving that smarter data arbitration beats exhaustive exploration.

Key Results

PRISM achieves a massive Pareto improvement—better performance for a fraction of the compute cost.

  • ALFWorld: Using a Qwen3-8B backbone, PRISM achieved a 95.31% success rate on seen tasks and 79.69% on unseen tasks. This crushed the compute-heavy 100% SFT + 100% RL baseline (88.28% / 69.53%).
  • WebShop: PRISM hit a state-of-the-art score of 85.15, outperforming the sequential baseline (80.82) and other outcome-aware filtering methods.
  • Efficiency: Because PRISM only routes 50% of the data to the computationally expensive RL phase, it reduced total training wall-clock time by nearly 50% on WebShop and achieved a 3.22$\times$ speedup on ALFWorld compared to full-data RL.

Limitations and Future Work

  • Scale Verification: The experiments were primarily conducted on 7B-8B parameter models. The authors acknowledge that verifying these gradient concentration properties on massive, 70B+ parameter models is a necessary next step.
  • Static Routing: PRISM currently computes gradients once on the base model before training begins. It doesn't account for the dynamic evolution of the model's internal state (e.g., a high-conflict sample might become low-conflict halfway through training).
  • Domain Scope: The evaluation is heavily focused on agentic decision-making. Future work should investigate if this gradient-based diagnostic generalizes to other complex domains like advanced mathematical reasoning or open-ended creative generation.

Summary updated

BibTeX
@inproceedings{zhao2026consolidation,
  author = {Yang Zhao and Yangou Ouyang and Xiao Ding and Hepeng Wang and Bibo Cai and Kai Xiong and Jinglong Gao and Zhouhao Sun and Li Du and Bing Qin and Ting Liu},
  title = {{Consolidation or Adaptation? PRISM: Disentangling SFT and RL Data via Gradient Concentration}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.1097},
}
Figure