{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2604-11056","title":"Where Hindsight Credit Can Reside: A Signed-Capacity View of Token Updates in RLVR","arxiv_id":"2604.11056","date":"2026-04-13","proceeding":null,"authors":["Yuhang He","Haodong Wu","Siyi Liu","Hongyu Ge","Hange Zhou","Keyi Wu","Zhuo Zheng","Qihong Lin","Zixin Zhong","Yongqi Zhang"],"abstract":"Reinforcement Learning with Verifiable Rewards (RLVR) improves the reasoning ability of Large Language Models (LLMs), but sparse outcome rewards make token-level credit assignment difficult. We study token-level credit as a reward-conditioned shift from the behavior policy to a hindsight posterior. In autoregressive RLVR, this shift can be expressed through Conditional Mutual Information (CMI), which shows that token entropy upper-bounds possible hindsight credit. Entropy, however, indicates capacity rather than update direction, so we introduce the Four Quadrant Decomposition to separate updates by reward polarity and token entropy. Controlled interventions show that these two factors jointly shape token updates. Sustained reasoning gains concentrate in signed high-entropy quadrants, whereas low-entropy updates saturate quickly. Based on this analysis, we propose Hindsight-Aware Policy Optimization (HAPO), a sign-preserving modification to GRPO that performs capacity-guided advantage reallocation. Experiments on mathematical reasoning benchmarks in two model settings show that HAPO achieves competitive performance among entropy-aware baselines.","url_abs":"https://arxiv.org/abs/2604.11056","url_pdf":"https://arxiv.org/pdf/2604.11056","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2604.11056","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.11056"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/QwenLM/Qwen2.5-Math","reach":null},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/huggingface/Math-Verify","reach":null}],"summary":{"ran":1,"ran_violates":1,"unverified":12},"by_repo_kind":{"found_in_text":{"samples":14,"ran":2,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":14,"samples":[{"code_sha256_prefix":"1525d8bc0fc8d5a0","entry":"generate_completions","repo":"QwenLM/Qwen2.5-Math","repo_kind":"found_in_text","path":"evaluation/model_utils.py","file_url":"https://github.com/QwenLM/Qwen2.5-Math/blob/HEAD/evaluation/model_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1525d8bc0fc8d5a0"}},{"code_sha256_prefix":"d338a8cb44aeb6b4","entry":"is_multi_choice","repo":"QwenLM/Qwen2.5-Math","repo_kind":"found_in_text","path":"evaluation/math_eval.py","file_url":"https://github.com/QwenLM/Qwen2.5-Math/blob/HEAD/evaluation/math_eval.py","link_basis":"plan_row","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d338a8cb44aeb6b4"}},{"code_sha256_prefix":"809c0178a7ae90ff","entry":"choice_answer_clean","repo":"QwenLM/Qwen2.5-Math","repo_kind":"found_in_text","path":"evaluation/grader.py","file_url":"https://github.com/QwenLM/Qwen2.5-Math/blob/HEAD/evaluation/grader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"809c0178a7ae90ff"}},{"code_sha256_prefix":"81082f28e1440f9d","entry":"compare_numerical_ans","repo":"QwenLM/Qwen2.5-Math","repo_kind":"found_in_text","path":"evaluation/math_utils.py","file_url":"https://github.com/QwenLM/Qwen2.5-Math/blob/HEAD/evaluation/math_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"81082f28e1440f9d"}},{"code_sha256_prefix":"ed2f4689128f9885","entry":"extract_multi_choice_answer","repo":"QwenLM/Qwen2.5-Math","repo_kind":"found_in_text","path":"evaluation/parser.py","file_url":"https://github.com/QwenLM/Qwen2.5-Math/blob/HEAD/evaluation/parser.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ed2f4689128f9885"}},{"code_sha256_prefix":"fb37d3c84b18e368","entry":"is_digit","repo":"QwenLM/Qwen2.5-Math","repo_kind":"found_in_text","path":"evaluation/grader.py","file_url":"https://github.com/QwenLM/Qwen2.5-Math/blob/HEAD/evaluation/grader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fb37d3c84b18e368"}},{"code_sha256_prefix":"581f3949cfdcffa2","entry":"is_execution_success","repo":"QwenLM/Qwen2.5-Math","repo_kind":"found_in_text","path":"evaluation/trajectory.py","file_url":"https://github.com/QwenLM/Qwen2.5-Math/blob/HEAD/evaluation/trajectory.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"581f3949cfdcffa2"}},{"code_sha256_prefix":"1c1060f6e43d5dfa","entry":"is_number","repo":"QwenLM/Qwen2.5-Math","repo_kind":"found_in_text","path":"evaluation/math_utils.py","file_url":"https://github.com/QwenLM/Qwen2.5-Math/blob/HEAD/evaluation/math_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1c1060f6e43d5dfa"}},{"code_sha256_prefix":"ee71a94d9dd1b8e9","entry":"load_hf_lm_and_tokenizer","repo":"QwenLM/Qwen2.5-Math","repo_kind":"found_in_text","path":"evaluation/model_utils.py","file_url":"https://github.com/QwenLM/Qwen2.5-Math/blob/HEAD/evaluation/model_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ee71a94d9dd1b8e9"}},{"code_sha256_prefix":"0af0b06d6cf22524","entry":"lower_keys","repo":"QwenLM/Qwen2.5-Math","repo_kind":"found_in_text","path":"evaluation/utils.py","file_url":"https://github.com/QwenLM/Qwen2.5-Math/blob/HEAD/evaluation/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0af0b06d6cf22524"}},{"code_sha256_prefix":"73925940858a62b3","entry":"my_parse_latex","repo":"QwenLM/Qwen2.5-Math","repo_kind":"found_in_text","path":"evaluation/math_utils.py","file_url":"https://github.com/QwenLM/Qwen2.5-Math/blob/HEAD/evaluation/math_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"73925940858a62b3"}},{"code_sha256_prefix":"7d4b7f8c3875b126","entry":"parse_digits","repo":"QwenLM/Qwen2.5-Math","repo_kind":"found_in_text","path":"evaluation/grader.py","file_url":"https://github.com/QwenLM/Qwen2.5-Math/blob/HEAD/evaluation/grader.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7d4b7f8c3875b126"}},{"code_sha256_prefix":"7e48538d19cc0d8f","entry":"text_to_trajectory","repo":"QwenLM/Qwen2.5-Math","repo_kind":"found_in_text","path":"evaluation/trajectory.py","file_url":"https://github.com/QwenLM/Qwen2.5-Math/blob/HEAD/evaluation/trajectory.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7e48538d19cc0d8f"}},{"code_sha256_prefix":"0d7ae684ec6c7537","entry":"trajectory_to_text","repo":"QwenLM/Qwen2.5-Math","repo_kind":"found_in_text","path":"evaluation/trajectory.py","file_url":"https://github.com/QwenLM/Qwen2.5-Math/blob/HEAD/evaluation/trajectory.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0d7ae684ec6c7537"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}