{"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-2603-09803","title":"Good Reasoning Makes Good Demonstrations: Implicit Reasoning Quality Supervision via In-Context Reinforcement Learning","arxiv_id":"2603.09803","date":"2026-03-10","proceeding":null,"authors":["Tiehua Mei","Minxuan Lv","Leiyu Pan","Zhenpeng Su","Hongru Hou","Hengrui Chen","Ao Xu","Deqing Yang"],"abstract":"Reinforcement Learning with Verifiable Rewards (RLVR) improves reasoning in large language models but treats all correct solutions equally, potentially reinforcing flawed traces that arrive at correct answers by chance. We observe that \\emph{better reasoning makes better demonstrations}: high-quality solutions serve as more effective in-context examples than low-quality ones. We term this teaching ability \\textbf{Demonstration Utility}, and show that the policy model's own in-context learning ability provides an efficient way to measure it, yielding a quality signal termed \\textbf{Evidence Gain}. To leverage this signal during training, we introduce \\textbf{In-Context RLVR}, which prepends demonstrations before each rollout. Theoretically, we prove that this simple input modification implicitly reweights rewards by a factor approximately proportional to Evidence Gain, assigning higher weights to high-quality traces without requiring costly computation. Experiments on mathematical reasoning benchmarks demonstrate consistent improvements in both accuracy and reasoning quality over standard RLVR baselines. Our codes and datasets are available at https://github.com/Mithas-114/IC-DAPO.","url_abs":"https://arxiv.org/abs/2603.09803","url_pdf":"https://arxiv.org/pdf/2603.09803","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":"https://syntology.ai/paper/2603.09803","atlas_url":"https://app.syntology.ai/?focus=2603.09803","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2603.09803"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/Mithas-114/IC-DAPO","reach":null}],"summary":{"unverified":3},"by_repo_kind":{"found_in_text":{"samples":3,"ran":0,"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":3,"samples":[{"code_sha256_prefix":"039f7d96333759c2","entry":"ScoringConfig","repo":"Mithas-114/IC-DAPO","repo_kind":"found_in_text","path":"verl/verl/utils/reward_score/math_dapo.py","file_url":"https://github.com/Mithas-114/IC-DAPO/blob/HEAD/verl/verl/utils/reward_score/math_dapo.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":"039f7d96333759c2"}},{"code_sha256_prefix":"ad74ab2d82242089","entry":"compute_score","repo":"Mithas-114/IC-DAPO","repo_kind":"found_in_text","path":"verl/verl/utils/reward_score/math_dapo.py","file_url":"https://github.com/Mithas-114/IC-DAPO/blob/HEAD/verl/verl/utils/reward_score/math_dapo.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":"ad74ab2d82242089"}},{"code_sha256_prefix":"2e3a77a42c44e945","entry":"math_verify_from_sky","repo":"Mithas-114/IC-DAPO","repo_kind":"found_in_text","path":"verl/verl/utils/reward_score/math_dapo.py","file_url":"https://github.com/Mithas-114/IC-DAPO/blob/HEAD/verl/verl/utils/reward_score/math_dapo.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":"2e3a77a42c44e945"}}]},"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}