betaFeedback

WorksComputer Science

H2^2R: Hierarchical Hint-Based Reward for Mathematical Reasoning via Reinforcement Learning

Abstract

Reinforcement Learning with Verifiable Rewards has shown great promise in enhancing mathematical reasoning in large language models. However, existing approaches provide limited intermediate supervision for complex, multi-step reasoning tasks. To bridge this gap, we propose Hierarchical Hint-based Reward, a framework that leverages the intrinsic sub-question structure of mathematical problems as structured intermediate conditioning signals during RLVR training. Unlike chain-of-thought prompting, these hierarchical hints serve as logically grounded intermediate milestones that effectively reduce the reasoning horizon toward the final answer. To validate this framework, we introduce HiMath, a benchmark of hierarchically structured mathematical problems. Across diverse LLMs, hierarchical hints consistently improve reasoning performance even without task-specific training. When integrated into RL training via H2^2R, they boost Qwen2.5-Math-7B accuracy on HiMath from 30.4% to 39.1% using hierarchical hints, and up to 45.6% with Oracle Hierarchical Hints. This pronounced improvement demonstrates that incorporating reliable intermediate checkpoints into reward design is essential for sustaining complex mathematical reasoning.

Introduction

Large Language Models (LLMs) have demonstrated remarkable potential in complex reasoning tasks, such as mathematical problem-solving ([4, 10]), code generation (Jain et al., 2024; Jimenez et al., 2024), and logical inference (bench authors, 2023). Among these, mathematical reasoning serves as a critical frontier: it requires sustained, multi-step logical trajectories where every intermediate decision critically impacts the final validity. While current models perform well on standard benchmarks, reliably solving hierarchically structured, high-level mathematical problems remains a significant challenge for existing architectures ([10] (Mirzadeh et al. 2024)).

Reinforcement Learning with Verifiable Rewards (RLVR) has become the primary paradigm for bridging this gap. The prevailing approach relies on sparse rewards, where a positive signal is assigned only if the final answer is correct ([6] (Wen et al. 2025)). While scalable, sparse rewards suffer from a fundamental credit assignment problem: a model may receive zero reward for a nearly correct derivation that fails only at the final step, while another model is positively reinforced for reward hacking, arriving at the correct answer through flawed or degenerate reasoning (Skalse et al., 2025). To mitigate this, dense rewards (e.g., Process Reward Models (Lightman et al., 2023; Luo et al., 2024; Zheng et al., 2025)) provide feedback at each step. However, dense rewards face a severe scalability bottleneck: obtaining step-level annotations requires prohibitive human labor or expensive teacher-model synthesis, and PRMs do not consistently generalize across domains ([3]). This creates a structural gap: sparse rewards are too coarse, while dense rewards are too costly, and both largely ignore the hierarchical decomposition encoded in many existing problems.

In this paper, we identify an overlooked structural property of complex mathematics: multi-part sub-question structure naturally serves as a principled resolution to this dilemma. Competitive exams typically decompose a problem into logically ordered sub-questions (Q1Q_1, Q2Q_2, Q3Q_3), where earlier results serve as prerequisite milestones for later ones. We argue that these sub-questions are hierarchical hints: naturally occurring, verifiable intermediate goals that encode the intended reasoning trajectory without requiring any additional manual step-level labeling. Building on this observation, we propose Hierarchical Hint-based Reward (H2H^2R), a reward-shaping framework that integrates sub-question correctness as intermediate ...ate reward signals within the GRPO (Shao et al., 2024b) training objective. Importantly, H²R operates at the level of reward design, decomposing the long-horizon reasoning trajectory into a sequence of verifiable sub-goals, requiring no step-level annotation or architectural change. Unlike inference-time decomposition methods, the hierarchical hints are used only during training and are removed entirely at test time; the trained policy therefore receives neither hints nor decomposition prompts at deployment. As illustrated in Figure 1, conditioning the model on a sub-question hint lifts the reward from 0.0 to 0.8 by anchoring its reasoning to a critical intermediate result. H²R bridges sparse outcome rewards and dense process supervision by leveraging the problem’s logical structure to guide the model toward semantically meaningful intermediate states. This hierarchy provides a natural basis for intermediate supervision, while a lightweight LLM judge further enriches the binary outcome reward with process-level assessment ((Zheng et al., 2023; Li et al., 2024)). To instantiate and evaluate H²R, we introduce HiMath, a curated dataset of hierarchically structured mathematical problems. Our experiments reveal three main findings: (1) in a purely inference-only setting, hierarchical hints consistently improve accuracy across eight diverse LLMs, confirming that their value is intrinsic to logical structure rather than task-specific fine-tuning; (2) when used as training-time supervision signals in RLVR, hierarchical hints drive consistent accuracy gains over standard GRPO, with all improvements persisting at test time without any hint dependency; (3) H²R generalizes consistently to MATH500 and AIME across three model families, outperforming GRPO, DAPO, and SAGE baselines by substantial margins, showing that the gains are not confined to the HiMath training distribution.

Figure 1. Comparison of three reward signal paradigms on the same mathematical reasoning problem. Given an identical model output, ORM assigns a single binary reward based solely on final-answer correctness, providing no signal on intermediate reasoning quality. PRM assigns dense per-step scores requiring costly step-level annotation. H²R achieves a middle ground: a hint derived from sub-questions is provided during training to steer the model toward rigorous reasoning, and a judge model evaluates both answer correctness and process quality, yielding a hybrid reward without any step-level annotation.

Our contributions are as follows:

  • We introduce HiMath, a contamination-resistant benchmark of hierarchically structured mathematical problems, each decomposing into three logically chained sub-questions.

  • We demonstrate that sub-question-derived hints consistently improve reasoning accuracy across diverse LLMs even without task-specific training, establishing that their value is intrinsic to logical structure.

  • We propose H²R, incorporating a hybrid reward design that combines answer correctness with process-level evaluation. Gains persist at test time without any hint dependency.

Related Work

Reinforcement Learning for LLM Reasoning. Prompt-based approaches such as Chain-of-Thought prompting (Wei et al., 2023), Self-Consistency (Wang et al., 2023), and Tree-of-Thought (Yao et al., 2023) leverage prompts to encourage step-by-step reasoning. Building on these foundations, learning-based methods have advanced reasoning through supervised fine-tuning on high-quality reasoning datasets (Yu et al., 2023, 2025a; Yang et al., 2024a). Recently, RLVR demonstrated that “thinking” behaviors can be induced through verifiable rewards ([6] (Wang et al. 2025)). Methods such as GRPO ((Shao et al., 2024a)) and PPO ((Schulman et al., 2017)) have shown that models can self-discover reasoning paths when provided with binary reward signals. Research directions have shifted toward addressing reward hacking ((Skalse et al., 2025)), extending reasoning to multimodal settings ((Zhang et al., 2025)), and improving efficiency ([2, 9]). Our work builds on this RLVR paradigm, addressing the sparsity of outcome-only rewards by introducing structured intermediate conditioning.

Reward Signal Design: Sparse vs. Dense. ORMs and PRMs represent two ends of a fundamental spectrum. ORM supervises reasoning solely based on final-answer correctness ([4]). While R1-style models demonstrate that ORM alone can induce self-correction behaviors ([6, 11]), early reasoning errors remain invisible until the end of trajectories ((Sutton and Barto, 1998)). PRMs address this by providing dense, step-level feedback ((Lightman et al., 2023; Khalifa et al., 2025; Yao et al., 2026; Li and Li, 2025)), but require costly step-by-step annotations or Monte Carlo estimation ((Luo et al., 2024; Wang et al., 2024; Xiong et al., 2025)), and do not consistently outperform ORM on strong RL-trained models ([7]). Recent hybrid approaches seek a middle ground ((Jia et al., 2025; Setlur et al., 2025; Yu et al., 2025b)). H{sup}2`R is positioned in this spirit: rather than training a full PRM or relying on binary rewards alone, we leverage the intrinsic sub-question hierarchy of complex mathematical problems as verifiable intermediate checkpoints, augmented by an LLM judge for process quality assessment.

Hierarchical Hint Framework

The HiMath Dataset

We introduce HiMath, a structured, multi-part mathematics dataset specifically engineered to evaluate hierarchical reasoning. Inspired by the formatting of competitive examinations, each problem introduces a novel mathematical concept directly within its problem statement.

Each HiMath problem contains three sequentially dependent sub-questions (Q1Q_1, Q2Q_2, and Q3Q_3) of increasing difficulty. This hierarchy originates from the original problem design, with human reference solutions providing verifiable intermediate supervision for H{sup}2R. HiMath comprises 151 problems across functions, sequences, sets, and geometry. Rather than maximizing scale, it serves as a focused testbed for studying hierarchical reasoning. Its novel-concept format encourages reasoning from first principles and reduces reliance on memorization ({citep}(Wu et al., 2025)). Data collection details are provided in {xref}Appendix A`.

Although HiMath is relatively compact, its scale is intentional: like targeted benchmarks such as BIG-Bench Hard ((bench authors, 2023)) and AIME ([10]), it emphasizes focused problem selection over sheer volume. HiMath further prioritizes structural depth and contamination resistance: its explicit sub-question structure provides natural, reference-anchored intermediate supervision for H{sup}2R, while its novel-concept design reduces reliance on memorization ({citep}(Wu et al., 2025)). Despite being trained on only 105 HiMath problems, the resulting models also improve on the held-out MATH500 and AIME benchmarks ({xref}Table 1`), indicating that the gains are not confined to the HiMath training distribution.

Difficulty Analysis To demonstrate that HiMath problems present a genuine intellectual challenge rather than tasks solvable via pattern matching or memorization, we evaluate a broad selection of state-of-the-art LLMs on Q3Q_3 without providing any hint context. The empirical results paint a clear picture: even the most capable closed-source reasoning models fall well short of ceiling performance. Specifically, o3-mini ((OpenAI, 2025)) achieves only 66.9%, Gemini-3.1-pro ([8]) scores 63.5%, and Gemini-2.5-pro ([5]) reaches 59.3%. The performance gap widens substantially for open-source models. Qwen2.5-Math-7B-Instruct and Qwen2.5-7B-Instruct ((Yang et al., 2024b)) both achieve around 20.7%, Qwen2.5-Math-7B drops to 17.9%, and Qwen3-4B reaches only 12.4% ((Yang et al., 2025)). By comparison, the standard MATH500 pass rates for these identical open-source models regularly exceed 75%.

These findings highlight two properties that make HiMath suitable for evaluating H{sup}2R: its difficulty leaves substantial headroom for intermediate supervision to improve performance, while its novel-concept design reduces reliance on memorization ({citep}(Wu et al., 2025)`). Moreover, models trained on the 105 HiMath training problems also improve on held-out MATH500 and AIME benchmarks (Table 1), suggesting that the gains are not confined to the HiMath training distribution.

ModelMethodTraining HintHiMath (avg@3)MATH500 (pass@1)AIME24 / 25 (avg@5)
Llama-3.2-3B-InstructInitial checkpoint—11.1144.76.5 / 0.6
Llama-3.2-3B-InstructGRPONo-Hint11.6754.610.0 / 0.7
Llama-3.2-3B-InstructDAPONo-Hint13.0457.06.7 / 0.5
Llama-3.2-3B-InstructSFTOracle Hier.-Hint13.0453.89.5 / —
Llama-3.2-3B-InstructSAGE-LightSelf-Hint8.6954.1†54.1^{\dagger}8.8 / 0.9
Llama-3.2-3B-InstructSAGESelf-Hint13.0456.3†56.3^{\dagger}9.2 / 0.8
Llama-3.2-3B-InstructH2RH^{2}RHier.-Hint19.5759.512.1 / 1.2
Llama-3.2-3B-InstructH2RH^{2}ROracle Hier.-Hint21.7361.213.3 / 1.7
Qwen2.5-7B-InstructInitial checkpoint—15.8675.713.8 / 6.7
Qwen2.5-7B-InstructGRPONo-Hint19.5777.815.0 / 10.67
Qwen2.5-7B-InstructDAPONo-Hint21.7482.016.31 / 12.00
Qwen2.5-7B-InstructSFTOracle Hier.-Hint32.6177.114.8 / —
Qwen2.5-7B-InstructSAGE-LightSelf-Hint19.5679.9†79.9^{\dagger}17.1 / 11.7
Qwen2.5-7B-InstructSAGESelf-Hint23.9180.0†80.0^{\dagger}16.0 / 12.5
Qwen2.5-7B-InstructH2RH^{2}RHier.-Hint34.7884.522.00 / 15.33
Qwen2.5-7B-InstructH2RH^{2}ROracle Hier.-Hint41.3084.823.90 / 17.30
Qwen3-4B-InstructInitial checkpoint—25.1690.622.1 / 13.40
Qwen3-4B-InstructGRPONo-Hint32.8896.024.20 / 14.40
Qwen3-4B-InstructDAPONo-Hint34.2893.429.33 / 12.00
Qwen3-4B-InstructSFTOracle Hier.-Hint39.1395.623.8 / —
Qwen3-4B-InstructSAGE-LightSelf-Hint26.0895.1†95.1^{\dagger}27.6 / 14.7
Qwen3-4B-InstructSAGESelf-Hint28.2695.4†95.4^{\dagger}25.1 / 14.9
Qwen3-4B-InstructH2RH^{2}RHier.-Hint47.8297.0634.30 / 17.33
Qwen3-4B-InstructH2RH^{2}ROracle Hier.-Hint52.1797.636.00 / 18.87

Table 1. Performance on HiMath and public benchmarks across three model families, where all models are evaluated without hints at test time. GRPO, DAPO, and SFT are controlled baselines trained on the same 105 HiMath problems, while SAGE and SAGE-Light are included as external reference points trained under a different data regime. The MATH500 results marked with †\dagger are sourced from Liao et al. (2026), while all other results come from our own evaluation. For the hint conditions, Hier.-Hint uses hints generated by o3-mini, whereas Oracle Hier.-Hint relies on expert-annotated ground-truth solutions to establish an upper bound only. The metrics are reported as the mean accuracy over three independent training seeds for HiMath avg@3, a single greedy decoding for MATH500 pass@1, and the mean over five samples at temperature 0.7 for AIME avg@5.

Inference with Hierarchical Hint

We design a hierarchy of five hint conditions, illustrated in Figure 2, to investigate how structured intermediate conditioning affects the model’s ability to solve Q3Q_3. These conditions span a spectrum ranging from a complete absence of context, denoted as No-Hint, to full oracle supervision via oracle Hier.-Hint, with three intermediate levels designed to isolate distinct reasoning factors. Specifically, Sub₁-Hint and Sub₂-Hint provide ground-truth solutions to individual sub-questions, establishing whether foundational or proximal intermediate results are more load-bearing for Q3Q_3. Meanwhile, Hier.-Hint supplies solutions generated by a stronger external model for both sub-questions simultaneously, reflecting a realistic deployment scenario that operates without oracle supervision. Comparing the Hier.-Hint against oracle Hier.-Hint reveals whether performance differences stem from genuine reasoning transfer or merely from the quality of the intermediate context provided. By varying hint informativeness in a controlled manner, we directly attribute performance shifts to specific reasoning failure modes.

Figure 2. Overview of the H²R framework. Five hint conditions are constructed by varying the <hints> field: No-Hint provides no intermediate context; Sub₁-Hint and Sub₂-Hint provide the ground-truth solution to Q1Q_1 or Q2Q_2, respectively; Hier.-Hint provides model-generated solutions to both sub-questions; and Oracle Hier.-Hint provides both ground-truth solutions as an oracle upper bound. At each iteration, the policy receives a hint-conditioned prompt and H²R reward, and GRPO updates the policy toward high-reward trajectories.

We evaluate hint effectiveness in an inference-only setting. Figure 3 presents results across eight models under five hint conditions. Accuracy gains range from +2.8% to +13.8% for Sub₁-Hint and +0.7% to +17.4% for Sub₂-Hint, highlighting the value of the logical structure encoded in hierarchi-

Inference-only accuracy of eight untrained checkpoints under five hint conditions

Figure 3. Inference-only accuracy of eight untrained checkpoints under five hint conditions, with hints given at inference time and no RL training. Hints consistently improve performance across model scales and architectures. Unlike these results, H²R-trained policies receive no hints at inference. Differences between adjacent Qwen model scales are not statistically significant (Appendix § 11.§ 3).

cal hints. Full results are in Appendix § 15. Pairwise bootstrap comparisons across the Qwen model family reveal no statistically significant differences between adjacent model scales (Appendix § 11.§ 3).

Analysis of Hint Effectiveness

Logical Proximity Drives Hint Effectiveness. Sub₁-Hint provides early-stage contextual information useful but not immediately actionable for Q3Q_3. Sub₂-Hint occupies a more pivotal position: it establishes the key intermediate constraint that Q3Q_3 directly builds upon. This structural difference explains why the marginal accuracy gain from Sub₂-Hint is nearly 50% larger than Sub₁-Hint on average (+8.0% vs. +5.5% across eight models).

The Role of Hier.-Hint. Across all models, Hier.-Hint consistently outperforms both Sub₁-Hint and Sub₂-Hint, even though those two conditions provide oracle answers to individual sub-questions. This finding suggests that the performance advantage is primarily driven by the completeness of the intermediate context. Simultaneously providing solutions to both Q1Q_1 and Q2Q_2 offers a more comprehensive reasoning scaffold than either alone, and this holds true even when solutions are imperfect.

Hier.-Hint underperforms oracle Hier.-Hint across all models, highlighting the value of accurate intermediate solutions. Errors in Q1Q_1 or Q2Q_2 can propagate to Q3Q_3 (Appendix § 17).

RL with Hierarchical Hint Reward

The consistent inference-only gains in Figure 3 motivate the use of hierarchical hints as structured signals during RL training. Unlike sparse outcome-only rewards, hint-conditioned training mitigates the credit assignment problem by providing verifiable intermediate milestones aligned with the problem’s logical structure. We therefore incorporate hints of varying informativeness into the GRPO (Shao et al., 2024a) framework, guiding the policy toward more reliable reasoning trajectories.

Reward Design. H²R employs a two-component reward function that jointly evaluates answer correctness and reasoning quality. For the ii-th model response, the reward sis_i is computed as:

si={α+(1−α)⋅min⁡(1,piτ)if ci=10if ci=0(1)s_i = \begin{cases} \alpha+ (1-\alpha)\cdot\min\left(1,\frac{p_i}{\tau}\right) & \text{if } c_i=1 \\ 0 & \text{if } c_i=0 \end{cases} \tag*{(1)}

where ci∈{0,1}c_i \in\{0,1\} denotes final-answer correctness, pi∈[1,5]p_i \in[1,5] is the reasoning process quality score assessed by an LLM judge (Zheng et al., 2023), α∈(0,1)\alpha\in(0,1) is the base reward weight for answer correctness, and τ\tau is a normalization threshold that maps the discrete process score to a continuous bonus range. We set α=0.6\alpha=0.6 and τ=4\tau=4 throughout, yielding a reward in [0.6,1.0][0.6,1.0] for correct responses whose process quality ranges from adequate to excellent.

Hard Gate and Reward Hacking Prevention. We enforce a hard gate si=0s_i=0 whenever ci=0c_i=0, regardless of reasoning quality. Without gating, a model can receive non-zero reward for plausible-sounding but mathematically invalid reasoning, since the process score pip_i evaluates structural fluency rather than absolute logical validity.

ency rather than absolute logical validity. As Q3Q_3 is typically stated as an explicit claim to be proved, a model can mimic correct reasoning by copying the conclusion and padding it with invalid steps. A naive hybrid reward would therefore incentivize such pattern matching over genuine mathematical reasoning (Skalse et al., 2025).

Table 2 validates this design. Removing the hard gate degrades performance: Soft Gate (si>0s_i > 0 permitted when ci=0c_i=0) reaches 41.30% (−4.35 pp), while No Gate (pure linear combination) falls to 39.13% (−6.52 pp). Without gating, 34.2% of incorrect responses receive high process scores (pi≥3p_i \ge3), creating false training signals that the hard gate eliminates. Both non-gated variants fall in the suboptimal region of the hyperparameter grid (Appendix § 12.§ 2), supporting the hard gate as a principled component of the reward design.

GateAcc.Avg.PIncorr. pi≥3p_i \ge3 (%)Grad.
No Gate39.133.2134.2None
Soft Gate41.303.4518.7Partial
Hard Gate45.653.890.0Full

Table 2. Gate design ablation on Qwen2.5-Math-7B with Oracle Hier.-Hint. “Incorr. pi≥3p_i \ge3” measures the fraction of incorrect responses receiving a high process score and directly captures the reward-hacking rate. The hard gate eliminates this false training signal while achieving the highest accuracy.

Note that the inference-only results in Figure 3 differ from those of the trained policy: an untrained Qwen2.5-7B-Instruct checkpoint given oracle hints at inference reaches only about 30%, whereas the H²R-trained policy reaches 41.30% with no hints at evaluation, showing that the improvement is retained in the learned policy.

Experiments

Evaluation of Proof-Style Questions. Since Q3Q_3 is typically phrased as a claim to be proved rather than a value to be computed, final-answer correctness cic_i is assessed by the LLM judge rather than exact string matching. The judge is instructed to verify whether the submitted proof is logically complete and valid. Each HiMath problem is accompanied by a complete human-written reference so lution, which serves as an anchor for the evaluation. The judge assesses whether a submitted proof is consistent with the reference in both its derivation and final conclusion, rather than evaluating it against an open-ended notion of correctness.

To assess evaluator sensitivity, we additionally evaluated the same responses with GPT-4o and DeepSeek-R1 as independent judges. Although the judges differ slightly in absolute accuracy, they preserve the same ordering across No-Hint, Hier.-Hint, and Oracle Hier.-Hint, supporting the robustness of the observed treatment effect. We further conducted a blinded human audit on a subset of the evaluated responses, including additional cases where the automated judges disagreed. Detailed cross-judge and human-validation results are reported in Appendix § 13.

Models and Training Configuration

We evaluate H2RH^{2}R on HiMath using Qwen2.5-Math-7B and Qwen2.5-7B-Instruct for the hint-condition ablation. For out-of-domain generalization experiments, we follow the model selection of Liao et al. (2026) and use: Llama-3.2-3B-Instruct (Meta AI, 2024), Qwen2.5-7B-Instruct (Yang et al., 2024a), and Qwen3-4B-Instruct (Yang et al., 2025), representing low, moderate, and high levels of math-focused optimization. All models are trained with GRPO (Shao et al., 2024a) within the verl (Sheng et al., 2024) framework. Detailed hyperparameters are provided in Appendix § 9.

Main Results

Full hint condition ablation results including Avg. Reward and Avg. Process Score are reported in Appendix § 11.§ 4. In summary, accuracy increases monotonically from No-Hint to Oracle Hier.-Hint for both models (Table 5), confirming that structured intermediate conditioning during RL effectively guides the model toward better reasoning paths without any hint dependency at test time.

ModelTraining HintTest HintAccuracy (%)Avg. RewardAvg. Process Score
Qwen2.5-Math-7BNo-Hint (GRPO Baseline)None30.430.222.81
Qwen2.5-Math-7B+ Sub₁-HintNone32.610.232.96
Qwen2.5-Math-7B+ Sub₂-HintNone36.960.283.25
Qwen2.5-Math-7B+ Hier.-HintNone39.130.313.48
Qwen2.5-Math-7B+ Oracle Hier.-HintNone45.650.353.89
Qwen2.5-7B-InstructNo-Hint (GRPO Baseline)None19.570.182.43
Qwen2.5-7B-Instruct+ Sub₁-HintNone26.090.212.61
Qwen2.5-7B-Instruct+ Sub₂-HintNone28.260.262.79
Qwen2.5-7B-Instruct+ Hier.-HintNone34.780.293.12
Qwen2.5-7B-Instruct+ Oracle Hier.-HintNone41.300.333.23

Table 5. Performance of models trained under different hint conditions, all evaluated without hints at test time. Accuracy: avg@3 over 3 independent random seeds; std ≤2\le2 problems across all conditions. Oracle Hier.-Hint serves as an oracle upper bound using expert-curated sub-question solutions. Avg. Reward and Avg. Process Score are averaged over all test samples.

The primary practical result is Hier.-Hint: for Qwen2.5-Math-7B, Hier.-Hint achieves 39.13% accuracy (+8.70 pp over baseline), using only LLM-generated intermediate solutions with no oracle supervision. Oracle Hier.-Hint, which requires expert-annotated sub-question solutions, serves as an oracle upper bound at 45.65% (+15.22 pp), establishing the performance ceiling available when intermediate supervision is perfect. Qwen2.5-7B-Instruct shows a similar pattern, improving from 19.57% to 34.78% under Hier.-Hint and 41.30% under Oracle Hier.-Hint. Across model families, training seeds, and benchmarks, H2H^2R consistently improves performance over No-Hint training.

To assess the statistical reliability of these gains, we conducted paired cluster bootstrap resampling over the 46 test problems with 10,000 replicates. Compared with No-Hint, Hier.-Hint improves accuracy by 15.22 percentage points (95% CI: [4.3, 26.1], p=0.006p = 0.006), while Oracle Hier.-Hint improves accuracy by 21.74 percentage points (95% CI: [9.4, 33.4], p<0.001p < 0.001), confirming that both gains are statistically significant.

Table 1 evaluates three model families on public benchmarks. H2H^2R consistently outperforms the controlled GRPO, DAPO, and SFT baselines under the same evaluation setting. We also compare H2H^2R with SAGE (Liao et al. (2026)), which uses approximately 220K training problems, compared with just 105 HiMath problems for H2H^2R. On HiMath, H2H^2R (Hier.-Hint) surpasses SAGE by 6.53, 10.87, and 19.56 percentage points across the three models, without oracle supervision during training. Additional comparisons with Random-Hint and Unordered-Hint isolate the contribution of hierarchical reward design under the same HiMath training setting.

Compared with SFT trained on the same 105 HiMath problems using oracle hints, H2H^2R performs better across all evaluated models and benchmarks, despite using generated hints in its practical setting. Its stronger gains on held-out benchmarks suggest that reward-based training better transfers the benefits of hierarchical supervision beyond HiMath.

Random-Hint and Unordered-Hint Ablations

To distinguish the effect of meaningful hierarchical structure from the effect of additional supervision or context, we introduce two training-time controls. Random-Hint pairs each problem with another problem’s gold hints, preserving the hint format, labels, and supervision volume while removing semantic relevance. Unordered-Hint uses the problem’s own gold hints but reverses their order and replaces hierarchical labels with a generic marker, preserving the hint content while removing its hierarchical organization. All hints are used only during training and are removed at inference.

The results form an ablation ladder. Across all nine settings, Random-Hint provides no consistent improvement over the No-Hint baseline, differing by at most one problem in HiMath and 0.4 points in MATH500. Since Random-Hint preserves the same reward function, gate, and supervision volume as Hier.-Hint, its lack of improvement indicates that the gains do not arise from additional training signal or hint format. Unordered-Hint consistently falls between Random-Hint and Hier.-Hint, recovering roughly half of the gain. Because it preserves the original hint content while removing its ordering and hierarchical labels, the gap between Unordered-Hint and Hier.-Hint isolates the contribution of hierarchical organization, while the gap between Random-Hint and Unordered-Hint reflects the importance of semantic relevance. The same ordering is observed on the held-out MATH500 and AIME24 benchmarks, indicating that the benefit is not limited to the HiMath training distribution.

Empirical Validation of the Hybrid Reward Design

We do not include a direct baseline with a standard process reward model (PRM) because its conventional construction is not directly applicable to HiMath’s proof-style questions. In particular, HiMath Q3Q_3 problems do not provide a canonical answer string from which intermediate proof states can be automatically labeled, so adapting a PRM would require additional judge-based annotation of intermediate steps and a substantially different supervision pipeline. A detailed analysis of this constructability issue and the associated annotation cost is provided in Appendix § 12.§ 4.

ModelBenchmarkNo-HintRandomUnorderedHier.
Llama-3.2-3B-InstructHiMath11.6710.8715.2219.57
Llama-3.2-3B-InstructMATH50054.654.857.459.5
Llama-3.2-3B-InstructAIME2410.010.111.012.1
Qwen2.5-7B-InstructHiMath19.5721.7426.0934.78
Qwen2.5-7B-InstructMATH50077.878.280.884.5
Qwen2.5-7B-InstructAIME2415.015.317.722.0
Qwen3-4B-InstructHiMath32.8832.6141.3047.82
Qwen3-4B-InstructMATH50096.096.196.497.1
Qwen3-4B-InstructAIME2424.2024.5027.634.30

Table 3. Ablation of hint relevance and hierarchical organization across three model families and three benchmarks. Hints are used only during training and removed at inference.

The concurrent trajectory of Avg. Process Score in Table 5 demonstrates that our reward function successfully steers optimization without triggering reward hacking. For Qwen2.5-Math-7B, the average process score climbs from 2.81 under No-Hint to 3.89 under Oracle Hier.-Hint. This growth confirms that H2RH^{2}\mathrm{R} penalizes superficial pattern-matching and incentivizes rigorous, verifiable intermediate milestones. The gate design ablation in Appendix § 12.§ 2 validates this choice.

Discussion

Intermediate-state Reliability. The Hier.-Hint condition mirrors how human students solve multi-step problems by conditioning on their self-generated intermediate results, thereby exposing realistic failure modes such as error propagation and limited self-correction. Our error-propagation analysis (Appendix § 17) suggests that the primary bottleneck is not the model’s ability to use intermediate context once provided, but its ability to generate reliable intermediate states in the first place. This finding motivates hint generation itself as a trainable objective and moves H2RH^{2}\mathrm{R} toward a fully self-supervised framework.

Generalization to Policy Optimization. More broadly, H2RH^{2}\mathrm{R} requires only that problems decompose into verifiable sub-goals, a structure that arises naturally across STEM domains such as physics derivations, proof-based geometry, and multi-step programming. We conjecture that expert-encoded problem hierarchies could provide intermediate training signals in these settings, though validation beyond mathematics remains future work. This work focuses on reward formulation rather than optimization: by fixing the GRPO framework, we isolate reward structure as the independent variable and attribute improvements to hierarchical hint-based reward design. Developing algorithms tailored to multi-stage reasoning, such as curriculum scheduling over hint conditions or hint-aware policy optimization, remains an important direction.

Conclusion

We presented H2RH^{2}\mathrm{R}, a reward-shaping framework that uses hierarchical sub-question structures to provide intermediate supervision for LLM reasoning. By combining final-answer correctness with LLM-judged process quality, H2RH^{2}\mathrm{R} yields a practical hybrid reward signal that can improve reasoning without requiring oracle supervision at test time. Through Hier.-Hint training, we show consistent gains across three model families, three random seeds, and three benchmarks. Our analysis further suggests that the key bottleneck in multi-step reasoning is not whether models can use intermediate context when it is available, but whether they can generate reliable intermediate states in the first place. Poor intermediate hints induce error propagation and substantially limit downstream performance. To support future work on this problem, we introduce HiMath, a benchmark with explicit sub-question hierarchies. Together, H2RH^{2}\mathrm{R} and HiMath provide a foundation for studying more fine-grained process rewards and training algorithms tailored to robust multi-stage reasoning.

Limitations

Dataset Scale. HiMath prioritizes reasoning depth and contamination resistance over scale: each problem introduces a novel mathematical concept and chains three logically dependent sub-questions, ensuring substantial structural richness per example. H2RH^{2}\mathrm{R} trained on HiMath improves performance on the held-out MATH500 and AIME24 benchmarks, indicating that the observed gains are not confined to the HiMath training distribution.

However, these results do not establish broad or general reasoning ability, and evaluation on a wider range of tasks and datasets is needed to assess the scope of the learned behavior. Broader empirical coverage across more diverse problem types therefore remains an important direction for future work.

Automated Evaluation. Our evaluation relies on automated grading, combining final-answer matching with LLM-as-judge assessment of reasoning quality. To assess evaluator robustness, we evaluated the same responses with o3-mini, GPT-4o, and DeepSeek-R1. Although the judges differ slightly in absolute accuracy, they preserve the same ordering across No-Hint, Hier.-Hint, and Oracle Hier.-Hint, with the corresponding treatment effects remaining statistically significant. We further conducted a blinded human audit of 25 responses, including 20 randomly sampled responses and 5 cases selected from judge disagreements. The two authors jointly judged 19 of the 20 randomly sampled responses as correct or incorrect in agreement with the automated evaluation, while 23 of the 25 responses were consistent in the pooled audit. Nevertheless, automated evaluation may not capture all nuances of mathematical reasoning, and broader human validation would provide an additional quality check.

PRM Baseline. We do not include a direct process reward model (PRM) baseline because conventional PRM construction is not directly applicable to HiMath’s proof-style questions. In particular, HiMath Q3 problems do not provide a canonical answer string from which intermediate proof states can be automatically labeled. Adapting an existing PRM pipeline would therefore require additional judge-based annotation of intermediate proof steps and a substantially different supervision pipeline. This constructability issue, together with the associated annotation and computational cost, makes a faithful in-domain PRM comparison beyond the scope of the current study. Developing proof-oriented PRMs for this setting remains an important direction for future work.

Ethics Statement

While our work enhances the hierarchical reasoning capabilities of LLMs in complex mathematics, we recognize that such advancements are dual-use. We are committed to responsible development of AI. All pre-trained models used in this work are publicly available under open-source licenses. Our code and the HiMath dataset will be released for academic use upon paper acceptance.

HiMath Dataset

The New Definition Question. HiMath is built around New Definition questions, a problem format originating from competition mathematics. Such questions introduce a novel mathematical concept within the exam itself, requiring models to reason from first principles rather than recall a memorized procedure. Their primary purpose is to assess mathematical abstraction, logical reasoning, and exploratory problem-solving, making them well-suited for probing the reasoning limits of LLMs.

A typical problem consists of a formal definition followed by three subquestions of increasing difficulty. Earlier subquestions establish results logically prerequisite to solving the final one, instantiating the hierarchical hint structure central to H2H^2R.

Design Principles. HiMath is constructed according to four principles:

  • Difficulty and Reasoning Depth. New Definition questions require multi-step inference across overlapping domains, providing deeper insight than standard benchmarks.

  • Novelty and Contamination Resistance. Each problem introduces a previously unseen concept, requiring models to reason from first principles rather than recall memorized patterns.

  • Hierarchical Sub-question Structure. The three-part design progresses from simple to complex, with earlier sub-questions establishing foundational results essential to the final one.

  • Annotation Quality and Diversity. Each problem includes an official ground-truth solution with detailed annotations. The dataset spans functions, sequences, sets, and geometry.

Data Collection. We collect New Definition questions from public official examination repositories and established educational websites. PDF materials were converted to LaTeX using Mathpix-based OCR followed by manual verification.

Example New Definition Question

Example: New Definition Question from HiMath

Problem Statement. Let A={1,2,3,4,5,6,7,8}A = \{1, 2, 3, 4, 5, 6, 7, 8\} and define M={(x,y)∣x∈A,y∈A}M = \{(x, y) \mid x \in A, y \in A\}. Select nn points from MM to form a sequence (x1,y1),(x2,y2),…,(xn,yn)(x_1, y_1), (x_2, y_2), \ldots, (x_n, y_n). Two consecutive points must satisfy either ∣xi+1−xi∣=3\lvert x_{i+1} - x_i \rvert= 3, ∣yi+1−yi∣=4\lvert y_{i+1} - y_i \rvert= 4 or ∣xi+1−xi∣=4\lvert x_{i+1} - x_i \rvert= 4, ∣yi+1−yi∣=3\lvert y_{i+1} - y_i \rvert= 3. Such a sequence is called a kk-sequence.

  1. If the first term is (3,3)(3, 3), determine the second term.

  2. Determine whether (3,2)(3, 2) and (4,4)(4, 4) can both appear in a kk-sequence τ\tau where odd-indexed terms have xi∈{1,2,7,8}x_i \in\{1, 2, 7, 8\} and even-indexed terms have xi∈{3,4,5,6}x_i \in\{3, 4, 5, 6\}.

  3. Prove that it is impossible for all elements in MM to form a kk-sequence.

Experimental Setting

We split the 151 problems into training and test sets at an approximately 7:3 ratio, yielding 105 training problems and a held-out test set of 46 problems. The split is performed at the problem level to ensure no cross-split contamination: all three subquestions of a given problem are assigned exclusively to one split. All hint conditions are evaluated on this identical test set throughout all experiments.

Following the experimental design of Liao et al. (2026), we select backbone LLMs spanning varying degrees of mathematical specialization. Llama-3.2-3B-Instruct (Meta AI, 2024) represents a low level of math-focused optimization, while Qwen2.5-7B-Instruct (Yang et al. (2024a)) offers moderate general and mathematical reasoning capabilities and is also used for our detailed hint-condition ablation studies. Qwen2.5-Math-7B is a math-specialized model used for ablation extensions to verify domain-specific persistence. Qwen3-4B-Instruct-2507 (Qwen/Qwen3-4B-Instruct-2507) (Yang et al. (2025)) represents a high level of mathematical proficiency, having been extensively aligned via reinforcement learning. We use the updated Qwen3-4B-Instruct-2507 checkpoint rather than the original Qwen3-4B checkpoint; throughout the paper, we refer to this model as Qwen3-4B-Instruct for brevity. All models are optimized using the Group Relative Policy Optimization (GRPO) algorithm (Shao et al. (2024a)) implemented within the verl framework (Sheng et al. (2024)), with o3-mini serving as the primary judge for our hybrid reward function. We apply a maximum response length of 2,048 tokens; responses exceeding this limit are filtered out. This cutoff affects only a negligible fraction of generations, is uniformly distributed across all hint conditions, and introduces no systematic bias. For optimization, we follow standard GRPO practices with a group size of G=2G = 2, a clip epsilon of 0.2, and a learning rate of 1×10−61 \times10^{-6} with an AdamW optimizer under cosine learning rate scheduling. Each training run takes approximately 3–4 hours of wall-clock time on 4 NVIDIA H100 GPUs; the cumulative computational cost across all models, hint conditions, and 3 independent random seeds amounts to approximately 600 GPU hours. Full implementation scripts, dataset splits, and reproducibility instructions will be publicly released via GitHub upon acceptance.

Training and Judge Prompt Templates

Training Prompt Template

<|im_start|>system
You are a helpful and rigorous mathematics
assistant. Reason step by step. Clearly
state the final answer using \boxed{}
inside <answer> </answer> tags.
<|im_end|>
<|im_start|>user
<prompt>{problem}</prompt>
<hints>{hint_block}</hints>
<question>{subquestion3}</question>
<|im_end|>
<|im_start|>assistant
<think>

Judge Prompt Template

Evaluate along TWO dimensions:
1. correctness: 0 or 1
2. process_score: 1-5
Rule: If correctness=0, process_score <= 3.
Return ONLY JSON:
{"correctness": 0|1,
 "process_score": int,
 "comment": "..."}

Main Experimental Results and Statistical Analysis

Statistical Significance.

We assess the statistical significance of the accuracy gains using paired cluster bootstrap resampling over the 46 test problems. Each bootstrap replicate samples test problems with replacement and retains all model predictions associated with each sampled problem, preserving the pairing between the compared conditions. We use 10,000 bootstrap replicates to estimate the distribution of the accuracy difference between each hint condition and No-Hint. For Hier.-Hint, the estimated improvement is 15.22 percentage points with a 95% confidence interval of [4.3, 26.1] percentage points (p=0.006p = 0.006). For Oracle Hier.-Hint, the estimated improvement is 21.74 percentage points with a 95% confidence interval of [9.4, 33.4] percentage points (p<0.001p < 0.001).

Per-Seed Results

Table 4 reports per-seed accuracy on the HiMath test set (46 problems) for all hint conditions.

ModelCond.S1S2S3Mean
Qwen2.5-Math-7BNo-Hint23.9132.6134.7830.43
Qwen2.5-Math-7BSub₁28.2630.4339.1332.61
Qwen2.5-Math-7BSub₂30.4339.1341.3036.96
Qwen2.5-Math-7BHier32.6141.3043.4839.13
Qwen2.5-Math-7BOracle43.4845.6547.8345.65
Qwen2.5-7B-Inst.No-Hint13.0421.7423.9119.57
Qwen2.5-7B-Inst.Sub₁19.5728.2630.4326.09
Qwen2.5-7B-Inst.Sub₂21.7430.4332.6128.26
Qwen2.5-7B-Inst.Hier28.2636.9639.1334.78
Qwen2.5-7B-Inst.Oracle34.7843.4845.6541.30

Table 4. Per-seed accuracy (%) on HiMath test set (46 problems); max deviation 2 problems (4.35%).

Cross-Model Statistical Significance

To assess whether the observed ordering across model scales is statistically meaningful, we applied the same paired cluster bootstrap procedure to pairwise comparisons between adjacent Qwen model variants on the HiMath test set. Comparing Qwen2.5-7B-Instruct with Qwen3-4B-Instruct yields a difference of 3.31 percentage points (95% CI: [−4.0, 10.6], p=0.365p = 0.365), and comparing Qwen3-4B-Instruct with Qwen3-8B-Instruct yields a difference of 1.32 percentage points (95% CI: [−6.0, 8.6], p=0.727p = 0.727). Neither difference is statistically significant, indicating that performance on HiMath is comparable across these adjacent scales. The hint-induced gains are therefore consistent across model families and are not driven by model scale.

Hint Condition Ablation Results

Table 5 reports the full hint-condition ablation on HiMath for Qwen2.5-Math-7B and Qwen2.5-7B-Instruct, evaluated without hints at test time.

Reward Design Analysis

Reward Instantiation.

We set α=0.6\alpha= 0.6 and τ=4\tau= 4, yielding:

si={0.6+0.4⋅min⁡(1,pi4)if ci=10if ci=0(2)s_i = \begin{cases} 0.6 + 0.4 \cdot\min\left(1,\frac{p_i}{4}\right) & \text{if } c_i = 1 \\ 0 & \text{if } c_i = 0 \end{cases} \tag*{(2)}

Hard Gate Ablation

We further analyze the role of the correctness gate through Soft Gate and No Gate variants. On Qwen2.5-Math-7B with Oracle Hier.-Hint, Soft Gate reduces accuracy from 45.65% to 41.30%, while No Gate reduces it to 39.13%. The corresponding reward-hacking rates, measured as the fraction of incorrect responses with pi≥3p_i \ge3, are 18.7% and 34.2%, respectively, compared with 0.0% under the hard gate. These results show that allowing process reward on incorrect trajectories introduces substantial false training signals. The full hyperparameter sensitivity analysis further shows that both non-gated variants remain in the suboptimal region of the search grid, supporting the hard gate as a principled safeguard rather than a tuned choice.

Reward Hyperparameter Ablation.

Table 6 reports sensitivity analysis over the {α,τ}\{\alpha,\tau\} grid under the Oracle Hier.-Hint setting using Qwen2.5-Math-7B evaluated with avg@3.

τ=3\tau= 3τ=4\tau= 4τ=5\tau= 5
α=0.5\alpha= 0.540.5842.7542.03
α=0.6\alpha= 0.642.7545.6542.75
α=0.7\alpha= 0.740.5842.0339.37

Table 6. Accuracy (%) across the {α,τ}\{\alpha,\tau\} grid (Qwen2.5-Math-7B, Oracle Hier.-Hint, avg@3).

The optimal α=0.6\alpha= 0.6, τ=4\tau= 4 balances correctness dominance with meaningful process gradient.

PRM Constructability

Standard process reward models (PRMs) are not directly applicable to HiMath because the dataset does not provide canonical intermediate states or step-level labels for its proof-style questions. In particular, the Q3 subquestions require open-ended mathematical proofs rather than a fixed answer string from which intermediate reasoning states can be automatically segmented and labeled.

Adapting a conventional PRM pipeline would therefore require an additional judge-based annotation process to evaluate intermediate proof states. Such an adaptation would substantially change the supervision pipeline used in our experiments. For example, a proof-oriented adaptation of existing PRM methods would require constructing partial-proof annotations and repeatedly evaluating intermediate states against the reference solution, introducing a substantial additional annotation and inference cost.

This constructability issue is particularly important for HiMath because our existing judge evaluates a complete response using both its final correctness and its consistency with the human-written reference solution. Converting this evaluation into dense step-level supervision would require additional judgments for intermediate proof prefixes rather than simply evaluating the final response. We therefore leave a direct in-domain PRM comparison to future work and instead validate the dense component of our hybrid reward through the process-score trajectory and the hard-gate ablation reported in the main text.

LLM Judge Validation

Reference-Anchored Evaluation. Following Zheng et al. (2023), we use o3-mini as the primary judge in a zero-shot setting. For each response, the judge outputs (ci,pi,ei)(c_i, p_i, e_i), where ci∈{0,1}c_i \in\{0,1\} denotes final-answer correctness, pi∈[1,5]p_i \in[1,5] is the

process score, and eie_i is a brief justification. We enforce pi≤τ−1=3p_i \le\tau- 1 = 3 whenever ci=0c_i = 0 to prevent incorrect responses from receiving a high process reward.

The evaluation is reference-anchored rather than open-ended. Every HiMath problem is accompanied by a complete human reference solution. The judge evaluates whether a submitted response is consistent with the reference in both its derivation and final conclusion, rather than judging correctness against an unconstrained notion of mathematical validity. As a basic validation of the correctness component, when provided with ground-truth solutions, the judge assigns pi≥4p_i \ge4 in 91.3% of cases.

Cross-Judge Validation. To assess potential self-preference from o3-mini’s dual role as both Hier.-Hint generator and reward judge, we re-scored the same 138 evaluation responses using two independent judges, GPT-4o and DeepSeek-R1. Table 7 reports the number of responses judged correct under each condition.

JudgeNo-HintHier.-HintOracle Hier.-Hint
o3-mini9/4616/4619/46
GPT-4o8/4614/4618/46
DeepSeek-R17/4613/4617/46

Table 7. Cross-judge evaluation of the same 138 responses across the No-Hint, Hier.-Hint, and Oracle Hier.-Hint conditions. The independent judges preserve the same ordering across conditions, while differing slightly in absolute strictness.

The paired treatment contrasts are stable across judges. Under o3-mini, Hier.-Hint improves accuracy over No-Hint by 15.22 percentage points (p=0.006p = 0.006), while GPT-4o and DeepSeek-R1 both give a 13.04 percentage-point improvement (p=0.019p = 0.019 and p=0.009p = 0.009, respectively). For

Stratumnno3-mini agrees with human
Random (unbiased)2019/20 = 95.0%
o3-mini/GPT-4o disagree54/5 = 80.0%
Pooled2523/25 = 92.0%

Table 8. Human audit of the automated correctness judgments. The random stratum provides the unbiased estimate of agreement, while the disagreement stratum is deliberately over-sampled to stress-test the judge.

Oracle Hier.-Hint, the improvement is 21.74 percentage points under all three judges (p<0.001p < 0.001). Thus, although the judges differ slightly in absolute strictness, their relative treatment contrasts remain consistent.

Moving from o3-mini to GPT-4o to DeepSeek-R1, the No-Hint and Oracle Hier.-Hint counts each decrease by one problem per step, while Hier.-Hint decreases by two and then one. This largely uniform shift indicates that the judges differ mainly in overall strictness rather than in preference for a particular training condition. The one additional problem lost under Hier.-Hint thus bounds any potential judge-exploitation effect at a single problem, which leaves the significance of the treatment effect unchanged.

Human Validation. To further assess whether the judge threshold aligns with careful human evaluation, two authors with graduate-level mathematical training, blind to condition, seed, and judge score, jointly annotated a stratified sample of 25 responses in randomized order. The sample contained 20 randomly selected responses, which provide an unbiased estimate of agreement on the full evaluation set, and the 5 responses on which o3-mini and GPT-4o disagreed.

Agreement on the unbiased random stratum is 95.0% (Wilson 95% CI [76.4, 99.1]), and the pooled agreement is 92.0% with Cohen’s κ=0.80\kappa= 0.80. Since the five judge-disagreement cases are deliberately over-sampled, the pooled figure serves as a conservative lower estimate. The two observed disagreements were split evenly, with one false positive and one false negative, indicating no systematic tendency of the judge to over- or under-credit responses at this sample size. As the responses were adjudicated jointly by both annotators, agreement is reported between the consensus label and the automated judge.

Inference and Training Cost.

The additional computational cost of H2^2R primarily comes from one-time hint generation and LLM-based reward evaluation. For the 105 HiMath training problems, we use 105 o3-mini calls to generate the hierarchical hints, which are then reused throughout training. During training, approximately 4,200 reward-judge calls are issued per run, and approximately 1,334 additional judge calls are used for evaluation. Overall, the training and evaluation procedure requires approximately 5,700 LLM calls per run, in addition to the one-time 105 calls for hint generation.

Inference-Only Results

Inference-only mean reward across eight models under five hint conditions

Figure 4. Inference-only mean reward across eight models under five hint conditions without RL training.

Inference-only mean process score across eight models under five hint conditions

Figure 5. Inference-only mean process score across eight models under five hint conditions without RL training.

External-Benchmark Reasoning Analysis

We further analyze how H2^2R changes the structure of model reasoning on AIME24 and AIME25, which are outside the HiMath training distribution. Both policies are evaluated without hints at inference time.

On a representative AIME 2025 problem, the No-Hint policy asserts two closed-form rules “by standard circle properties” without deriving them and reaches an incorrect answer of 276∘276^\circ. In contrast, the H2^2R-trained policy derives the intermediate steps, verifies that its six sub-results sum to 360∘360^\circ, and reaches the correct answer of 336∘336^\circ. This difference suggests that the change is not merely increased verbosity: the trained policy produces more explicit intermediate states that can be checked. during reasoning. This observation is consistent with the error-propagation analysis in Appendix § 17, where unreliable intermediate states substantially reduce final-answer accuracy.

MetricNo-HintH²RΔ (95% CI)
Length (tokens)598 ± 871089 ± 203+491 [413, 570]
Step markers1.3 ± 0.83.1 ± 1.2+1.8 [1.3, 2.3]
Interm. conclusions2.8 ± 1.45.7 ± 2.1+2.9 [2.0, 3.8]
Sub-goal phrases0.4 ± 0.51.8 ± 0.9+1.4 [1.0, 1.8]

Table 9. Lexical and structural characteristics of Qwen2.5-7B-Instruct responses on AIME24 and AIME25 (60 problems, avg@5; 300 responses per condition). No-Hint denotes the GRPO baseline, while H²R denotes the Hier.-Hint-trained policy. Both are evaluated without hints at inference time. Confidence intervals are computed using paired cluster bootstrap resampling with problems as clusters; all four contrasts have p<0.001p < 0.001.

Error Propagation in Hier.-Hint

To quantify this propagation effect, we analyze Qwen2.5-7B-Instruct under the Hier.-Hint condition by partitioning problems into four groups based on whether the model’s self-generated Q1Q_1 and Q2Q_2 answers are correct, and reporting Q3Q_3 accuracy for each group. We focus on this model as it provides the most balanced group sizes across all four conditions; stronger models rarely produce incorrect intermediate answers, making propagation analysis statistically underpowered for those settings.

In Figure 6, when both self-generated hints are correct, Q3Q_3 accuracy reaches 57.1%. However, this drops to 33.3% when only Q1Q_1 is incorrect, and to 38.1% when only Q2Q_2 is incorrect. It declines further to 23.8% when both hints are wrong. These results yield three distinct observations.

Error propagation in Hier.-Hint

Figure 6. Q3Q_3 accuracy under Hier.-Hint, dropping from 57.1% (both correct) to 23.8% (both wrong).

Crucially, error propagation is empirically confirmed and measurable, as the 33% accuracy gap between the hint-correct and hint-incorrect conditions provides direct evidence that intermediate reasoning errors systematically undermine final-answer quality. Notably, Q1Q_1 errors propagate more severely than Q2Q_2 errors, causing a 24% drop compared to a 19% drop. This discrepancy indicates that mistakes in foundational reasoning steps are far more damaging than errors in intermediate conclusions. This pattern also aligns perfectly with the hierarchical structure of HiMath problems, where Q1Q_1 establishes the definitional basis that all subsequent reasoning depends upon. Thirdly, even when both self-generated hints are incorrect, Q3Q_3 retains a non-trivial accuracy of 23.8%, indicating that the model retains some capacity for independent reasoning rather than blindly following its own prior outputs. Together, these findings suggest that closing the Hier.-Hint to Oracle Hier.-Hint gap requires improving the model’s ability to generate reliable intermediate reasoning states. We denote this as a direction for future work on trainable hint generation between automated and oracle supervision.

Attention Analysis

Mean normalised attention share across prompt sections under five hint conditions

Figure 7. Mean normalised attention share across prompt sections under five hint conditions.

Three consistent patterns emerge. First, context attention decreases monotonically as hint informativeness increases (0.65 → 0.25), indicating that the model progressively shifts reliance from the raw problem statement to the provided intermediate guidance. Second, hint sections are attended to selectively and condition-specifically: Sub1 Hint activates only hint_Q1Q_1 and hint_a1, Sub2-Hint activates only hint_Q2Q_2 and hint_a2, and Hier./Oracle Hierarchical Hint engage all four hint sections simultaneously, confirming that the model correctly identifies relevant hint content rather than attending uniformly to all input tokens. Third, subQ3Q_3 attention drops substantially under richer hint conditions (0.34 → 0.07), suggesting that a more complete intermediate context reduces the need for repeated re-reading of the target question. Fourth, under Hier.-Hint, the model allocates notably higher attention to hint_Q1Q_1 and hint_a1 (0.33 and 0.26 respectively) compared to Oracle Hierarchical Hints (0.23 and 0.18), despite both conditions providing solutions to both subquestions. Together, these patterns provide mechanistic evidence that H2RH^{2}R hints are actively integrated into the model’s reasoning process rather than being ignored.

Case Study

Token-level normalised attention under Hier.-Hint and Oracle Hier.-Hint

Figure 8. Token-level normalised attention under Hier.-Hint (top) and Oracle Hier.-Hint (bottom). Colors: context (blue), hint_Q1Q_1 (teal), hint_a1 (yellow), hint_Q2Q_2 (pink), hint_a2 (red), subQ3Q_3 (dark grey). Under Hier.-Hint with incorrect hints, attention peaks on the question text of Q2Q_2 rather than its predicted answer, indicating failed hint utilization. Under Oracle Hier.-Hint, sharp attention peaks emerge at specific oracle answer tokens.

Figure construction. Each bar in the figure corresponds to a single input token in the prompt. The horizontal axis represents token position, with tokens colour-coded by their prompt section: context (blue), hint_Q1Q_1 (teal), hint_a1 (yellow), hint_Q2Q_2 (pink), hint_a2 (red), and subQ3Q_3 (dark grey). The vertical axis reports the normalised attention value for each token, computed as follows: we extract attention weights from the final eight transformer layers during Q3Q_3 generation, average across all attention heads and all generated output tokens, and apply min-max normalisation so that the most-attended token receives a value of 1.0. This produces a per-token measure of how much relative attention the model allocates to each part of the input while generating its answer.

Hier.-Hint (incorrect). The most prominent attention peak (1.0) occurs within the hint_Q2Q_2 section — the text of subquestion 2 itself — rather than within hint_a2, the model’s self-generated answer to Q2Q_2. The hint_a1 section shows moderate, uniformly distributed attention without a sharp peak, and hint_a2, despite occupying a large portion of the prompt, receives diffuse and low attention throughout. This pattern suggests that the model’s self-generated Q2Q_2 answer is of insufficient quality: unable to extract a reliable reasoning anchor from hint_a2, the model reverts to attending to the question text of Q2Q_2 instead. The absence of a focused attention peak within either answer section indicates that no clear intermediate reasoning step could be identified, and the model produces an incorrect final answer.

Oracle Hierarchical Hint (correct). The attention pattern shifts markedly. The highest peak (1.0) now falls within hint_a1, the ground-truth solution to Q1Q_1, indicating that the model successfully identifies a specific, high-salience token within the oracle answer. The hint_Q2Q_2 section, which dominated under Hier.-Hint, now shows a substantially lower peak, suggesting that the model no longer needs to retreat to the question text when a reliable answer is available. Although hint_a2 remains long, it exhibits several localised peaks of moderate height, indicating that the model extracts multiple relevant reasoning cues from the correct Q2Q_2 solution rather than scanning it diffusely.

Interpretation. The contrast between the two conditions reveals that the performance gap between Hier.-Hint and Oracle Hierarchical Hint is not a consequence of different attention strategies, but of different hint quality. In both conditions, the model actively attends to hint content. However, when self-generated hints are incorrect, the model cannot form focused attention peaks within the answer sections and is forced to fall back on the question text — a behavioural signature of failed hint utilisation. When oracle hints are provided, sharp attention peaks emerge at specific answer tokens, providing the reasoning anchors necessary for a correct final answer. This finding directly supports the claim that hint quality, rather than the presence of hints per se, is the primary determinant of Hier.-Hint performance.

References

  1. [2]Justin Yang Chae, Md Tanvirul Alam, and Nidhi Rastogi. 2025. Towards understanding self-play for llm reasoning. Preprint, arXiv:2510.27072.arxiv.org/abs/2510.27072
  2. [3]Zhengyu Chen, Yudong Wang, Teng Xiao, Ruocheng Zhou, Xuesheng Yang, Wei Wang, Zhifang Sui, and Jingang Wang. 2025. From mathematical reasoning to code: Generalization of process reward models in test-time scaling. Preprint, arXiv:2506.00027.arxiv.org/abs/2506.00027
  3. [4]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168.arxiv.org/abs/2110.14168
  4. [5]Gheorghe Comanici, Eric Bieber, Mike Schaeekermann, Ice Pasupat, Noveen Sachdeva, Inderjit Dhillon, Marcel Blistein, Ori Ram, Dan Zhang, Evan Rosen, and 1 others. 2025. Gemini 2.5: Pushing the frontier with advanced reasoning, multimodality, long context, and next generation agentic capabilities. arXiv preprint arXiv:2507.06261.arxiv.org/abs/2507.06261
  5. [6]DeepSeek-AI. 2025. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. Preprint, arXiv:2501.12948.DOI
  6. [7]Zhangying Feng, Qianglong Chen, Ning Lu, Yongqian Li, Siqi Cheng, Shuangmu Peng, Duyu Tang, Shengcai Liu, and Zhirui Zhang. 2025. Is prm necessary? problem-solving rl implicitly induces prm capability in llms. Preprint, arXiv:2505.11227.arxiv.org/abs/2505.11227
  7. [8]Google. 2025. Gemini 3.1 pro preview. https://ai.google.dev/gemini-api/docs/models.
  8. [9]Yongxin Guo, Wenbo Deng, Zhenglin Cheng, and Xiaoying Tang. 2025. G²rpo-a: Guided group relative policy optimization with adaptive guidance. arXiv preprint arXiv:2508.13023.arxiv.org/abs/2508.13023
  9. [10]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. 2021. Measuring mathematical problem solving with the math dataset. NeurIPS.
  10. [11]Hugging Face. 2025. Open r1: A fully open reproduction of deepseek-r1.

Paper details

vlnc:W_fnsmfjg4
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents