SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.01785 · ICCV · 2025

Visual-RFT: Visual Reinforcement Fine-Tuning

Ziyu Liu, Xiaoyi Dong, Dahua Lin, Yuhang Cao, Jiaqi Wang, Haodong Duan, Yuhang Zang, Zeyi Sun

arXiv · PDF · Open in the Atlas

Code that ran

3 of 7 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 3 have no contract verdict; 0 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2503.01785.json · badge: /api/ran/2503.01785.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
liuziyu77/visual-rft canonical (classifier label)
classifier basis not recorded on the link
3 ran · 4 no recorded run
FunctionStatusWhere it lives
compute_f1 Ran
ran on a synthesized input
liuziyu77/visual-rft/Visual-ARFT/evaluation_coding/evaluation_mat_coding_visual_arft.py
code served (permissive licence) · get_code("fa20176e2b95a3d7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
import string

def is_chinese(text):
    """判断文本是否含中文字符"""
    return any(('一' <= ch <= '鿿' for ch in text))

def normalize(s):

    def remove_articles(text):
        return re.sub('\\b(a|an|the)\\b', ' ', text)

    def white_space_fix(text):
        return ' '.join(text.split())

    def remove_punc(text):
        chinese_punc = '!?。"#$%&'()*+,-./:;<=>@[\]^_`{|}~""''、。:《》【】'
        exclude = set(string.punctuation + chinese_punc)
        return ''.join((ch for ch in text if ch not in exclude))

    def lower(text):
        return text.lower()
    s = lower(s)
    s = remove_punc(s)
    if is_chinese(s):
        s = s.replace(' ', '')
    else:
        s = remove_articles(s)
        s = white_space_fix(s)
    return s

def compute_f1(prediction, ground_truth):
    if prediction is None:
        return 0.0
    norm_pred = normalize(prediction)
    norm_gt = normalize(ground_truth)
    if is_chinese(norm_pred) or is_chinese(norm_gt):
        pred_tokens = list(norm_pred)
        gt_tokens = list(norm_gt)
    else:
        pred_tokens = norm_pred.split()
        gt_tokens = norm_gt.split()
    common = set(pred_tokens) & set(gt_tokens)
    num_same = len(common)
    if num_same == 0:
        return 0.0
    precision = num_same / len(pred_tokens)
    recall = num_same / len(gt_tokens)
    f1 = 2 * precision * recall / (precision + recall)
    return f1

ARGS = {
    "prediction": "The quick brown fox jumps over the lazy dog",
    "ground_truth": "A quick brown fox jumps over a lazy dog"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_chinese Ran
ran on a synthesized input
liuziyu77/visual-rft/Visual-ARFT/evaluation_coding/evaluation_mat_coding_visual_arft.py
code served (permissive licence) · get_code("f00494929cf64608")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function is_chinese takes a single parameter 'text' which should be a string
# It checks if any character in the text falls within the Unicode range for Chinese characters
# ('一' to '鿿')

ARGS = {
    "text": "Hello世界中文test"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize Ran
ran on a synthesized input
liuziyu77/visual-rft/Visual-ARFT/evaluation_coding/evaluation_mat_coding_visual_arft.py
code served (permissive licence) · get_code("d5a66d0fddf03418")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
import string

def is_chinese(text):
    """判断文本是否含中文字符"""
    return any(('一' <= ch <= '鿿' for ch in text))

def normalize(s):

    def remove_articles(text):
        return re.sub('\\b(a|an|the)\\b', ' ', text)

    def white_space_fix(text):
        return ' '.join(text.split())

    def remove_punc(text):
        chinese_punc = '!?。"#$%&'()*+,-./:;<=>@[\]^_`{|}~""''、。:《》【】'
        exclude = set(string.punctuation + chinese_punc)
        return ''.join((ch for ch in text if ch not in exclude))

    def lower(text):
        return text.lower()
    s = lower(s)
    s = remove_punc(s)
    if is_chinese(s):
        s = s.replace(' ', '')
    else:
        s = remove_articles(s)
        s = white_space_fix(s)
    return s

ARGS = {
    "s": "The quick brown fox! 中文测试?"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
run Not yet run
unverified (harvested, no recorded run)
liuziyu77/visual-rft/Visual-ARFT/evaluation_search/traditional_benchmark/evaluation_2wikimultihopqa_ngpu_7b_df.py
code served (permissive licence) · get_code("f70e1c6af4fed281")
How it ran

no invocation recorded.

run Not yet run
unverified (harvested, no recorded run)
liuziyu77/visual-rft/Visual-ARFT/evaluation_search/traditional_benchmark/evaluation_bamboogle_ngpu_7b_df.py
code served (permissive licence) · get_code("8561e546fe19e7fd")
How it ran

no invocation recorded.

run Not yet run
unverified (harvested, no recorded run)
liuziyu77/visual-rft/Visual-ARFT/evaluation_search/traditional_benchmark/evaluation_hotpotqa_ngpu_7b_df.py
code served (permissive licence) · get_code("d4b612bdc7d79918")
How it ran

no invocation recorded.

run Not yet run
unverified (harvested, no recorded run)
liuziyu77/visual-rft/Visual-ARFT/evaluation_search/traditional_benchmark/evaluation_musique_ngpu_7b_df.py
code served (permissive licence) · get_code("2c10f311aa972748")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 7 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.

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-23.

Repositories linked to this paper

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

Abstract

Reinforcement Fine-Tuning (RFT) in Large Reasoning Models like OpenAI o1 learns from feedback on its answers, which is especially useful in applications when fine-tuning data is scarce. Recent open-source work like DeepSeek-R1 demonstrates that reinforcement learning with verifiable reward is possibly one key direction in reproducing o1. While the R1-style model has demonstrated success in language models, its application in multi-modal domains remains under-explored. This work introduces Visual Reinforcement Fine-Tuning (Visual-RFT), which further extends the application areas of RFT on visual tasks. Specifically, Visual-RFT first uses Large Vision-Language Models (LVLMs) to generate multiple responses containing reasoning tokens and final answers for each input, and then uses our proposed visual perception verifiable reward functions to update the model via the policy optimization algorithm such as Group Relative Policy Optimization (GRPO). We design different verifiable reward functions for different perception tasks, such as the Intersection over Union (IoU) reward for object detection. Experimental results on fine-grained image classification, few-shot object detection, reasoning grounding, as well as open-vocabulary object detection benchmarks show the competitive performance and advanced generalization ability of Visual-RFT compared with Supervised Fine-tuning (SFT). For example, Visual-RFT improves accuracy by 24.3% over the baseline in one-shot fine-grained image classification with around 100 samples. In few-shot object detection, Visual-RFT also exceeds the baseline by 21.0 on COCO's 4-shot setting and 15.4 on LVIS. Our Visual-RFT represents a paradigm shift in fine-tuning LVLMs, offering a data-efficient, rewarddriven approach that enhances reasoning and adaptability for domain-specific tasks.

For agents

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

get_harvested_code_for_paper("2503.01785")
get_code_for_paper("2503.01785")
have("2503.01785")

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

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

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

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

Connect an agent — have() is free.