SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.18365 · EMNLP · 2024

Themis: A Reference-free NLG Evaluation Language Model with Flexibility and Interpretability

Xiaojun Wan, Li Lin, Xinyu Hu, Xunjian Yin, Mingqi Gao

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 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; 2 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/2406.18365.json · badge: /api/ran/2406.18365.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
PKU-ONELab/Themis marked official in Papers with Code
Papers with Code archive
5 ran · 0 no recorded run
FunctionStatusWhere it lives
TauOptimizationResult Ran
ran on a synthesized input · constructed an object; no result was computed
PKU-ONELab/Themis/tau_optimization.py
code served (permissive licence) · get_code("552e96a0b9c81fe5")
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 an instance of its own class, TauOptimizationResult: the run constructed the object and did not call it, so no result was computed. 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 dataclasses

torch_imported = False
try:
    import torch
    torch.manual_seed(0)
    torch_imported = True
except ImportError:
    pass

@dataclasses.dataclass
class TauOptimizationResult:
    thresholds: list[float]
    taus: list[float]
    best_threshold: float
    best_tau: float

ARGS = {
    "thresholds": [0.1, 0.3, 0.5, 0.7, 0.9],
    "taus": [0.01, 0.05, 0.1, 0.15, 0.2],
    "best_threshold": 0.5,
    "best_tau": 0.1,
}
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 TauOptimizationResult — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TauOptimizationResult 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
TauSufficientStats Ran
ran on a synthesized input · constructed an object; no result was computed
PKU-ONELab/Themis/tau_optimization.py
code served (permissive licence) · get_code("20c1fb317434f173")
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 an instance of its own class, TauSufficientStats: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

# TauSufficientStats only takes integer arguments in __init__
# No model, tensors, or complex objects needed
ARGS = {
    'con': 10,
    'dis': 5,
    'ties_human': 3,
    'ties_metric': 2,
    'ties_both': 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 TauSufficientStats — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a TauSufficientStats 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
_RankedPair Ran
ran on a synthesized input · constructed an object; no result was computed
PKU-ONELab/Themis/tau_optimization.py
code served (permissive licence) · get_code("35d010b6538ec19d")
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 an instance of its own class, _RankedPair: the run constructed the object and did not call it, so no result was computed. 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.

# Setup code for _RankedPair

ARGS = {
    "h1": 5.0,
    "h2": 3.0,
    "m1": 4.5,
    "m2": 2.5,
    "row": 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 _RankedPair — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a _RankedPair 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
_enumerate_pairs Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
PKU-ONELab/Themis/tau_optimization.py
code served (permissive licence) · get_code("01fea23a31f8f70e")
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. 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

# Create sample data for human and metric scores
# Using a 2x3 matrix where each row represents scores from one example
# and each column represents different evaluation points

human_scores = np.array([
    [8.5, 7.2, 9.1],
    [6.3, 7.8, 5.9]
], dtype=float)

metric_scores = np.array([
    [8.0, 7.5, 9.0],
    [6.5, 7.5, 6.0]
], dtype=float)

ARGS = {
    'human_scores': human_scores,
    'metric_scores': metric_scores,
    'sample_rate': 1.0,
    'filter_nones': True
}
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 — a tuple output has no array shape of its own; none is 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
tau_optimization Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
PKU-ONELab/Themis/tau_optimization.py
code served (permissive licence) · get_code("48643073cdf99320")
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 TauOptimizationResult. 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
from typing import Callable

# Define a simple tau function that takes TauSufficientStats and returns a float
def simple_tau_fn(stats):
    """Simple tau function that returns tau_23 value."""
    return stats.tau_23()

# Create sample data: 2D arrays where each row represents scores for a sample
# metric_scores and human_scores should have the same shape
metric_scores = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [2.0, 3.0, 1.0, 4.0]
], dtype=np.float32)

human_scores = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [2.0, 3.0, 1.0, 4.0]
], dtype=np.float32)

ARGS = {
    "metric_scores": metric_scores,
    "human_scores": human_scores,
    "tau_fn": simple_tau_fn,
    "sample_rate": 1.0
}
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 TauOptimizationResult — a TauOptimizationResult output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TauOptimizationResult 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 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 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
tau_optimization
brick of this paper's assembly: entry
2 other papers
1 dated earlier, 1 later
2305.14324 (2023-05)
Ties Matter: Meta-Evaluating Modern Metrics with Pairwise Accuracy and Tie Calibration
2505.01761 (2025-05)
Same evaluation, more tokens: On the effect of input length for machine translation evaluation using Large Language Models

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

The evaluation of natural language generation (NLG) tasks is a significant and longstanding research area. With the recent emergence of powerful large language models (LLMs), some studies have turned to LLM-based automatic evaluation methods, which demonstrate great potential to become a new evaluation paradigm following traditional string-based and modelbased metrics. However, despite the improved performance of existing methods, they still possess some deficiencies, such as dependency on references and limited evaluation flexibility. Therefore, in this paper, we meticulously construct a large-scale NLG evaluation corpus NLG-Eval with annotations from both human and GPT-4 to alleviate the lack of relevant data in this field. Furthermore, we propose Themis, an LLM dedicated to NLG evaluation, which has been trained with our designed multi-perspective consistency verification and rating-oriented preference alignment methods. Themis can conduct flexible and interpretable evaluations without references, and it exhibits superior evaluation performance on various NLG tasks, simultaneously generalizing well to unseen tasks and surpassing other evaluation models, including GPT-4.

For agents

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

get_harvested_code_for_paper("2406.18365")
get_code_for_paper("2406.18365")
have("2406.18365")

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

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

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

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

Connect an agent — have() is free.