SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.12434 · NeurIPS · 2025

VIDEORFT: Incentivizing Video Reasoning Capability in MLLMs via Reinforced Fine-Tuning

Ye Yuan, Qi Wang, Tianfei Zhou, Yanrui Yu, Rui Mao

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 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; 4 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 2 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/2505.12434.json · badge: /api/ran/2505.12434.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
qiwang98/videorft canonical (classifier label)
classifier basis not recorded on the link
6 ran · 2 no recorded run
FunctionStatusWhere it lives
accuracy_reward Ran
ran on a synthesized input
qiwang98/videorft/src/r1-v/src/open_r1/grpo.py
code served (permissive licence) · get_code("d5ae7b1b53efaacf")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 os
import re
from datetime import datetime
from rouge_score import rouge_scorer

# Setup
ARGS = {
    'completions': [
        [{'content': 'The answer is <answer>A</answer>'}],
        [{'content': 'The result is <answer>42</answer>'}],
    ],
    'solution': [
        '<answer>A</answer>',
        '<answer>42</answer>',
    ],
    'problem_type': ['multiple choice'],
}

# Test with different problem types
ARGS_NUMERICAL = {
    'completions': [
        [{'content': 'The answer is <answer>3.14</answer>'}],
        [{'content': 'The answer is <answer>100</answer>'}],
    ],
    'solution': [
        '<answer>3.14</answer>',
        '<answer>100</answer>',
    ],
    'problem_type': ['numerical'],
}

ARGS_OCR = {
    'completions': [
        [{'content': 'Extracted text: <answer>hello world</answer>'}],
        [{'content': 'Extracted text: <answer>foo bar baz</answer>'}],
    ],
    'solution': [
        '<answer>hello world</answer>',
        '<answer>foo bar baz</answer>',
    ],
    'problem_type': ['OCR'],
}

ARGS_FREEFORM = {
    'completions': [
        [{'content': 'The summary is <answer>This is a great summary of the text about natural language processing</answer>'}],
        [{'content': 'The summary is <answer>This is a good summary about machine learning</answer>'}],
    ],
    'solution': [
        '<answer>This is a great summary of the text about natural language processing</answer>',
        '<answer>This is a good summary about machine learning</answer>',
    ],
    'problem_type': ['free-form'],
}

ARGS_REGRESSION = {
    'completions': [
        [{'content': 'The predicted value is <answer>9.8</answer>'}],
        [{'content': 'The predicted value is <answer>2.1</answer>'}],
    ],
    'solution': [
        '<answer>10.0</answer>',
        '<answer>2.0</answer>',
    ],
    'problem_type': ['regression'],
}

ARGS = ARGS_NUMERICAL
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
rouge_score — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
ceil_by_factor Ran
ran, honoured the contract we drafted
qiwang98/videorft/src/qwen-vl-utils/src/qwen_vl_utils/vision_process.py
code served (permissive licence) · get_code("6e45201fa27cb24a")
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 int, ndim 0, dtype family int, 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 math

def ceil_by_factor(number: int, factor: int) -> int:
    """Returns the smallest integer greater than or equal to 'number' that is divisible by 'factor'."""
    return math.ceil(number / factor) * factor

ARGS = {
    "number": 10,
    "factor": 3
}
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 int, ndim 0, dtype family int, 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
floor_by_factor Ran
ran, honoured the contract we drafted
qiwang98/videorft/src/qwen-vl-utils/src/qwen_vl_utils/vision_process.py
code served (permissive licence) · get_code("8155263d7ff19bb3")
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 int, ndim 0, dtype family int, 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 math

ARGS = {
    "number": 17,
    "factor": 5,
}
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 int, ndim 0, dtype family int, 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
format_reward Ran
ran, honoured the contract we drafted
qiwang98/videorft/src/r1-v/src/open_r1/grpo.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zywang0104/Video-KTR, is pointer only (licence: NONE) · get_code("26720b6f9ee7eba4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from zywang0104/Video-KTR, and GitHub detected no licence in that repository 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_dataset Ran
ran on a synthesized input
qiwang98/videorft/src/r1-v/src/open_r1/sft_video.py
code served (permissive licence) · get_code("40640dbb4bed6b2c")
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 dict. 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 torch
import numpy as np

torch.manual_seed(0)

# Construct a valid example dictionary for prepare_dataset
example = {
    'problem': 'What is 2 + 2?',
    'data_type': 'image',
    'path': '/home/user/data/sample_image.jpg',
    'problem_type': 'numerical',
    'process': 'Let me think about this basic arithmetic problem. 2 + 2 means adding two and two together.',
    'solution': '4'
}

ARGS = {
    'example': example
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
round_by_factor Ran
ran, honoured the contract we drafted
qiwang98/videorft/src/qwen-vl-utils/src/qwen_vl_utils/vision_process.py
code served (permissive licence) · get_code("e252767324188623")
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 int, ndim 0, dtype family int, 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

# Analyze the function:
# round_by_factor(number: int, factor: int) -> int
# The function takes two integers and returns an integer.
# It divides number by factor, rounds to nearest integer, then multiplies by factor.

# Set up arguments
number_arg = 17
factor_arg = 5

ARGS = {
    "number": number_arg,
    "factor": factor_arg,
}
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 int, ndim 0, dtype family int, 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
download_video Not yet run
unverified (harvested, no recorded run)
qiwang98/videorft/src/r1-v/src/open_r1/sft_video.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zywang0104/Video-KTR, is pointer only (licence: NONE) · get_code("9de1d57aec154c7d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from zywang0104/Video-KTR, and GitHub detected no licence in that repository 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.

patched_load Not yet run
unverified (harvested, no recorded run)
qiwang98/videorft/src/r1-v/src/open_r1/grpo.py
code served (permissive licence) · get_code("82c65ef0ec85e093")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 5 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 3 the same month, 5 later) and 3 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
round_by_factor 25 other papers
7 dated earlier, 3 the same month, 12 later, 2 same year, order not determinable, 1 undated
2409.12191 (2024-09)
Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution
2410.11623 (2024-10)
VidEgoThink: Assessing Egocentric Video Understanding Capabilities for Embodied AI
2412.01720 (2024-12)
LamRA: Large Multimodal Model as Your Advanced Retrieval Assistant
and 22 more not named here
ceil_by_factor 23 other papers
7 dated earlier, 1 the same month, 12 later, 2 same year, order not determinable, 1 undated
2409.12191 (2024-09)
Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution
2410.11623 (2024-10)
VidEgoThink: Assessing Egocentric Video Understanding Capabilities for Embodied AI
2412.01720 (2024-12)
LamRA: Large Multimodal Model as Your Advanced Retrieval Assistant
and 20 more not named here
floor_by_factor 23 other papers
7 dated earlier, 1 the same month, 12 later, 2 same year, order not determinable, 1 undated
2409.12191 (2024-09)
Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution
2410.11623 (2024-10)
VidEgoThink: Assessing Egocentric Video Understanding Capabilities for Embodied AI
2412.01720 (2024-12)
LamRA: Large Multimodal Model as Your Advanced Retrieval Assistant
and 20 more not named here
format_reward 3 other papers
1 dated earlier, 2 later
2503.13377 (2025-03)
Time-R1: Post-Training Large Vision Language Model for Temporal Video Grounding
2510.23569 (2025-10)
EgoThinker: Unveiling Egocentric Reasoning with Spatio-Temporal CoT
2601.19686 (2026-01)
2 RELATED WORK Reinforcement learning has emerged as a powerful paradigm for enhancing the reasoning abilities of LLMs
download_video 1 other paper
1 later
2601.19686 (2026-01)
2 RELATED WORK Reinforcement learning has emerged as a powerful paradigm for enhancing the reasoning abilities of LLMs

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) has shown great promise in achieving humanlevel reasoning capabilities of Large Language Models (LLMs), and has recently been extended to MLLMs. Nevertheless, reasoning about videos, which is a fundamental aspect of human intelligence, remains a persistent challenge due to the complex logic, temporal and causal structures inherent in video data. To fill this gap, we propose VIDEORFT, a novel approach that extends the RFT paradigm to cultivate human-like video reasoning capabilities in MLLMs. VIDEORFT follows the standard two-stage scheme in RFT: supervised fine-tuning (SFT) with chain-of-thought (CoT) annotations, followed by reinforcement learning (RL) to improve generalization. A central challenge to achieve this in the video domain lies in the scarcity of large-scale, high-quality video CoT datasets. We address this by building a multi-expert-driven, cognition-inspired CoT curation pipeline. First, we devise a cognition-inspired prompting strategy to elicit a reasoning LLM to generate preliminary CoTs based solely on rich, structured, and literal representations of video content. Subsequently, these CoTs are revised by a MLLM conditioned on the actual video, ensuring visual consistency and reducing visual hallucinations. This pipeline results in two new datasets, i.e.VideoRFT-CoT-102K for SFT and VideoRFT-RL-310K for RL. To further strengthen the RL phase, we introduce a novel semantic-consistency reward that explicitly promotes the alignment between textual reasoning and visual evidence. This reward encourages the model to produce coherent, context-aware reasoning outputs grounded in visual input. Extensive experiments show that VIDEORFT achieves state-of-the-art performance on six video reasoning benchmarks.

For agents

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

get_harvested_code_for_paper("2505.12434")
get_code_for_paper("2505.12434")
have("2505.12434")

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

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

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

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

Connect an agent — have() is free.