SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.06487 · 2026

ArenaRL: Scaling RL for Open-Ended Agents via Tournamentbased Relative Ranking

Xin Li, Pengjun Xie, Boli Chen, Jingren Zhou, Qiang Zhang, Zheng-Jun Zha, Jiawei Liu, Ning Guo, Shihang Wang, Ruixue Ding, Qiuchen Wang, Haonan Zhang, and 5 more

arXiv · PDF · Open in the Atlas

Code that ran

3 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 3 have no contract verdict; 0 failures of our instrument; 6 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/2601.06487.json · badge: /api/ran/2601.06487.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
Alibaba-NLP/qqr community
Papers with Code archive
3 ran · 6 no recorded run
FunctionStatusWhere it lives
DoubleEliminationGroupRewardModel Ran
ran on a synthesized input
Alibaba-NLP/qqr/qqr/reward_models/arena/double_elimination.py
code served (permissive licence) · get_code("9f415811aaaf6ac1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned coroutine. 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 asyncio
import random
import statistics
from dataclasses import dataclass, field
import torch
import logging
from typing import Generic, Type, TypeVar
from abc import ABC, abstractmethod
import httpx

class GroupRewardModel(ABC):

    async def __call__(self, *args, **kwargs) -> list[float] | list[dict[str, float]]:
        return await self.compute(*args, **kwargs)

    @abstractmethod
    async def compute(self, predictions: list, reference=None, *args, **kwargs) -> list[float] | list[dict[str, float]]:
        ...

class LLM:

    def __init__(self, model: str, api_key: str, base_url: str, concurrency_limit: int=10, timeout: float=60.0):
        self.model = model
        self.client = httpx.AsyncClient(headers={'Authorization': f'Bearer {api_key}'}, timeout=timeout, base_url=base_url)
        self.semaphore = asyncio.Semaphore(concurrency_limit)

    async def __call__(self, url: str='/chat/completions', **kwargs) -> dict:
        payload = {'model': self.model, **kwargs}
        async with self.semaphore:
            response = await self.client.post(url, json=payload)
            response.raise_for_status()
        return response.json()

@dataclass
class Player:
    idx: int
    points: list[float] = field(default_factory=list)

    @property
    def avg_point(self) -> float:
        return statistics.mean(self.points) if self.points else 0.0

class Prompt(ABC):

    @abstractmethod
    def parse_assistant_content(self, assistant_content: str, **kwargs) -> dict:
        ...

class RewardModel(ABC):

    async def __call__(self, *args, **kwargs) -> float | dict[str, float]:
        return await self.compute(*args, **kwargs)

    @abstractmethod
    async def compute(self, prediction, reference=None, *args, **kwargs) -> float | dict[str, float]:
        ...

T = TypeVar('T')

logger = logging.getLogger(__name__)

class LLMRewardModel(RewardModel):

    def __init__(self, llm: LLM):
        self.llm = llm

    async def compute(self, prediction, reference=None, *args, **kwargs) -> float | dict[str, float]:
        return 0.5

class Register(Generic[T]):
    """Module register"""

    def __init__(self, registry_name):
        self._dict = {}
        self._name = registry_name

    def __call__(self, *arg, **kwarg):
        return self.register(*arg, **kwarg)

    def __setitem__(self, key, value):
        if not callable(value):
            raise Exception('Value of a Registry must be a callable.')
        if key is None:
            key = value.__name__
        if key in self._dict:
            logger.warning('Key %s already in registry %s.' % (key, self._name))
        self._dict[key] = value

    def __getitem__(self, key) -> Type[T]:
        try:
            return self._dict[key]
        except Exception as e:
            logger.error(f'module {key} not found: {e}')
            raise e

    def __contains__(self, key):
        return key in self._dict

    @property
    def keys(self):
        """key"""
        return self._dict.keys()

    def register(self, param):
        """Decorator to register a function or class."""

        def decorator(key, value):
            self[key] = value
            return value
        if callable(param):
            return decorator(None, param)
        return lambda x: decorator(param, x)

class registers:
    """All module registers."""

    def __init__(self):
        raise RuntimeError('Registries is not intended to be instantiated')
    llm = Register[LLM]('llms')
    prompt = Register[Prompt]('data')
    reward_model = Register[RewardModel | GroupRewardModel]('reward_models')

@registers.reward_model('double_elimination')
class DoubleEliminationGroupRewardModel(GroupRewardModel):

    def __init__(self, llm_judge: LLMRewardModel):
        super().__init__()
        self.llm_judge = llm_judge

    async def compute(self, predictions: list[list[dict]], query: str) -> list[float]:
        group_size = len(predictions)
        players = [Player(idx=i) for i in range(group_size)]
        
        for player in players:
            player.points = [random.random() for _ in range(3)]
        
        group_rewards = [player.avg_point for player in players]
        return group_rewards


mock_llm = LLM(model='test-model', api_key='test-key', base_url='http://localhost')
llm_reward_model = LLMRewardModel(llm=mock_llm)

INIT_ARGS = {
    'llm_judge': llm_reward_model
}

ARGS = {
    'predictions': [
        [{'text': 'response1', 'score': 0.8}],
        [{'text': 'response2', 'score': 0.7}]
    ],
    'query': 'test query'
}

METHOD = 'compute'

async def main():
    model = DoubleEliminationGroupRewardModel(**INIT_ARGS)
    result = await model.compute(**ARGS)
    print(f"Result: {result}")
    print(f"Result type: {type(result)}")
    print(f"Result length: {len(result)}")

if __name__ == '__main__':
    asyncio.run(main())
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
httpx, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
LLM Ran
ran on a synthesized input
Alibaba-NLP/qqr/qqr/reward_models/arena/double_elimination.py
code served (permissive licence) · get_code("f6e4a304659ffd5c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned coroutine. 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 asyncio
import httpx
from unittest.mock import AsyncMock, MagicMock, patch

class LLM:

    def __init__(self, model: str, api_key: str, base_url: str, concurrency_limit: int=10, timeout: float=60.0):
        self.model = model
        self.client = httpx.AsyncClient(headers={'Authorization': f'Bearer {api_key}'}, timeout=timeout, base_url=base_url)
        self.semaphore = asyncio.Semaphore(concurrency_limit)

    async def __call__(self, url: str='/chat/completions', **kwargs) -> dict:
        payload = {'model': self.model, **kwargs}
        async with self.semaphore:
            response = await self.client.post(url, json=payload)
            response.raise_for_status()
        return response.json()


INIT_ARGS = {
    'model': 'gpt-4',
    'api_key': 'test-key-12345',
    'base_url': 'https://api.example.com',
    'concurrency_limit': 5,
    'timeout': 30.0
}

ARGS = {
    'url': '/chat/completions',
    'messages': [{'role': 'user', 'content': 'Hello'}],
    'max_tokens': 100
}

METHOD = '__call__'


async def main():
    llm = LLM(**INIT_ARGS)
    
    mock_response = MagicMock()
    mock_response.json.return_value = {'choices': [{'message': {'content': 'Hello there'}}]}
    
    with patch.object(llm.client, 'post', new_callable=AsyncMock) as mock_post:
        mock_post.return_value = mock_response
        result = await llm(**ARGS)
        print("Result:", result)
    
    await llm.client.aclose()


if __name__ == '__main__':
    asyncio.run(main())
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
httpx — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Register Ran
ran on a synthesized input
Alibaba-NLP/qqr/qqr/reward_models/arena/double_elimination.py
code served (permissive licence) · get_code("f0b473fd458a2fc8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned function. 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 logging
from typing import Generic, Type, TypeVar

T = TypeVar('T')

logger = logging.getLogger(__name__)

class Register(Generic[T]):
    """Module register"""

    def __init__(self, registry_name):
        self._dict = {}
        self._name = registry_name

    def __call__(self, *arg, **kwarg):
        return self.register(*arg, **kwarg)

    def __setitem__(self, key, value):
        if not callable(value):
            raise Exception('Value of a Registry must be a callable.')
        if key is None:
            key = value.__name__
        if key in self._dict:
            logger.warning('Key %s already in registry %s.' % (key, self._name))
        self._dict[key] = value

    def __getitem__(self, key) -> Type[T]:
        try:
            return self._dict[key]
        except Exception as e:
            logger.error(f'module {key} not found: {e}')
            raise e

    def __contains__(self, key):
        return key in self._dict

    @property
    def keys(self):
        """key"""
        return self._dict.keys()

    def register(self, param):
        """Decorator to register a function or class."""

        def decorator(key, value):
            self[key] = value
            return value
        if callable(param):
            return decorator(None, param)
        return lambda x: decorator(param, x)


INIT_ARGS = {
    'registry_name': 'test_registry'
}

ARGS = {
    'param': 'my_function'
}

METHOD = 'register'

def my_function():
    return 42

if __name__ == '__main__':
    register = Register(**INIT_ARGS)
    
    decorator = register.register(ARGS['param'])
    decorated_func = decorator(my_function)
    
    result = register['my_function']()
    print(f"Result: {result}")
    print(f"Registry keys: {list(register.keys)}")
    print(f"'my_function' in register: {'my_function' in register}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
GroupRewardModel Not yet run
unverified (harvested, no recorded run)
Alibaba-NLP/qqr/qqr/reward_models/arena/double_elimination.py
code served (permissive licence) · get_code("c372f08d84973abb")
How it ran

no invocation recorded.

LLMRewardModel Not yet run
unverified (harvested, no recorded run)
Alibaba-NLP/qqr/qqr/reward_models/arena/double_elimination.py
code served (permissive licence) · get_code("61d8a6ba2409c35d")
How it ran

no invocation recorded.

Player Not yet run
unverified (harvested, no recorded run)
Alibaba-NLP/qqr/qqr/reward_models/arena/double_elimination.py
code served (permissive licence) · get_code("7dcafc35630c8efd")
How it ran

no invocation recorded.

Prompt Not yet run
unverified (harvested, no recorded run)
Alibaba-NLP/qqr/qqr/reward_models/arena/double_elimination.py
code served (permissive licence) · get_code("1f2a45bb5ccf4c5f")
How it ran

no invocation recorded.

RewardModel Not yet run
unverified (harvested, no recorded run)
Alibaba-NLP/qqr/qqr/reward_models/arena/double_elimination.py
code served (permissive licence) · get_code("859b40ac082593cf")
How it ran

no invocation recorded.

registers Not yet run
unverified (harvested, no recorded run)
Alibaba-NLP/qqr/qqr/reward_models/arena/double_elimination.py
code served (permissive licence) · get_code("c1c217586bb73a23")
How it ran

no invocation 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, 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 9 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 learning (RL) has substantially improved the performance of large language model (LLM) agents on tasks with verifiable outcomes, such as mathematics and code generation, but it still struggles on open-ended agent tasks with vast solution spaces (e.g., complex travel planning). Due to the absence of objective ground-truth for these tasks, current RL algorithms largely rely on reward models that assign scalar scores to individual responses. We contend that such pointwise scoring suffers from an inherent discrimination collapse: the reward model struggles to distinguish subtle advantages among different trajectories, resulting in scores within a group being compressed into a narrow range. Consequently, the effective reward signal becomes dominated by noise from the reward model, leading to optimization stagnation. To tackle this issue, we propose ArenaRL, a reinforcement learning paradigm that shifts from pointwise scalar scoring to intra-group relative ranking. ArenaRL introduces a process-aware pairwise evaluation mechanism, employing multi-level rubrics to assign fine-grained relative scores to trajectories. Additionally, we construct an intra-group adversarial arena and devise a tournament-based ranking scheme to obtain stable advantage signals. Empirical results confirm that the built seeded single-elimination scheme achieves nearly equivalent advantage estimation accuracy to full pairwise comparisons with O(N 2 ) complexity, while operating with only O(N) complexity, striking an optimal balance between efficiency and precision. Furthermore, to address the lack of full-cycle benchmarks for open-ended agents, we build Open-Travel and Open-DeepResearch, two high-quality benchmarks featuring a comprehensive pipeline covering supervised fine-tuning, RL training, and multi-dimensional automated evaluation. Extensive experiments show that ArenaRL substantially outperforms standard RL baselines, enabling LLM agents to generate solutions that are more logically rigorous and robust on complex real-world tasks. The code is available at https://github.com/Alibaba-NLP/qqr.

For agents

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

get_harvested_code_for_paper("2601.06487")
get_code_for_paper("2601.06487")
have("2601.06487")

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

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

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

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

Connect an agent — have() is free.