SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2512.05542 · NeurIPS · 2025

ROBON: Routed Online Best-of-n for Test-Time Scaling with Multiple LLMs

Jonathan Geuter, Gregor Kornhardt

arXiv · PDF · Open in the Atlas

Code that ran

2 of 2 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 1 failure 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/2512.05542.json · badge: /api/ran/2512.05542.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
j-geuter/RoBoN community
Papers with Code archive
2 ran · 0 no recorded run
FunctionStatusWhere it lives
_expected_metric Ran
ran, honoured the contract we drafted
j-geuter/RoBoN/src/methods.py
code served (permissive licence) · get_code("76add48c448e2321")
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 numpy as np
from collections import Counter

def _expected_metric(chosen_triplets, beta: float, alpha: float=0.7) -> float:
    """
    Soft-BoN expected metric.
    chosen_triplets: list of (reward, y_unused, answer_string).
      - reward r_i: float (can be raw RM score; we normalize via ECDF locally)
      - y_unused   : ignored (kept for tuple compatibility)
      - answer     : model's predicted answer; used for self-consistency agreement
    beta: temperature for soft-BoN weights on rewards
    alpha: mix weight in [0,1] for p_hat = alpha * p_rm + (1-alpha) * agreement

    Returns F_beta = sum_i w_i * p_hat_i, with w_i ∝ exp(beta * (r_i - max r)).
    """
    if not chosen_triplets:
        return float('nan')
    rewards, answers = ([], [])
    for r, _y, a in chosen_triplets:
        try:
            rf = float(r)
        except Exception:
            rf = np.nan
        if not np.isfinite(rf):
            continue
        rewards.append(rf)
        answers.append('' if a is None else str(a))
    if len(rewards) == 0:
        return float('nan')
    r = np.asarray(rewards, dtype=np.float64)
    m = float(np.max(r))
    z = beta * (r - m)
    z = z - np.max(z)
    ez = np.exp(z)
    denom = max(float(ez.sum()), 1e-10)
    w = ez / denom
    p_rm = r
    if len(set(answers)) == 1 and answers[0] == '':
        agree = np.zeros_like(p_rm, dtype=np.float64)
        mix_alpha = 1.0
    else:
        cnt = Counter(answers)
        N = float(len(answers))
        agree = np.array([cnt[a] / max(N, 1e-10) for a in answers], dtype=np.float64)
        mix_alpha = float(alpha)
    p_hat = mix_alpha * p_rm + (1.0 - mix_alpha) * agree
    p_hat = np.clip(p_hat, 0.0, 1.0)
    return float(np.dot(w, p_hat))

# Construct valid arguments
chosen_triplets = [
    (0.8, None, "answer_one"),
    (0.6, None, "answer_two"),
    (0.7, None, "answer_one"),
    (0.9, None, "answer_three"),
]

ARGS = {
    "chosen_triplets": chosen_triplets,
    "beta": 2.5,
    "alpha": 0.7,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
routed_online_best_of_n Ran
ran; our contract draft was wrong, not the code
j-geuter/RoBoN/src/methods.py
code served (permissive licence) · get_code("07d590e827e829cb")
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) 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 numpy as np
import random
from collections import Counter

# Set seed for reproducibility
random.seed(0)
np.random.seed(0)

# Construct the by_prompt dictionary
# Structure: {prompt_id: {'models': {model_name: {'rm': rewards_array, 'y': y_array, 'answers': answers_list}}}}

by_prompt = {
    'prompt_1': {
        'models': {
            'model_a': {
                'rm': np.array([0.8, 0.6, 0.9, 0.7], dtype=np.float64),
                'y': np.array([1, 0, 1, 0], dtype=np.int32),
                'answers': ['answer_1', 'answer_2', 'answer_1', 'answer_3']
            },
            'model_b': {
                'rm': np.array([0.5, 0.75, 0.85], dtype=np.float64),
                'y': np.array([0, 1, 1], dtype=np.int32),
                'answers': ['answer_2', 'answer_1', 'answer_1']
            },
            'model_c': {
                'rm': np.array([0.7, 0.65], dtype=np.float64),
                'y': np.array([1, 0], dtype=np.int32),
                'answers': ['answer_1', 'answer_2']
            }
        }
    },
    'prompt_2': {
        'models': {
            'model_a': {
                'rm': np.array([0.9, 0.8], dtype=np.float64),
                'y': np.array([1, 1], dtype=np.int32),
                'answers': ['answer_x', 'answer_y']
            },
            'model_b': {
                'rm': np.array([0.6, 0.7, 0.55], dtype=np.float64),
                'y': np.array([0, 1, 0], dtype=np.int32),
                'answers': ['answer_z', 'answer_x', 'answer_w']
            },
            'model_c': {
                'rm': np.array([0.72], dtype=np.float64),
                'y': np.array([1], dtype=np.int32),
                'answers': ['answer_x']
            }
        }
    }
}

ARGS = {
    'by_prompt': by_prompt,
    'n': 5,
    'beta': 2.0,
    'plot': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
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

Also present in other papers' code

Of 2 samples lifted from this paper's linked repositories, 2 carry a function identity and 0 do not. Of the 2 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 2 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

Best-of-n is a widely used test-time scaling approach for LLM inference. Yet despite evidence that LLMs exhibit complementary strengths across tasks, traditionally best-of-n relies on a single model to generate responses. We propose ROBON (Routed Online Best-of-n), a sequential multi-LLM alternative to the prevailing single-model best-of-n. Given a suite of models {m i } M i=1 , ROBON sequentially routes generations one-by-one across models, based on scores computed using a reward model and an agreement signal on the predicted responses. This online routing requires no additional training, keeps compute parity, and works with any plug-in reward model. Across reasoning benchmarks (MATH500, OlympiadBench, MinervaMath, GSM8K, MMLU), ROBON consistently outperforms standard best-of-n applied to each individual model for larger n, with gains of up to 3.4% in absolute accuracy, and also improves over a uniform multi-model portfolio baseline. Our results indicate that diversity across models can be exploited at inference to improve best-of-n performance over any constituent model alone, providing a simple, training-free path to test-time scaling with multiple LLMs.

For agents

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

get_harvested_code_for_paper("2512.05542")
get_code_for_paper("2512.05542")
have("2512.05542")

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

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

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

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

Connect an agent — have() is free.