{"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-2509-24156","title":"Reasoning or Retrieval? A Study of Answer Attribution on Large Reasoning Models","arxiv_id":"2509.24156","date":"2025-09-29","proceeding":"ICLR","authors":["Yuhui Wang","Changjiang Li","Guangke Chen","Jiacheng Liang","Ting Wang"],"abstract":"Large reasoning models (LRMs) exhibit unprecedented capabilities in solving complex problems through Chain-of-Thought (CoT) reasoning. However, recent studies reveal that their final answers often contradict their own reasoning traces. We hypothesize that this inconsistency stems from two competing mechanisms for generating answers: CoT reasoning and memory retrieval. To test this hypothesis, we conduct controlled experiments that challenge LRMs with misleading cues during reasoning and/or corrupted answers during retrieval. Our results across models and datasets confirm that both mechanisms operate simultaneously, with their relative dominance influenced by multiple factors: problem domains, model scales, and fine-tuning approaches (e.g., reinforcement learning vs. distillation). The findings reveal a critical limitation in current reasoning fine-tuning paradigms: models can exploit the retrieval mechanism as a shortcut, effectively \"hacking\" the reward signal and undermining genuine reasoning development. To address this challenge, we introduce FARL, a novel fine-tuning framework that integrates memory unlearning with reinforcement learning. By carefully suppressing retrieval shortcuts during the fine-tuning process, FARL promotes reasoning-dominant behavior and enhances generalizable reasoning capabilities. The code is available: https://github.com/ZJUWYH/FARL.","url_abs":"https://arxiv.org/abs/2509.24156","url_pdf":"https://arxiv.org/pdf/2509.24156","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/2509.24156","atlas_url":"https://app.syntology.ai/?focus=2509.24156","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2509.24156"}},"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/ZJUWYH/FARL","reach":{"status":"ok"}}],"summary":{"ran":1,"unverified":18},"by_repo_kind":{"found_in_text":{"samples":19,"ran":1,"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":19,"samples":[{"code_sha256_prefix":"7434c2f36297799f","entry":"create_rl_sampler","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"train/farl.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/train/farl.py","link_basis":"plan_row","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":"7434c2f36297799f"}},{"code_sha256_prefix":"0b3593e9b456a74d","entry":"add_answer_column","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"perturb/normal_model_infer.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/perturb/normal_model_infer.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":"0b3593e9b456a74d"}},{"code_sha256_prefix":"f74efc916c696b88","entry":"add_answer_column","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"perturb/perturb_model_infer.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/perturb/perturb_model_infer.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":"f74efc916c696b88"}},{"code_sha256_prefix":"de3097932e305276","entry":"add_answer_column","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"perturb/reason_perturb.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/perturb/reason_perturb.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":"de3097932e305276"}},{"code_sha256_prefix":"68b51fc6638362ca","entry":"arc_to_mmlu","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"perturb/normal_model_infer.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/perturb/normal_model_infer.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":"68b51fc6638362ca"}},{"code_sha256_prefix":"892f73d930085930","entry":"chat_template_prefill","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"perturb/reason_perturb.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/perturb/reason_perturb.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":"892f73d930085930"}},{"code_sha256_prefix":"72cddcc13e34b536","entry":"create_rl_dataset","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"train/farl.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/train/farl.py","link_basis":"plan_row","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":"72cddcc13e34b536"}},{"code_sha256_prefix":"98ea899fbd2a87f8","entry":"format_mmlu_example","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"train/sft_correct.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/train/sft_correct.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":"98ea899fbd2a87f8"}},{"code_sha256_prefix":"3744150273669ec6","entry":"format_mmlu_example","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"train/sft_wrong.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/train/sft_wrong.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":"3744150273669ec6"}},{"code_sha256_prefix":"d57c2265f84b4dee","entry":"llm_extract_answer","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"perturb/perturb_model_infer.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/perturb/perturb_model_infer.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":"d57c2265f84b4dee"}},{"code_sha256_prefix":"2442c4223696116a","entry":"llm_extract_answer_v2","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"perturb/perturb_model_infer.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/perturb/perturb_model_infer.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":"2442c4223696116a"}},{"code_sha256_prefix":"75a54d371ab2f3d6","entry":"load_mmlu_subset","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"train/sft_correct.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/train/sft_correct.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":"75a54d371ab2f3d6"}},{"code_sha256_prefix":"ea50d25bbee31eef","entry":"load_mmlu_subset","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"train/sft_wrong.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/train/sft_wrong.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":"ea50d25bbee31eef"}},{"code_sha256_prefix":"17465e2ba860524b","entry":"my_reward_fn","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"util/costom_reward.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/util/costom_reward.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":"17465e2ba860524b"}},{"code_sha256_prefix":"672e2168f91d0fef","entry":"prepare_fsdp","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"train/sft_correct.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/train/sft_correct.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":"672e2168f91d0fef"}},{"code_sha256_prefix":"76c00ae89d47f941","entry":"selective_log_softmax","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"train/unlearn_correct.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/train/unlearn_correct.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":"76c00ae89d47f941"}},{"code_sha256_prefix":"bceedc218301135e","entry":"str2bool","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"perturb/reason_perturb.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/perturb/reason_perturb.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":"bceedc218301135e"}},{"code_sha256_prefix":"621f370f69080361","entry":"tokenize_mmlu_example","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"train/sft_wrong.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/train/sft_wrong.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":"621f370f69080361"}},{"code_sha256_prefix":"1909abf95262909b","entry":"tokenizer_fn","repo":"ZJUWYH/FARL","repo_kind":"found_in_text","path":"perturb/indentify_target_answer.py","file_url":"https://github.com/ZJUWYH/FARL/blob/HEAD/perturb/indentify_target_answer.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":"1909abf95262909b"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.AI","source":"arxiv_api"},"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,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":6885},"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}}}