{"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-2601-04537","title":"Linear Dynamics in the RLVR Training of Large Language Models","arxiv_id":"2601.04537","date":"2026-01-08","proceeding":null,"authors":["Tianle Wang","Jiayu Liu","Zhongyuan Wu","Shenghao Jin","Wei Chen","Hao Xu","Ning Miao"],"abstract":"Reinforcement learning with verifiable rewards (RLVR) has driven significant performance gains in reasoning-oriented large language models (LLMs), yet its internal training dynamics remain largely a black box. In this work, we perform a comprehensive trajectory-level analysis of RLVR and uncover a striking regularity: across various model families, RL algorithms, and training configurations, RLVR consistently enters a robust linear regime, where both parameter weights and output log-probabilities, measured rigorously via teacher-forced evaluation, evolve in a highly linear manner ($R^2 > 0.7$). Through controlled experiments and theoretical analysis, we demonstrate that this linearity is not a coincidence, but stems from the high-variance, noisy nature of RLVR training signals, which act as a low-pass filter to concentrate optimization along a stable, low-dimensional drift. Moreover, we show that this linear structure is not merely descriptive but powerfully predictive and actionable. Specifically, weight-space extrapolation matches the performance of standard RL optimization while achieving a 6.1x training speedup through periodic re-grounding. Meanwhile, output-space extrapolation serves as a lightweight intervention that effectively bypasses late-stage model collapse, consistently outperforming standard RL across mathematical and coding benchmarks, with an average performance improvement of 4.2%. Our code is available at https://github.com/Miaow-Lab/RLVR-Linearity.","url_abs":"https://arxiv.org/abs/2601.04537","url_pdf":"https://arxiv.org/pdf/2601.04537","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=2601.04537","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2601.04537"}},"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/Miaow-Lab/RLVR-Linearity","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":2,"unverified":19},"by_repo_kind":{"found_in_text":{"samples":21,"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":0,"samples":[{"code_sha256_prefix":"8896f4e2bafe8abc","entry":"generate_config_from_args","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"verl/verl/model_merger/base_model_merger.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/verl/verl/model_merger/base_model_merger.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8896f4e2bafe8abc"}},{"code_sha256_prefix":"94209884dcb2308e","entry":"get_dynamic_pipeline_shards","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"verl/verl/model_merger/megatron_model_merger.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/verl/verl/model_merger/megatron_model_merger.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"94209884dcb2308e"}},{"code_sha256_prefix":"77938e6a32c6c83b","entry":"calculate_alpha","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"acceleration/logits_extrapolation.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/acceleration/logits_extrapolation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"77938e6a32c6c83b"}},{"code_sha256_prefix":"60425d0b541f8efd","entry":"extract_final_answer","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"evaluation/pass_at_k_eval.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/evaluation/pass_at_k_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"60425d0b541f8efd"}},{"code_sha256_prefix":"47132ed4fdcf0a8b","entry":"find_braces_content","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"evaluation/pass_at_k_eval.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/evaluation/pass_at_k_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"47132ed4fdcf0a8b"}},{"code_sha256_prefix":"85b305142d653b1d","entry":"flatten_responses","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"analysis/token_logprob/token_logprob_linearity.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/analysis/token_logprob/token_logprob_linearity.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"85b305142d653b1d"}},{"code_sha256_prefix":"9f087582a1131c88","entry":"get_filtered_random_mask","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"analysis/weight/weight_linearity.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/analysis/weight/weight_linearity.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9f087582a1131c88"}},{"code_sha256_prefix":"cc8952b03ae8ebc6","entry":"get_layer_weights","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"analysis/weight/weight_linearity.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/analysis/weight/weight_linearity.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cc8952b03ae8ebc6"}},{"code_sha256_prefix":"ac35f0d2152218c0","entry":"get_step_int_from_path","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"acceleration/weight_extrapolation.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/acceleration/weight_extrapolation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ac35f0d2152218c0"}},{"code_sha256_prefix":"db79e1c6f71f41bb","entry":"load_json","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"analysis/token_logprob/token_logprob_linearity.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/analysis/token_logprob/token_logprob_linearity.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"db79e1c6f71f41bb"}},{"code_sha256_prefix":"98cb765f6409dd94","entry":"load_json","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"evaluation/pass_at_k_eval.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/evaluation/pass_at_k_eval.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"98cb765f6409dd94"}},{"code_sha256_prefix":"974078a91d3ec703","entry":"load_tokenizer","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"analysis/token_logprob/plot_token_logprob_linearity.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/analysis/token_logprob/plot_token_logprob_linearity.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"974078a91d3ec703"}},{"code_sha256_prefix":"c8c7f0daade03739","entry":"load_weights_from_checkpoint","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"analysis/weight/weight_linearity.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/analysis/weight/weight_linearity.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c8c7f0daade03739"}},{"code_sha256_prefix":"bb3923bae9d2bdfa","entry":"load_weights_only","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"acceleration/weight_extrapolation.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/acceleration/weight_extrapolation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bb3923bae9d2bdfa"}},{"code_sha256_prefix":"888d0d880907ef8e","entry":"mix_logits","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"acceleration/logits_extrapolation.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/acceleration/logits_extrapolation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"888d0d880907ef8e"}},{"code_sha256_prefix":"6404f02a3872c91e","entry":"prepare_prompts","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"evaluation/inference_vllm_offline.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/evaluation/inference_vllm_offline.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6404f02a3872c91e"}},{"code_sha256_prefix":"70be02ba13364d71","entry":"sanitize_filename","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"analysis/token_logprob/plot_token_logprob_linearity.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/analysis/token_logprob/plot_token_logprob_linearity.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"70be02ba13364d71"}},{"code_sha256_prefix":"08188c51a18bec5f","entry":"split_data","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"analysis/token_logprob/token_logprob_linearity.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/analysis/token_logprob/token_logprob_linearity.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"08188c51a18bec5f"}},{"code_sha256_prefix":"a656a12f2110c7b0","entry":"split_list_evenly","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"evaluation/inference_vllm_offline.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/evaluation/inference_vllm_offline.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a656a12f2110c7b0"}},{"code_sha256_prefix":"e1577f990e3c8461","entry":"token_id_to_str","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"analysis/token_logprob/plot_token_logprob_linearity.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/analysis/token_logprob/plot_token_logprob_linearity.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e1577f990e3c8461"}},{"code_sha256_prefix":"f1ce71d11869fdae","entry":"top_p_filtering","repo":"Miaow-Lab/RLVR-Linearity","repo_kind":"found_in_text","path":"acceleration/logits_extrapolation.py","file_url":"https://github.com/Miaow-Lab/RLVR-Linearity/blob/HEAD/acceleration/logits_extrapolation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f1ce71d11869fdae"}}]},"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":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,795 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6795},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}