SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.06310 · 2026

RRC: Unlocking Generative Reward Models in LLM Reinforcement Learning via Ranking-Based Reward Construction

Chenglong Wang, Tong Xiao, Bei Li, Jingbo Zhu, Yan Ding, Yifu Huo, Qiaozhi He, Tongran Liu, Zhengtao Yu, Tianhua Zhou, Xiaoyang Hao, Yuxin Gao, and 2 more

arXiv · PDF

Code that ran

7 of 12 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 5 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/2608.06310.json · badge: /api/ran/2608.06310.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
allenai/WildBench canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
modelscope/evalscope canonical (classifier label)
classifier basis: census
2 ran · 2 no recorded run
wangclnlp/RRC canonical (classifier label)
classifier basis: census
0 ran · 1 no recorded run
FunctionStatusWhere it lives
build_benchmark_identity Ran
ran; our contract draft was wrong, not the code
modelscope/evalscope/evalscope/evaluation_versioning.py
code served (permissive licence) · get_code("9d82306068eefa68")
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 BenchmarkEvaluationIdentity. 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 torch.nn as nn
from typing import Dict, Any, Optional

# Define a minimal TaskConfig stand-in class
class TaskConfig:
    def __init__(self):
        self.model = "test-model"
        self.model_id = "model-123"
        self.model_args = {"param1": "value1"}
        self.model_task = "generation"
        self.chat_template = None
        self.generation_config = {"max_length": 100}
        self.eval_type = "benchmark"
        self.api_url = "http://example.com"
        self.limit = None
        self.repeats = 1
        self.seed = 42
        self.judge = None
        self.sandbox = None
        self.agent_config = None
    
    def to_dict(self) -> Dict[str, Any]:
        return {
            'model': self.model,
            'model_id': self.model_id,
            'model_args': self.model_args,
            'model_task': self.model_task,
            'chat_template': self.chat_template,
            'generation_config': self.generation_config,
            'eval_type': self.eval_type,
            'api_url': self.api_url,
            'limit': self.limit,
            'repeats': self.repeats,
            'seed': self.seed,
            'judge': self.judge,
            'sandbox': self.sandbox,
            'agent_config': self.agent_config,
        }

# Import the necessary classes from the function definition
from pydantic import BaseModel, Field

# Reconstruct the ResolvedBenchmarkSpec class (simplified for setup)
class ResolvedBenchmarkSpec(BaseModel):
    name: str
    dataset_id: str
    dataset_hub: Optional[str] = None
    dataset_revision: Optional[str] = None
    eval_split: Optional[str] = None
    train_split: Optional[str] = None
    subset_list: list = Field(default_factory=list)
    default_subset: str = 'default'
    prompt_template: Optional[str] = None
    few_shot_prompt_template: Optional[str] = None
    system_prompt: Optional[str] = None
    query_template: Optional[str] = None
    few_shot_num: int = 0
    few_shot_random: bool = False
    metric_list: list = Field(default_factory=list)
    aggregation: str = 'mean'
    primary_metric: Optional[Any] = None
    filters: Optional[Dict[str, Any]] = None
    shuffle: bool = False
    shuffle_choices: bool = False
    max_image_bytes: Optional[Any] = None
    extra_params: Dict[str, Any] = Field(default_factory=dict)
    sandbox_config: Optional[Dict[str, Any]] = None

# Create instances for the arguments
spec = ResolvedBenchmarkSpec(
    name="test-benchmark",
    dataset_id="dataset-123",
    dataset_hub="huggingface",
    dataset_revision="main",
    eval_split="test",
    train_split="train",
    subset_list=["subset1", "subset2"],
    default_subset="default",
    prompt_template="Prompt: {text}",
    few_shot_prompt_template="Few shot: {examples}",
    system_prompt="System prompt",
    query_template="Query: {q}",
    few_shot_num=3,
    few_shot_random=False,
    metric_list=["accuracy", "f1"],
    aggregation="mean",
    primary_metric={"name": "accuracy"},
    filters={"filter_key": "filter_value"},
    shuffle=False,
    shuffle_choices=False,
    max_image_bytes=1000000,
    extra_params={"extra": "param"},
    sandbox_config={"sandbox": "enabled"}
)

evaluation_version = "v1.0"

task_config = TaskConfig()

ARGS = {
    'spec': spec,
    'evaluation_version': evaluation_version,
    'task_config': task_config,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pydantic, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BenchmarkEvaluationIdentity — a BenchmarkEvaluationIdentity output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a BenchmarkEvaluationIdentity 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
clear_output Ran
ran; our contract draft was wrong, not the code
allenai/WildBench/src/unified_utils.py
code served (permissive licence) · get_code("bab78e56b3db5391")
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 torch

torch.manual_seed(0)

ARGS = {
    "output": "This is a sample text with <|endoftext|> and </s> and <pad> and <end_of_turn> tokens that need clearing.",
    "model_name": "gpt2"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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
compute_single_round Ran
ran; our contract draft was wrong, not the code
allenai/WildBench/leaderboard/wb_elo.py
code served (permissive licence) · get_code("f835da725b875459")
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 json
import random
from collections import defaultdict

# Create a minimal votes list with the required structure
votes = [
    {
        'model_1': 'gpt-4',
        'model_2': 'claude-3',
        'winner': 'gpt-4',
        'length_1': 150,
        'length_2': 120
    },
    {
        'model_1': 'llama-2',
        'model_2': 'gpt-4',
        'winner': 'tie',
        'length_1': 200,
        'length_2': 195
    },
    {
        'model_1': 'claude-3',
        'model_2': 'llama-2',
        'winner': 'claude-3',
        'length_1': 100,
        'length_2': 180
    },
]

# Create initial elos dict
init_elos = {
    'gpt-4': 1200,
    'claude-3': 1100,
}

ARGS = {
    'votes': votes,
    'K': 32,
    'init_elos': init_elos,
    'dynamic': True,
    'interval': 10,
    'use_regressed_as_init': False,
    'length_margin': -1,
}
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 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
formatter Ran
ran, honoured the contract we drafted
allenai/WildBench/leaderboard/data_utils.py
code served (permissive licence) · get_code("e6e6e2172255fa63")
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 torch

torch.manual_seed(0)

ARGS = {
    "x": 3.14159
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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
get_all_votes Ran
ran, honoured the contract we drafted
allenai/WildBench/leaderboard/wb_elo.py
code served (permissive licence) · get_code("ad6c9f4f8fa20c1c")
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 torch
import numpy as np

torch.manual_seed(0)

# Set up global state that the function uses
all_scores_by_id_model = {
    'session_1': {
        'model_a': 8.5,
        'model_b': 6.2,
        'model_c': 7.1,
    },
    'session_2': {
        'model_a': 9.0,
        'model_b': 8.5,
    }
}

all_outputs_by_id_model = {
    'session_1': {
        'model_a': 'This is a valid output from model a',
        'model_b': 'This is model b output',
        'model_c': 'Model c generated this response',
    },
    'session_2': {
        'model_a': 'Another output from model a with more content here',
        'model_b': 'Model b response text',
    }
}

ARGS = {
    'margin': 2,
    'tie_margin': 1,
}
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 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
sanitize_args Ran
ran; our contract draft was wrong, not the code
allenai/WildBench/src/unified_infer.py
code served (permissive licence) · get_code("8526e7d6eb6a6bd3")
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 Args. 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 argparse

# Create a simple namespace object to act as args
class Args:
    def __init__(self):
        self.download_dir = 'default'

args = Args()

ARGS = {
    'args': args
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Args — a Args output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Args 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
validate_evaluation_version Ran
ran; our contract draft was wrong, not the code
modelscope/evalscope/evalscope/evaluation_versioning.py
code served (permissive licence) · get_code("401fa909009f7b31")
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

_VERSION_RE = re.compile('^v\\d+\\.\\d+$')

def validate_evaluation_version(value: str) -> str:
    """Validate the public benchmark evaluation version."""
    if not _VERSION_RE.fullmatch(value):
        raise ValueError("evaluation_version must use the format 'v<major>.<minor>'")
    return value

ARGS = {
    "value": "v1.0"
}
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
batched_generate Not yet run
unverified (harvested, no recorded run)
modelscope/evalscope/evalscope/models/modelscope.py
code served (permissive licence) · get_code("1738f445bff6ae7e")
How it ran

no invocation recorded.

cache_source_for_identity Not yet run
unverified (harvested, no recorded run)
modelscope/evalscope/evalscope/evaluation_versioning.py
code served (permissive licence) · get_code("c5d322c6c1fb6a44")
How it ran

no invocation recorded.

compute_elo_based_on_votes Not yet run
unverified (harvested, no recorded run)
allenai/WildBench/leaderboard/wb_elo.py
code served (permissive licence) · get_code("55f88619b89a0830")
How it ran

no invocation recorded.

get_conv_template Not yet run
unverified (harvested, no recorded run)
allenai/WildBench/src/fastchat_conversation.py
code served (permissive licence) · get_code("2e17447aecaa3b2e")
How it ran

no invocation recorded.

get_model_arch Not yet run
unverified (harvested, no recorded run)
wangclnlp/RRC/swift/model/model_arch.py
pointer only (licence: NONE) · get_code("69fcbd7a2339f821")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wangclnlp/RRC 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 1 the same month, 0 later) and 4 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
get_conv_template 69 other papers
67 dated earlier, 1 the same month, 1 undated
1911.03705 (2019-11)
CommonGen: A Constrained Text Generation Challenge for Generative Commonsense Reasoning
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2204.07705 (2022-04)
SUPER-NATURALINSTRUCTIONS: Generalization via Declarative Instructions on 1600+ NLP Tasks
and 66 more not named here
get_model_arch 3 other papers
3 dated earlier
2408.05517 (2024-08)
SWIFT:A Scalable lightWeight Infrastructure for Fine-Tuning
2506.14674 (2025-06)
Recognition through Reasoning: Reinforcing Image Geo-localization with Large Vision-Language Models
2604.00493 (2026-04)
A Reasoning-Enabled Vision-Language Foundation Model for Chest X-ray Interpretation
sanitize_args 3 other papers
3 dated earlier
2406.04127 (2024-06)
Are We Done with MMLU?
2406.04770 (2024-06)
WildBench: Benchmarking LLMs with Challenging Tasks from Real Users in the Wild
2408.14774 (2024-08)
Instruct-SkillMix: A Powerful Pipeline for LLM Instruction Tuning
clear_output 1 other paper
1 dated earlier
2406.04770 (2024-06)
WildBench: Benchmarking LLMs with Challenging Tasks from Real Users in the Wild
compute_elo_based_on_votes 1 other paper
1 dated earlier
2406.04770 (2024-06)
WildBench: Benchmarking LLMs with Challenging Tasks from Real Users in the Wild
compute_single_round 1 other paper
1 dated earlier
2406.04770 (2024-06)
WildBench: Benchmarking LLMs with Challenging Tasks from Real Users in the Wild
formatter 1 other paper
1 dated earlier
2406.04770 (2024-06)
WildBench: Benchmarking LLMs with Challenging Tasks from Real Users in the Wild
get_all_votes 1 other paper
1 dated earlier
2406.04770 (2024-06)
WildBench: Benchmarking LLMs with Challenging Tasks from Real Users in the Wild

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

Recent advances in reward modeling show a paradigm shift from discriminative reward models to generative reward models. However, despite their strong capabilities in response ranking, generative reward models have not realized their potential in reinforcement learning (RL). Our analysis reveals that this limitation arises from a mismatch between the comparative nature of generative reward modeling and the scalar scoring paradigm adopted by existing RL algorithms. To bridge this gap, we propose a Ranking-based Reward Construction (RRC) approach, which enables generative reward models to provide more effective RL learning signals by deriving rewards from relative preference rankings. RRC introduces two complementary strategies: self-competitive ranking, which exploits comparisons among sampled responses, and anchor-guided ranking, which enables scalable ranking-based reward construction with a small set of reference responses. Experiments across open-ended chat and reasoning benchmarks demonstrate that RRC substantially improves RL training with generative reward models, achieving consistent gains over existing reward construction approaches (e.g., 35.8%→41.3% on AlpacaEval2 and 8.0%→11.2% on ArenaHardV2). Our code can be found at https://github.com/wangclnlp/RRC.

For agents

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

get_harvested_code_for_paper("2608.06310")
get_code_for_paper("2608.06310")
have("2608.06310")

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

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

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

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

Connect an agent — have() is free.