SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.05685 · NeurIPS · 2023

Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena

Zhuohan Li, Zhanghao Wu, Ion Stoica, Siyuan Zhuang, Lianmin Zheng, Dacheng Li, Wei-Lin Chiang, Ying Sheng, Yonghao Zhuang, Zi Lin, Haotong Zhang, Joseph E. Gonzalez, and 1 more

arXiv · PDF · Open in the Atlas

Code that ran

9 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; 0 honoured the contract we drafted, 0 violated it and 9 have no contract verdict; 0 failures of our instrument; 3 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/2306.05685.json · badge: /api/ran/2306.05685.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
formulamonks/llm-benchmarker-suite community (classifier label)
classifier basis not recorded on the link
4 ran · 3 no recorded run
ilyagusev/ping_pong_bench community (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
bjoernpl/fasteval community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
FunctionStatusWhere it lives
bootstrap_mean Ran
ran on a synthesized input
ilyagusev/ping_pong_bench/src/build_table_v2.py
code served (permissive licence) · get_code("97e1d403e329ddba")
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 tuple, 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 numpy as np

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

# Create sample data for bootstrap_mean
data = [1.2, 2.3, 1.9, 2.1, 1.8, 2.5, 2.0, 1.7, 2.2, 1.9]

# Define arguments dictionary
ARGS = {
    "data": data,
    "n_bootstrap": 1000
}
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 tuple, ndim 1, dtype family float — a tuple 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
calculate_accuracy Ran
ran on a synthesized input
formulamonks/llm-benchmarker-suite/metrics/accuracy.py
code served (permissive licence) · get_code("8cd285fe9e20db6b")
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)

# Setup arguments for calculate_accuracy function
true_positives = 45
true_negatives = 35
total_samples = 100

ARGS = {
    "true_positives": true_positives,
    "true_negatives": true_negatives,
    "total_samples": total_samples
}
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
calculate_f1_score Ran
ran on a synthesized input
formulamonks/llm-benchmarker-suite/metrics/f1_score.py
code served (permissive licence) · get_code("289ff24d57f60bca")
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)

# The function takes three integer parameters representing counts
# We'll create realistic values for a binary classification scenario
true_positives = 50
false_positives = 10
false_negatives = 5

ARGS = {
    "true_positives": true_positives,
    "false_positives": false_positives,
    "false_negatives": false_negatives,
}
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
count_true_positives_negatives Ran
ran on a synthesized input
formulamonks/llm-benchmarker-suite/metrics/utils.py
code served (permissive licence) · get_code("68aa24da5846ab68")
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 tuple, ndim 1, 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.

import torch
import numpy as np

torch.manual_seed(0)

# Construct arguments for count_true_positives_negatives
predictions = [1, 0, 1, 1, 0, 0, 1, 0]
targets = [1, 0, 1, 0, 0, 1, 1, 0]
positive_label = 1

ARGS = {
    "predictions": predictions,
    "targets": targets,
    "positive_label": positive_label
}
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 tuple, ndim 1, dtype family int — a tuple 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
display_str Ran
ran on a synthesized input
ilyagusev/ping_pong_bench/src/build_table_v2.py
code served (permissive licence) · get_code("33a7dc7b274b93b6")
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 = {
    "text": "hello_world_example"
}
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
generate_completion Ran
ran on a synthesized input
formulamonks/llm-benchmarker-suite/eval_levels/large_language_model.py
code served (permissive licence) · get_code("93e8875d6f69828c")
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
import torch.nn as nn
from transformers import GPT2Tokenizer, GPT2LMHeadModel

torch.manual_seed(0)

# Create a minimal mock language model with necessary attributes and methods
class MinimalGPT2Model(nn.Module):
    def __init__(self):
        super().__init__()
        self.config = MinimalConfig()
        self.lm_head = nn.Linear(768, 50257)
        self.transformer = nn.Module()
    
    def generate(self, input_ids, max_length=50, num_return_sequences=1):
        # Return dummy token ids
        batch_size = input_ids.shape[0]
        return torch.randint(0, 50257, (batch_size * num_return_sequences, max_length))

class MinimalConfig:
    def __init__(self):
        self.architectures = ["gpt2"]
        self.vocab_size = 50257
        self.n_positions = 1024
        self.n_embd = 768
        self.n_layer = 12
        self.n_head = 12

class MinimalTokenizer:
    def __init__(self):
        pass
    
    def __call__(self, text, return_tensors=None):
        # Return dummy token ids wrapped in a dict-like object
        input_ids = torch.tensor([[101, 2054, 2003, 1045, 102]])
        return TokenizerOutput(input_ids)
    
    def decode(self, token_ids, skip_special_tokens=False):
        return "This is a generated completion text."

class TokenizerOutput:
    def __init__(self, input_ids):
        self.input_ids = input_ids

# Patch the tokenizer loading
original_from_pretrained = GPT2Tokenizer.from_pretrained
GPT2Tokenizer.from_pretrained = lambda x: MinimalTokenizer()

# Create the arguments
language_model = MinimalGPT2Model()
prompt = "Once upon a time"
max_length = 50

ARGS = {
    "language_model": language_model,
    "prompt": prompt,
    "max_length": max_length
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — 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
should_filter_process_output Ran
ran on a synthesized input
bjoernpl/fasteval/evaluation/models/fastchat.py
code served (permissive licence) · get_code("056987a0c7465ba0")
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 bool, 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
import torch.nn as nn

ARGS = {
    'process_name': 'model',
    'line': 'POST /worker_generate HTTP/1.1 200 OK'
}
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 bool, 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
to_markdown Ran
ran on a synthesized input
ilyagusev/ping_pong_bench/src/browser.py
code served (permissive licence) · get_code("5f0936b6dd8764d2")
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 = {
    'record': {
        'messages': [
            {
                'role': 'user',
                'content': 'Hello *world*'
            },
            {
                'role': 'assistant',
                'content': 'This is a *response* with asterisks*'
            }
        ]
    }
}
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
to_meta Ran
ran on a synthesized input
ilyagusev/ping_pong_bench/src/browser.py
code served (permissive licence) · get_code("876eef1b6c8e5394")
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
import numpy as np
from typing import Dict, Any

# Construct a valid record dictionary for the to_meta function
record = {
    'character': {
        'char_name': 'Alice'
    },
    'human_scores': [8.5, 9.2, 7.8],
    'messages': [
        'Hello',
        'How are you?'
    ],
    'other_field': 'some_value'
}

ARGS = {
    'record': record
}
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 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
calculate_bleu_score Not yet run
unverified (harvested, no recorded run)
formulamonks/llm-benchmarker-suite/metrics/bleu_score.py
code served (permissive licence) · get_code("5c196faf66a8f85f")
How it ran

no invocation recorded.

get_completion_score Not yet run
unverified (harvested, no recorded run)
formulamonks/llm-benchmarker-suite/eval_levels/gpt_completions_api.py
code served (permissive licence) · get_code("31d81ed97dc19096")
How it ran

no invocation recorded.

load_language_model Not yet run
unverified (harvested, no recorded run)
formulamonks/llm-benchmarker-suite/eval_levels/large_language_model.py
code served (permissive licence) · get_code("8b546d8a3cbca5d0")
How it ran

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, 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 12 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

Evaluating large language model (LLM) based chat assistants is challenging due to their broad capabilities and the inadequacy of existing benchmarks in measuring human preferences. To address this, we explore using strong LLMs as judges to evaluate these models on more open-ended questions. We examine the usage and limitations of LLM-as-a-judge, including position, verbosity, and self-enhancement biases, as well as limited reasoning ability, and propose solutions to mitigate some of them. We then verify the agreement between LLM judges and human preferences by introducing two benchmarks: MT-bench, a multi-turn question set; and Chatbot Arena, a crowdsourced battle platform. Our results reveal that strong LLM judges like GPT-4 can match both controlled and crowdsourced human preferences well, achieving over 80% agreement, the same level of agreement between humans. Hence, LLM-as-a-judge is a scalable and explainable way to approximate human preferences, which are otherwise very expensive to obtain. Additionally, we show our benchmark and traditional benchmarks complement each other by evaluating several variants of LLaMA and Vicuna. The MT-bench questions, 3K expert votes, and 30K conversations with human preferences are publicly available at https: //github.com/lm-sys/FastChat/tree/main/fastchat/llm_judge. * Joint first authors. This paper is an extended version of our earlier blog post [8]. 37th Conference on Neural Information Processing Systems (NeurIPS 2023) Track on Datasets and Benchmarks.

For agents

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

get_harvested_code_for_paper("2306.05685")
get_code_for_paper("2306.05685")
have("2306.05685")

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

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

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

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

Connect an agent — have() is free.