SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2511.10648 · NeurIPS · 2025

Enhancing the Outcome Reward-based RL Training of MLLMs with Self-Consistency Sampling

Wengang Zhou, Houqiang Li, Lewei Lu, Jiahao Wang, Jinguo Zhu, Weiye Xu, Aijun Yang, Xiaohua Wang

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 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 1 has no contract verdict; 8 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2511.10648.json · badge: /api/ran/2511.10648.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
GenuineWWD/SCS canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
build_transform Ran
ran; our contract draft was wrong, not the code
GenuineWWD/SCS/evaluation/eval_internvl_m3cot.py
code served (permissive licence) · get_code("57e95166ade5f25c")
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 Compose. 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 torchvision.transforms as T
from torchvision.transforms.functional import InterpolationMode
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Create a small test image to verify the transform works
test_image_array = np.random.randint(0, 256, (64, 64, 3), dtype=np.uint8)
test_image = Image.fromarray(test_image_array, mode='RGB')

ARGS = {
    'input_size': 224
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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
build_transform Ran
ran; our contract draft was wrong, not the code
GenuineWWD/SCS/evaluation/eval_internvl_mathverse.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from YiyiyiZhao/VIABLE, is pointer only (licence: NONE) · get_code("f0e0c861b89dbe01")
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 YiyiyiZhao/VIABLE, 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.

collate_fn Ran
ran on a synthesized input
GenuineWWD/SCS/evaluation/eval_qwen_m3cot.py
code served (permissive licence) · get_code("66307ccd5a78a143")
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.

from PIL import Image
import io
import numpy as np

# Create a minimal image as bytes
def create_image_bytes():
    img = Image.new('RGB', (10, 10), color='red')
    img_bytes = io.BytesIO()
    img.save(img_bytes, format='PNG')
    return img_bytes.getvalue()

# Create sample batch examples
example1 = {
    'lecture': 'Lecture about physics: ',
    'question': 'What is gravity?',
    'context': 'Gravity is a fundamental force.',
    'choices': ['A force that attracts', 'A type of energy', 'A wave', 'A particle'],
    'image': {'bytes': create_image_bytes()},
    'answer': 0
}

example2 = {
    'lecture': 'Lecture about biology: ',
    'question': 'What is photosynthesis?',
    'context': 'Photosynthesis is a biological process.',
    'choices': ['Making food from light', 'Breaking down glucose', 'Storing energy', 'Breathing process'],
    'image': None,
    'answer': 2
}

example3 = {
    'lecture': 'Lecture about chemistry: ',
    'question': 'What is an atom?',
    'context': 'An atom is the basic unit.',
    'choices': ['Smallest unit of matter', 'A type of molecule', 'A subatomic particle', 'A chemical bond'],
    'image': {'bytes': create_image_bytes()},
    'answer': 5
}

batch = [example1, example2, example3]

ARGS = {
    'batch': batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — 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
collate_fn Ran
ran; our contract draft was wrong, not the code
GenuineWWD/SCS/evaluation/eval_qwen_mathverse.py
code served (permissive licence) · get_code("1dcd2f9d386042a6")
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
from PIL import Image
import io

# Create small PIL images for testing
def create_test_image():
    # Create a small 4x3 RGB image
    img = Image.new('RGB', (4, 3), color=(255, 0, 0))
    return img

# Create batch examples
batch = [
    {
        'question': 'What is this?',
        'context': 'This is a test context.',
        'image': create_test_image(),
        'answer': '  cat  '
    },
    {
        'question': 'What color is it?',
        'image': create_test_image(),
        'answer': 'red'
    }
]

ARGS = {
    'batch': batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, 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
collate_fn Ran
ran; our contract draft was wrong, not the code
GenuineWWD/SCS/evaluation/eval_qwen_mmmu.py
code served (permissive licence) · get_code("2987642d3528ecb0")
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.

from PIL import Image
import io
import numpy as np

# Create small PIL images for testing
def create_test_image():
    """Create a small RGB PIL image"""
    img_array = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
    return Image.fromarray(img_array, 'RGB')

# Create test batch data
batch = [
    {
        'question': 'What is this?',
        'options': "['A', 'B', 'C', 'D']",
        'answer': 'a',
        'image_1': create_test_image(),
        'image_2': create_test_image(),
    },
    {
        'question': 'Which one?',
        'options': ['Option1', 'Option2', 'Option3'],
        'answer': 'B',
        'image': create_test_image(),
    },
]

ARGS = {
    'batch': batch,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — 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
collate_fn Ran
ran; our contract draft was wrong, not the code
GenuineWWD/SCS/evaluation/eval_qwen_wemath.py
code served (permissive licence) · get_code("2a6087e29d42d61d")
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
from PIL import Image
import io

# Create a small in-memory image
def create_dummy_image():
    """Create a simple PIL Image in memory"""
    img_array = np.random.randint(0, 256, (32, 32, 3), dtype=np.uint8)
    return Image.fromarray(img_array, mode='RGB')

# Create example batch items
batch_item_1 = {
    'question': 'What is 2+2?',
    'context': 'Basic arithmetic',
    'option': 'A) 4, B) 5, C) 3',
    'image_path': None,  # Will be handled as None in the function
    'answer': '  a  '
}

batch_item_2 = {
    'question': 'What is the capital of France?',
    'context': 'Geography',
    'option': 'A) London, B) Paris, C) Berlin',
    'image_path': None,
    'answer': 'b'
}

batch_item_3 = {
    'question': 'What color is the sky?',
    # 'context' is missing, will use get() default ''
    'option': 'A) Blue, B) Green',
    'image_path': None,
    'answer': ' A '
}

# Create the batch
batch = [batch_item_1, batch_item_2, batch_item_3]

ARGS = {
    'batch': batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, 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
dynamic_preprocess Ran
ran; our contract draft was wrong, not the code
GenuineWWD/SCS/evaluation/eval_internvl_m3cot.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from jam-cc/MMAD, is pointer only (licence: NONE) · get_code("6dc77bb22fb9d660")
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 jam-cc/MMAD, 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.

dynamic_preprocess Ran
ran; our contract draft was wrong, not the code
GenuineWWD/SCS/evaluation/eval_internvl_mathverse.py
code served (permissive licence) · get_code("23c7844d4646bf83")
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 4, dtype family int; 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.

from PIL import Image
import numpy as np

# Create a simple test image using PIL
# The function expects an image object with .size attribute and .resize(), .crop() methods
img_array = np.random.randint(0, 256, (480, 640, 3), dtype=np.uint8)
test_image = Image.fromarray(img_array)

ARGS = {
    "image": test_image,
    "min_num": 1,
    "max_num": 12,
    "image_size": 448,
    "use_thumbnail": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 4, dtype family int — 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
find_closest_aspect_ratio Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
GenuineWWD/SCS/evaluation/eval_internvl_m3cot.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from OpenGVLab/MM-NIAH, is pointer only (licence: NONE) · get_code("bd77f5f8067f18e9")
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 OpenGVLab/MM-NIAH, 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.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 4 later) and 5 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
find_closest_aspect_ratio 43 other papers
34 dated earlier, 5 later, 4 same year, order not determinable
1910.01108 (2019-10)
DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter
2312.13271 (2023-12)
Repaint123: Fast and High-quality One Image to 3D Generation with Progressive Controllable 2D Repainting
2403.15952 (2024-03)
IllusionVQA: A Challenging Optical Illusion Dataset for Vision Language Models
and 40 more not named here
build_transform 31 other papers
25 dated earlier, 2 later, 4 same year, order not determinable
1910.01108 (2019-10)
DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter
2312.13271 (2023-12)
Repaint123: Fast and High-quality One Image to 3D Generation with Progressive Controllable 2D Repainting
2403.15952 (2024-03)
IllusionVQA: A Challenging Optical Illusion Dataset for Vision Language Models
and 28 more not named here
dynamic_preprocess 17 other papers
13 dated earlier, 1 later, 3 same year, order not determinable
1910.01108 (2019-10)
DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter
2403.15952 (2024-03)
IllusionVQA: A Challenging Optical Illusion Dataset for Vision Language Models
2410.01733 (2024-10)
ASCIIEval: Benchmarking Models' Visual Perception in Text Strings via ASCII Art
and 14 more not named here
build_transform 2 other papers
1 dated earlier, 1 later
2505.24787 (2025-05)
Draw ALL Your Imagine: A Holistic Benchmark and Agent Framework for Complex Instruction-based Image Generation
2605.31351 (2026-05)
VIABLE: A Visually Impaired Assistance Benchmark for VLM-as-a-Judge Evaluation

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

Outcome-reward reinforcement learning (RL) is a common-and increasingly significant-way to refine the step-by-step reasoning of multimodal large language models (MLLMs). In the multiple-choice setting-a dominant format for multimodal reasoning benchmarks-the paradigm faces a significant yet often overlooked obstacle: unfaithful trajectories that guess the correct option after a faulty chain of thought receive the same reward as genuine reasoning, which is a flaw that cannot be ignored. We propose Self-Consistency Sampling (SCS) to correct this issue. For each question, SCS (i) introduces small visual perturbations and (ii) performs repeated truncation-and-resampling of an initial trajectory; agreement among the resulting trajectories yields a differentiable consistency score that down-weights unreliable traces during policy updates. Based on Qwen2.5-VL-7B-Instruct, plugging SCS into RLOO, GRPO, and REINFORCE++ series improves accuracy by up to 7.7 percentage points on six multimodal benchmarks with negligible extra computation. SCS also yields notable gains on both Qwen2.5-VL-3B-Instruct and InternVL3-8B, offering a simple, general remedy for outcome-reward RL in MLLMs. Our code is available at https://github.com/GenuineWWD/SCS.

For agents

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

get_harvested_code_for_paper("2511.10648")
get_code_for_paper("2511.10648")
have("2511.10648")

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

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

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

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

Connect an agent — have() is free.