arXiv:2610.39934cs.LGOct 2026

Manuscript Offprint

arXiv:2610.39934

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

He Tu, Siye Li, Hongyi Wen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 H2RH^{2}R, 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.

1 Introduction

Large Language Models (LLMs) have demonstrated remarkable potential in complex reasoning tasks, such as mathematical problem-solving (Cobbe et al., 2021; Hendrycks et al., 2021), 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 (Hendrycks et al., 2021; 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 (DeepSeek-AI, 2025; 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 (Chen et al., 2025). 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 ( Q1,Q2,Q3Q_{1}, Q_{2}, Q_{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 ( H2RH^{2}R), a reward-shaping framework that integrates sub-question correctness as intermedi-

Figure

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. H2RH^{2}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.

ate reward signals within the GRPO (Shao et al., 2024b) training objective. Importantly, H2RH^{2}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.

H2RH^{2}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 H2RH^{2}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) H2RH^{2}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.

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 H2RH^{2}R, incorporating a hybrid reward design that combines answer correctness with process-level evaluation. Gains persist at test time without any hint dependency.