Skip to main content
QUICK REVIEW

[Paper Review] HeaPA: Difficulty-Aware Heap Sampling and On-Policy Query Augmentation for LLM Reinforcement Learning

Weiqi Wang, Xin Liu|Rare & Special e-Zone (The Hong Kong University of Science and Technology)|Jan 30, 2026
Topic ModelingComputer Science0 citations
TL;DR

HeaPA proposes a bounded, evolving query pool with heap-based boundary sampling and on-policy augmentation to improve RLVR efficiency and accuracy in LLM reasoning tasks, showing consistent gains across models and datasets.

ABSTRACT

RLVR is now a standard way to train LLMs on reasoning tasks with verifiable outcomes, but when rollout generation dominates the cost, efficiency depends heavily on which prompts you sample and when. In practice, prompt pools are often static or only loosely tied to the model's learning progress, so uniform sampling can't keep up with the shifting capability frontier and ends up wasting rollouts on prompts that are already solved or still out of reach. Existing approaches improve efficiency through filtering, curricula, adaptive rollout allocation, or teacher guidance, but they typically assume a fixed pool-which makes it hard to support stable on-policy pool growth-or they add extra teacher cost and latency. We introduce HeaPA (Heap Sampling and On-Policy Query Augmentation), which maintains a bounded, evolving pool, tracks the frontier using heap-based boundary sampling, expands the pool via on-policy augmentation with lightweight asynchronous validation, and stabilizes correlated queries through topology-aware re-estimation of pool statistics and controlled reinsertion. Across two training corpora, two training recipes, and seven benchmarks, HeaPA consistently improves accuracy and reaches target performance with fewer computations while keeping wall-clock time comparable. Our analyses suggest these gains come from frontier-focused sampling and on-policy pool growth, with the benefits becoming larger as model scale increases. Our code is available at https://github.com/horizon-rl/HeaPA.

Motivation & Objective

  • Motivate improving sample efficiency in RLVR by aligning prompts with the moving capability frontier.
  • Develop a bounded, evolving query pool that tracks difficulty and frontier progress.
  • Introduce on-policy query augmentation with asynchronous verification to grow the pool.
  • Stabilize augmentation effects with topology-aware pool statistic re-estimation and controlled reinsertion.
  • Demonstrate plug-and-play compatibility with existing RLVR recipes and backbones.

Proposed method

  • Maintain a bounded dual-heap prompt pool partitioned into low (hard) and high (easy) difficulty items using per-record statistics tilde{r}_{k} to guide sampling.
  • Use boundary sampling to prioritize a medium-difficulty band near the frontier, with optional mixing of easy items for stability.
  • Perform on-policy augmentation by having the current policy generate candidate prompts, verify them asynchronously with a teacher, and insert verified pairs into the pool.
  • Construct an augmentation lineage graph to propagate difficulty-adjusted statistics topologically, stabilizing sampling priorities amid correlated augmentations.
  • Archive trained records and reuse them via a controlled reinsertion mechanism to smooth pool evolution and maintain throughput.
  • Plug into GRPO and DAPO RLVR recipes without altering the underlying policy update rule.

Experimental results

Research questions

  • RQ1Does frontier-focused, heap-based sampling improve sample efficiency and final accuracy in RLVR for LLMs?
  • RQ2Can on-policy augmentation with asynchronous verification safely grow the prompt pool without incurring prohibitive teacher cost or latency?
  • RQ3Does topology-aware pool statistics re-estimation stabilize learning when augmentations are correlated?
  • RQ4How does HeaPA scale across model sizes and training corpora compared to baselines?
  • RQ5Is HeaPA compatible as a drop-in component for existing RLVR pipelines (GRPO/DAPO) across backbones?

Key findings

  • HeaPA consistently improves average performance across two training corpora, two training recipes, and seven benchmarks.
  • On DAPO-Math, HeaPA reaches 51.1 (GRPO) and 49.3 (DAPO) versus 46.5 and 46.1 baselines, respectively.
  • On OpenR1-Math, HeaPA reaches 44.0 (GRPO) and 48.5 (DAPO) versus 39.9 and 45.0 baselines, respectively.
  • Ablations show that combining frontier-focused sampling with on-policy pool growth yields larger gains than either component alone.
  • Topology-aware path aggregation (PathAgg) matches or exceeds ChildAgg, indicating benefits from stabilized pool statistics.
  • HeaPA reduces training compute (PFLOPs) to reach baseline target performance and incurs only about 2.1% extra per-step wall-clock time due to asynchronous verification.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.