SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2507.05386 · ICML · 2025

Reinforcement Fine-Tuning Naturally Mitigates Forgetting in Continual Post-Training

Hongbin Liu, Xi Lin, Qingfu Zhang, Fei Zhu, Wenzhuo Liu, Hongbo Zhao, Gaofeng Meng, Haohan Zhao, Rong Feng, Changyi Ma, Song Lai, Dong Yi

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 4 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2507.05386.json · badge: /api/ran/2507.05386.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
zhhvvv/rft_vs_sft canonical (classifier label)
classifier basis: census
6 ran · 4 no recorded run
FunctionStatusWhere it lives
eval_logit_processor Ran
ran; our contract draft was wrong, not the code
zhhvvv/rft_vs_sft/LLaMA-Factory/src/llamafactory/train/sft/metric.py
pointer only (licence: NONE) · get_code("2fba3c22367e0778")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhhvvv/rft_vs_sft when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_kl_controller Ran
ran; our contract draft was wrong, not the code
zhhvvv/rft_vs_sft/EasyR1/verl/trainer/core_algos.py
pointer only (licence: NONE) · get_code("33a3cccef610855c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhhvvv/rft_vs_sft when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_fa2_from_position_ids Ran
ran; our contract draft was wrong, not the code
zhhvvv/rft_vs_sft/EasyR1/verl/models/transformers/flash_attention_utils.py
pointer only (licence: NONE) · get_code("4049cf08f994464e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhhvvv/rft_vs_sft when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

process_for_parquet Ran
ran; our contract draft was wrong, not the code
zhhvvv/rft_vs_sft/rollout_filter.py
pointer only (licence: NONE) · get_code("b5b031edf82a3af8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhhvvv/rft_vs_sft when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

union_tensor_dict Ran
ran; our contract draft was wrong, not the code
zhhvvv/rft_vs_sft/EasyR1/verl/protocol.py
pointer only (licence: NONE); the stored copy get_code serves, from Chengsong-Huang/RelayLLM, is pointer only (licence: NONE) · get_code("ad658a1d6fe829ba")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhhvvv/rft_vs_sft when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

unpad_dataproto Ran
ran; our contract draft was wrong, not the code
zhhvvv/rft_vs_sft/EasyR1/verl/protocol.py
pointer only (licence: NONE) · get_code("a91c18341292d50e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhhvvv/rft_vs_sft when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_gae_advantage_return Not yet run
unverified (harvested, no recorded run)
zhhvvv/rft_vs_sft/EasyR1/verl/trainer/core_algos.py
pointer only (licence: NONE) · get_code("d3ee7b3d8f0cf2fa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhhvvv/rft_vs_sft when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

compute_grpo_outcome_advantage Not yet run
unverified (harvested, no recorded run)
zhhvvv/rft_vs_sft/EasyR1/verl/trainer/core_algos.py
pointer only (licence: NONE) · get_code("b7dacadfa17e35d2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhhvvv/rft_vs_sft when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

flash_attention_forward Not yet run
unverified (harvested, no recorded run)
zhhvvv/rft_vs_sft/EasyR1/verl/models/transformers/flash_attention_utils.py
pointer only (licence: NONE) · get_code("d71e909038b965a1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhhvvv/rft_vs_sft when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

pad_dataproto_to_divisor Not yet run
unverified (harvested, no recorded run)
zhhvvv/rft_vs_sft/EasyR1/verl/protocol.py
pointer only (licence: NONE) · get_code("c5aeb7231bf64063")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zhhvvv/rft_vs_sft when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 7 the same month, 7 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
unpad_dataproto 10 other papers
4 dated earlier, 1 the same month, 4 later, 1 undated
2503.17352 (2025-03)
OpenVLThinker: Complex Vision-Language Reasoning via Iterative SFT-RL Cycles
2505.11049 (2025-05)
GuardReasoner-VL: Safeguarding VLMs via Reinforced Reasoning
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
and 7 more not named here
get_kl_controller 9 other papers
4 dated earlier, 1 the same month, 3 later, 1 undated
2503.17352 (2025-03)
OpenVLThinker: Complex Vision-Language Reasoning via Iterative SFT-RL Cycles
2505.11049 (2025-05)
GuardReasoner-VL: Safeguarding VLMs via Reinforced Reasoning
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
and 6 more not named here
union_tensor_dict 7 other papers
4 dated earlier, 1 the same month, 1 later, 1 undated
2503.17352 (2025-03)
OpenVLThinker: Complex Vision-Language Reasoning via Iterative SFT-RL Cycles
2505.11049 (2025-05)
GuardReasoner-VL: Safeguarding VLMs via Reinforced Reasoning
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
and 4 more not named here
pad_dataproto_to_divisor 4 other papers
3 dated earlier, 1 the same month
2505.11049 (2025-05)
GuardReasoner-VL: Safeguarding VLMs via Reinforced Reasoning
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
2506.01908 (2025-06)
Reinforcement Learning Tuning for VideoLLMs: Reward Design and Data Efficiency
and 1 more not named here
prepare_fa2_from_position_ids 4 other papers
2 dated earlier, 1 the same month, 1 later
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
2506.01908 (2025-06)
Reinforcement Learning Tuning for VideoLLMs: Reward Design and Data Efficiency
2507.07966 (2025-07)
Scaling RL to Long Videos
and 1 more not named here
compute_gae_advantage_return 3 other papers
1 dated earlier, 1 the same month, 1 later
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
2507.07966 (2025-07)
Scaling RL to Long Videos
2605.07465 (2026-05)
SEIF: Self-Evolving Reinforcement Learning for Instruction Following
flash_attention_forward 3 other papers
1 dated earlier, 1 the same month, 1 later
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
2507.07966 (2025-07)
Scaling RL to Long Videos
2605.07465 (2026-05)
SEIF: Self-Evolving Reinforcement Learning for Instruction Following
compute_grpo_outcome_advantage 2 other papers
1 dated earlier, 1 later
2505.16282 (2025-05)
ARPO:End-to-End Policy Optimization for GUI Agents with Experience Replay
2605.07465 (2026-05)
SEIF: Self-Evolving Reinforcement Learning for Instruction Following

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Continual post-training (CPT) is a popular and effective technique for adapting foundation models like multimodal large language models to ever-evolving downstream tasks. While existing research primarily focuses on methods like data replay, model expansion, or parameter regularization, the fundamental role of the learning paradigm remains largely unexplored. This paper presents a comparative analysis of two core post-training paradigms: supervised fine-tuning (SFT) and reinforcement fine-tuning (RFT), investigating their respective impacts on knowledge retention during CPT. Our experiments are conducted across multiple multimodal tasks, utilizing Qwen2.5-VL-7B-Instruct as the base model. The investigation yields two significant findings: (1) When continuously learning on downstream tasks, SFT leads to catastrophic forgetting of previously learned tasks. In contrast, RFT inherently preserves prior knowledge and achieves performance comparable to multi-task training. (2) RFT successfully protects and even enhances the model's general knowledge on standard benchmarks, while SFT degrades general model capabilities severely. Further analysis reveals that this stability is not primarily due to explicit mechanisms like KL penalty or chain-of-thought reasoning. We investigate RFT's learning dynamics and find that its selective update mechanism inherently prevents interference with established knowledge.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2507.05386")
get_code_for_paper("2507.05386")
have("2507.05386")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2507.05386.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2507.05386.svg)](https://syntology.ai/paper/2507.05386)

Connect an agent — have() is free.