Jiacheng Liang, Yuhui Wang, Changjiang Li, Ting Wang, Guangke Chen
We lifted 19 functions out of this paper's own repositories and ran 1 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| ZJUWYH/FARL | canonical | 1 of 19 |
| Function | Status | Where it lives |
|---|---|---|
| create_rl_sampler | Ran | ZJUWYH/FARL/train/farl.py pointer only (licence: NONE) · get_code("7434c2f36297799f") |
| add_answer_column | Not yet run | ZJUWYH/FARL/perturb/normal_model_infer.py pointer only (licence: NONE) · get_code("0b3593e9b456a74d") |
| add_answer_column | Not yet run | ZJUWYH/FARL/perturb/perturb_model_infer.py pointer only (licence: NONE) · get_code("f74efc916c696b88") |
| add_answer_column | Not yet run | ZJUWYH/FARL/perturb/reason_perturb.py pointer only (licence: NONE) · get_code("de3097932e305276") |
| arc_to_mmlu | Not yet run | ZJUWYH/FARL/perturb/normal_model_infer.py pointer only (licence: NONE) · get_code("68b51fc6638362ca") |
| chat_template_prefill | Not yet run | ZJUWYH/FARL/perturb/reason_perturb.py pointer only (licence: NONE) · get_code("892f73d930085930") |
| create_rl_dataset | Not yet run | ZJUWYH/FARL/train/farl.py pointer only (licence: NONE) · get_code("72cddcc13e34b536") |
| format_mmlu_example | Not yet run | ZJUWYH/FARL/train/sft_correct.py pointer only (licence: NONE) · get_code("98ea899fbd2a87f8") |
| format_mmlu_example | Not yet run | ZJUWYH/FARL/train/sft_wrong.py pointer only (licence: NONE) · get_code("3744150273669ec6") |
| llm_extract_answer | Not yet run | ZJUWYH/FARL/perturb/perturb_model_infer.py pointer only (licence: NONE) · get_code("d57c2265f84b4dee") |
| llm_extract_answer_v2 | Not yet run | ZJUWYH/FARL/perturb/perturb_model_infer.py pointer only (licence: NONE) · get_code("2442c4223696116a") |
| load_mmlu_subset | Not yet run | ZJUWYH/FARL/train/sft_correct.py pointer only (licence: NONE) · get_code("75a54d371ab2f3d6") |
| load_mmlu_subset | Not yet run | ZJUWYH/FARL/train/sft_wrong.py pointer only (licence: NONE) · get_code("ea50d25bbee31eef") |
| my_reward_fn | Not yet run | ZJUWYH/FARL/util/costom_reward.py pointer only (licence: NONE) · get_code("17465e2ba860524b") |
| prepare_fsdp | Not yet run | ZJUWYH/FARL/train/sft_correct.py pointer only (licence: NONE) · get_code("672e2168f91d0fef") |
| selective_log_softmax | Not yet run | ZJUWYH/FARL/train/unlearn_correct.py pointer only (licence: NONE) · get_code("76c00ae89d47f941") |
| str2bool | Not yet run | ZJUWYH/FARL/perturb/reason_perturb.py pointer only (licence: NONE) · get_code("bceedc218301135e") |
| tokenize_mmlu_example | Not yet run | ZJUWYH/FARL/train/sft_wrong.py pointer only (licence: NONE) · get_code("621f370f69080361") |
| tokenizer_fn | Not yet run | ZJUWYH/FARL/perturb/indentify_target_answer.py pointer only (licence: NONE) · get_code("1909abf95262909b") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
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, 1 a novel fine-tuning framework that integrates memory unlearning with reinforcement learning. By carefully suppressing retrieval shortcuts during the fine-tuning process, FARL promotes reasoningdominant behavior and enhances generalizable reasoning capabilities. The code is available: https://github.com/ZJUWYH/FARL
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2509.24156")
get_code_for_paper("2509.24156")
have("2509.24156")
Connect an agent — have() is free.