TL;DR
Existing influence-based data selection methods treat all target examples equally when defining a desired model behavior, which often leads to suboptimal training paths. PRISM solves this by weighting target examples based on the model's current generation preferences, creating a more effective gradient direction that significantly boosts data efficiency for both general fine-tuning and safety alignment.
What Problem Does This Paper Address?
Fine-tuning Large Language Models (LLMs) is computationally expensive, making data efficiency a top priority. Data selection methods attempt to solve this by identifying and training only on the most valuable samples from a large candidate pool.
A popular approach is influence-based data selection, which defines a desired "target behavior" using a small set of target examples and then scores candidate training data based on how much they would push the model toward that behavior. However, existing methods uniformly aggregate all target examples, treating them as equally important.
The authors argue that this is a mistake. Target examples that already align closely with the model's inherent behavior provide strong, actionable supervisory signals. Conversely, examples that are highly discrepant with the model yield weak and ineffective local guidance. Uniformly averaging these signals dilutes the most effective training directions, as illustrated in the motivation figure below:
Methods
The authors introduce PRISM (Preference-aware Influence function based Data Selection Method), which constructs a target direction in a preference-aware manner.
The workflow consists of four main steps:
- Compute Gradient-Difference Features: For each target query, PRISM uses a paired target example consisting of a positive (desired) response $y_q^+$ and a negative (undesired) contrast response $y_q^-$. It computes length-normalized gradients for both.
- Compute Preference Scores: PRISM quantifies the model's current preference ($\pi_q$) for the positive response over the negative contrast using length-normalized likelihoods.
- Construct Target Direction: Instead of a simple average, PRISM defines a target-preference reward based on KL divergence. Differentiating this reward yields a preference-aware target direction ($g_{\text{KL}}$) where target examples are naturally weighted by the model's preference score $\pi_q$.
- Select Data: Candidate training examples are scored using their Hessian-preconditioned alignment with this preference-aware target direction (influence scoring) to select the top-$k$ training subset.
Datasets
PRISM was evaluated across two primary settings using several diverse datasets:
- General Capabilities Selection: Selected from a candidate pool of ~270K instruction-tuning examples assembled from FLAN V2, CoT data, Dolly, and OpenAssistant. Models were evaluated on MMLU (factual knowledge), BBH (reasoning), TyDi QA (multilingual QA), and MATH-500 (mathematics).
- Safety-Critical SFT Repair: Evaluated using data from Hu et al. (2025) covering three harmful data families: insecure code, Mistake math, and Mistake medical. Performance was measured using the MASK provided-facts benchmark to track model dishonesty rates.
- Agent Safety Guardrail: Selected from a private safety-related training pool (~2K examples) and evaluated on ATBench (agent trajectory safety).
Key Insights and Ideas
- Actionable Local Signals: Target behaviors that are closer to the model's current capabilities are much easier to amplify through training. Pushing a model toward behaviors it completely rejects results in weak local gradients that don't generalize well.
- Mathematically Justified Weighting: The preference weight $\pi_q$ is not an ad-hoc heuristic; it is rigorously derived from the gradient of the target-preference reward function.
- The Directional Gap: Theoretical analysis proves that uniform aggregation causes the estimated gradient direction to deviate from the reward-maximizing path. PRISM guarantees a first-order target-preference reward gain that is no smaller than uniform aggregation under the same local training budget.
Key Results
PRISM consistently outperformed standard data selection baselines (such as LESS, IF-Guide, and Random selection) across multiple model families (Llama-2, Qwen3, Llama-3.1) and parameter scales:
- General Capabilities: When selecting just the top 5% of data from the 270K pool, PRISM achieved the best or tied-best downstream performance across almost all benchmarks. For instance, on Llama-2-13B, PRISM achieved a TyDi F1 score of 56.60 compared to LESS (52.12) and Random (47.39).
- Emergent Misalignment Repair: In safety-critical filtering, retraining models on data curated by PRISM resulted in the lowest post-SFT dishonesty rates, successfully mitigating harmful behaviors more effectively than other data attribution methods.
- Data Savings in Agent Safety: On the ATBench guardrail task, PRISM matched or surpassed full-data SFT performance while utilizing only 40% of the available training data budget.
Limitations and Future Work
The authors note a few limitations of their current work:
- Target Dependency: PRISM relies entirely on the quality and coverage of the provided target examples. If these examples omit crucial modes of the desired behavior, the data selection will be narrow.
- Scale and Task Constraints: The method has not yet been exhaustively evaluated on ultra-large-scale models or long-form text generation tasks.
- Computational Overhead: Calculating target-example preferences and influence scores introduces additional selection-time computational costs (specifically via Hessian-vector products) compared to simple heuristic filters or random selection.
Summary updated