- The paper introduces SHIFT, a one-shot method leveraging hidden-state dynamics to select high-utility examples for training-free RLVR.
- It employs a quality-weighted farthest-first CoreSet algorithm to maximize data diversity and instance utility without reward signals.
- Experimental results demonstrate improved in-domain and OOD performance on mathematical and medical QA tasks while reducing labeling costs.
Training-Free RLVR Data Selection via Single-Rollout Hidden-State Dynamics
Introduction and Motivation
This paper addresses a central challenge in reinforcement learning with verifiable rewards (RLVR) for LLMs: highly efficient data selection under extreme supervision scarcity. Prior work has established that RLVR can yield strong reasoning improvements from just a handful of impactful examples, but the identification of such examplesโespecially without access to labels, rewards, or training-time signalsโremains intractable in large, domain-specific pools. The authors introduce SHIFT, a novel one-shot, training- and label-free data selector, which leverages the inference-time hidden-state dynamics of LLMs to compute a reasoning-induced representation shift (RIRS) and perform subset selection efficiently and scalably.
The core insight is that the magnitude of the start-to-end hidden-state change observed in a single deterministic reasoning rollout acts as a proxy for an instance's utility for subsequent RLVR optimization. SHIFT produces high-utility, diverse subsets using a quality-weighted farthest-first CoreSet algorithm in an RIRS-augmented feature space, operating without any reward estimation or multiple rollouts per candidate.
Figure 1: RLVR selection regimes: prior approaches require label or reward signals, whereas SHIFT enables one-shot, label-free, training-free selection via inference-time representation shifts.
Methodology
Hidden-State Dynamics, RIRS, and Selection Procedure
SHIFT formalizes data selection for RLVR in a pre-training, pre-labeling regime, assuming only access to an unlabeled candidate pool and the base model. For each instance, a single greedy rollout is generated; hidden states at the start and end of the reasoning segment are extracted (e.g., delimited by > and tokens). These are aggregated across layers and the difference defines the reasoning-induced representation shift:
ฮ(x)=e(x)โs(x)
where s(x) and e(x) are the averaged start and end hidden states, respectively, across all transformer layers for instance x.
The โ2โ norm, optionally log-transformed, is used as a utility score q(x)=log(1+โฅฮ(x)โฅ2โ), hypothesized to reflect the "learning potential" an instance confers during RLVR training. Theoretical underpinning is drawn from recent work interpreting transformer computation as implicit weight updates controlled by context-induced representation changes, validating the use of observable hidden-state shifts as selection proxies.
To ensure diversity and comprehensive coverage of the feature space, SHIFT concatenates s(x) and ฮ(x), normalizes this vector, and executes a quality-weighted farthest-first CoreSet greedy selection. This balances instance utility and coverage, selecting instances one-by-one to maximize q~โ(x)โ
d(x,S). All selection computation is completed in one inference-time pass (single rollout per candidate), making the approach highly scalable.
Experimental Results
Mathematical Reasoning: In-Domain and OOD Generalization
In stringent low-budget regimes on MATH-500 (2โ4% of pool), SHIFT consistently outperforms all training-free baselines (diversity-based KMeans/CoreSet, difficulty proxies such as perplexity, and uncertainty-based selectors like self-consistency entropy):
- At 2% data, SHIFT achieves 62.67% Pass@1 in-domain and 38.55% OOD (AMC), compared to 53.73% / 25.78% for Random and substantially lower for pure diversity selectors.
- Even with a tiny training set, SHIFT's OOD generalization on AMC surpasses the full-data RLVR reference (38.55% vs 33.73%).
The findings hold as the training budget expands; gains over other methods decrease but remain significant, especially for in-domain accuracy.
Medical QA and Clinical Transfer
On MedQA and associated transfer benchmarks (MedMCQA, PubMedQA, MedXpertQA), SHIFT delivers the best accuracy under 0.1โ0.2% selection budgets:
- MedQA: 50.35% (SHIFT) vs 45.28% (Random) at 0.1% budget
- Robust transfer: Outperforms all baselines on MedXpertQA subsets, with gains especially pronounced on clinical reasoning (e.g., 12.22% on MedXpertQA-U nearly matches the full-data RLVR result).
Ablation and Analysis
Ablation studies highlight:
A direct per-instance evaluation on MATH shows RIRS rank correlates strongly with RLVR-induced gain (Spearman's ฯ = 0.818).
Extensive cross-architecture evaluation on Llama-3-8B and Olmo-3-7B-Instruct verifies that the RIRS-based selection policy is robust across model families and scales, with consistent accuracy advantages over other training-free selectors.
Theoretical and Practical Implications
SHIFT introduces a principled, scalable criterion for instance selection in RLVR without the prohibitive cost of reward evaluation or multiple rollouts. The proxy is motivated by transformer block dynamics, and empirical results validate its informativeness for downstream adaptation, in both standard and OOD settings.
Important practical consequences include:
- Strong reductions in annotation and compute required to adapt LLMs for complex reasoning tasks.
- Utility for sensitive or specialized domains (e.g., medical QA) where training data and reward signals are costly or unavailable.
- The RIRS signal is lightweight (linear cost) and not explained by superficial input statistics, making it more robust for diverse pools.
- The approach is compatible with multiple model architectures and can be generalized across a range of reasoning domains.
Limitations and Future Work
The main limitations include the gap between block-level theory and trajectory-level metric, reliance on a single static pre-training rollout (potentially brittle in presence of degenerate completions), and the yet unproven generalization to even larger models or novel domains. Addressing these may require layer-aware RIRS aggregation, dynamic or adaptive multi-rollout proxies, and broader cross-domain validation.
Future research could explore layer-specific weighting, richer token-level dynamics, as well as integration with domain-specific reward estimation and safety auditing strategies.
Conclusion
SHIFT establishes a scalable, training- and label-free solution to data selection for RLVR adaptation of LLMs. By operationalizing a theoretically motivated, computation-efficient hidden-state dynamics proxy, it reliably selects impactful examples from large unlabeled pools, outperforming standard diversity and uncertainty heuristics across mathematical and medical domains. The evidence indicates that RIRS-based selection holds promise for effective and accessible LLM adaptation in low-resource, high-value settings.