LESSER: Post-Training Data Selection with Output-Layer Gradients
cs.LG
Submitted: 2026-10-02
Updated: 2026-10-02
License: http://creativecommons.org/licenses/by/4.0/
The gist: The choice of post-training data for large language models substantially affects downstream performance.
Abstract
The choice of post-training data for large language models substantially affects downstream performance. Gradient-based data selection is a popular approach that ranks training data by how well their gradients align with those of a small validation set. However, ranking with full-parameter gradients requires an expensive backward pass on every sample, making computation intractable for large candidate pools. This raises a natural question: can we approximate full-gradient features at a fraction of the cost? Conveniently, we find that output-layer gradients suffice for effective data selection, yet require only the cheaper forward pass. We implement this as LESSER, a drop-in wrapper for selection methods that reduces the feature-extraction FLOP cost by 9.7 times for SFT and 3.0 times for RL benchmarks, while tracking full-gradient performance on downstream tasks. Empirically, we find that even when output-layer and full gradients rank individual samples differently, they select batches with aligned gradients.
Sources
- Phi-4 Technical Report
- Deep Batch Active Learning by Diverse, Uncertain Gradient Lower Bounds
- AlpaGasus: Training A Better Alpaca with Fewer Data
- Evaluating Large Language Models Trained on Code
- Training Verifiers to Solve Math Word Problems
- For-Value: Efficient Forward-Only Data Valuation for finetuning LLMs and VLMs
- The Llama 3 Herd of Models
- Studying Large Language Model Generalization with Influence Functions
- Measuring Mathematical Problem Solving With the MATH Dataset
- Training Compute-Optimal Large Language Models
- LoRA: Low-Rank Adaptation of Large Language Models
- Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2
- Large-Scale Data Selection for Instruction Tuning
- Scaling Laws for Neural Language Models
- Decoupled Weight Decay Regularization
- GIST: Targeted Data Selection for Instruction Tuning via Coupled Optimization Geometry
- A Critical Look at Targeted Instruction Selection: Disentangling What Matters (and What Doesn't)
- 2 OLMo 2 Furious
- Olmo 3
- In Good GRACEs: Principled Teacher Selection for Knowledge Distillation
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks