SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.01761 · EMNLP · 2025

Same evaluation, more tokens: On the effect of input length for machine translation evaluation using Large Language Models

Dawei Zhu, Tobias Domhan

arXiv · PDF · Open in the Atlas

Code that ran

8 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 7 have no contract verdict; 1 failure of our instrument; 4 no recorded run), measured 2026-11-24; 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/2505.01761.json · badge: /api/ran/2505.01761.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
google-research/mt-metrics-eval canonical (classifier label)
classifier basis not recorded on the link
8 ran · 4 no recorded run
FunctionStatusWhere it lives
Flag2TaskArg Ran
ran on a synthesized input
google-research/mt-metrics-eval/mt_metrics_eval/mtme.py
code served (permissive licence) · get_code("c6d9433442d834eb")
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)

# Analyze the function:
# - flag_val: a string or falsy value that gets split by commas
# - sets: a boolean that determines whether to wrap values in sets
# The function returns None, a single value, or a list of values

ARGS = {
    'flag_val': 'model,data,config',
    'sets': False
}
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
KendallLike Ran
ran on a synthesized input
google-research/mt-metrics-eval/mt_metrics_eval/stats.py
code served (permissive licence) · get_code("7264329fa0b749b0")
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
import numpy.typing

# Analyze the function:
# - gold_scores: ArrayLike, iterated with zip and indexed [0]
# - metric_scores: ArrayLike, iterated with zip and indexed [1]
# - thresh: float, default 25.0
# - The function compares pairs of (gold_score, metric_score) tuples
# - Each element is compared as a[0] and b[0] for gold scores, a[1] and b[1] for metric scores
# - None values are skipped

# Create valid arguments
gold_scores = np.array([100.0, 80.0, 60.0, 40.0])
metric_scores = np.array([95.0, 75.0, 65.0, 35.0])
thresh = 25.0

ARGS = {
    "gold_scores": gold_scores,
    "metric_scores": metric_scores,
    "thresh": thresh
}
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
LocalDir Ran
ran on a synthesized input
google-research/mt-metrics-eval/mt_metrics_eval/data.py
code served (permissive licence) · get_code("9d06f47545662537")
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 os

ARGS = {
    'root_only': True
}
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
ReadScoreFile Ran
ran on a synthesized input
google-research/mt-metrics-eval/mt_metrics_eval/data.py
code served (permissive licence) · get_code("9f6815894c7d5c54")
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 defaultdict. 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 collections
import tempfile
import os

# Create a temporary file with score data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("system1 0.85\n")
temp_file.write("system2 0.92\n")
temp_file.write("system1 0.88\n")
temp_file.write("system3 None\n")
temp_file.write("system2 0.91\n")
temp_file.close()

filename = temp_file.name

ARGS = {
    "filename": filename
}
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 defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict 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
Score Ran
ran on a synthesized input
google-research/mt-metrics-eval/mt_metrics_eval/converters/score_mqm.py
code served (permissive licence) · get_code("818d955de02710b7")
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 int, ndim 0, dtype family int, 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

def Score(weights, items):
    items = [x.lower() for x in items]
    while items:
        if '/'.join(items) in weights:
            return weights['/'.join(items)]
        items = items[:-1]
    return 0

# weights is a dict mapping strings to numbers
weights = {
    'hello/world': 10,
    'hello': 5,
    'foo/bar/baz': 20,
    'foo/bar': 15,
    'test': 3
}

# items is a list of strings
items = ['Hello', 'World']

ARGS = {
    'weights': weights,
    'items': items
}
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 int, ndim 0, dtype family int, 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
compute_one_minus_pce Ran
ran on a synthesized input
google-research/mt-metrics-eval/mt_metrics_eval/pce.py
code served (permissive licence) · get_code("acd180deb9e65b2a")
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 float64, ndim 0, 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

# Create sample p-value arrays for 5 systems
num_systems = 5

# Create human pairwise p-values (upper triangle populated)
human_pairwise_p_vals = np.zeros((num_systems, num_systems))
upper_tri_idxs = np.triu_indices(num_systems, 1)
human_pairwise_p_vals[upper_tri_idxs] = np.random.rand(len(upper_tri_idxs[0]))

# Create metric pairwise p-values (upper triangle populated)
metric_pairwise_p_vals = np.zeros((num_systems, num_systems))
metric_pairwise_p_vals[upper_tri_idxs] = np.random.rand(len(upper_tri_idxs[0]))

ARGS = {
    "human_pairwise_p_vals": human_pairwise_p_vals,
    "metric_pairwise_p_vals": metric_pairwise_p_vals,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
filter_gold_nones Ran
ran on a synthesized input
google-research/mt-metrics-eval/mt_metrics_eval/stats.py
code served (permissive licence) · get_code("2a9f739516fd19df")
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 zip. 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 numpy.typing

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

# Create test data for filter_gold_nones
# The function filters pairs where gold score is None
# gold and model should be array-like sequences

gold_data = [1.5, None, 2.3, 0.8]
model_data = [1.6, 2.1, 2.2, 0.9]

# Convert to numpy arrays (ArrayLike compatible)
gold = np.array(gold_data, dtype=object)
model = np.array(model_data, dtype=float)

ARGS = {
    "gold": gold,
    "model": model,
}
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 zip — a zip output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a zip 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
tau_optimization Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
google-research/mt-metrics-eval/mt_metrics_eval/tau_optimization.py
code served (permissive licence) · get_code("88f3bac3e439f478")
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 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 the TauSufficientStats class (from the provided code)
class TauSufficientStats:
    def __init__(self, con: int=0, dis: int=0, ties_human: int=0, ties_metric: int=0, ties_both: int=0):
        self.con = con
        self.dis = dis
        self.ties_human = ties_human
        self.ties_metric = ties_metric
        self.ties_both = ties_both
        self.num_pairs = con + dis + ties_human + ties_metric + ties_both

    def tau_23(self) -> float:
        if self.num_pairs == 0:
            return 0.0
        return (self.con + self.ties_both - self.dis - self.ties_human - self.ties_metric) / self.num_pairs

    def acc_23(self) -> float:
        if self.num_pairs == 0:
            return 0.0
        return (self.con + self.ties_both) / self.num_pairs

# Create sample metric scores and human scores
# These should be 2D arrays (N x M) where N is number of rows, M is number of score pairs
metric_scores = np.array([
    [0.1, 0.5, 0.8, 0.3],
    [0.2, 0.6, 0.7, 0.4]
], dtype=np.float32)

human_scores = np.array([
    [0.0, 0.5, 1.0, 0.2],
    [0.1, 0.7, 0.9, 0.3]
], dtype=np.float32)

# Define a simple tau function that takes TauSufficientStats and returns a float
def simple_tau_fn(stats: TauSufficientStats) -> float:
    """A simple tau function using tau_23"""
    return stats.tau_23()

# Create the ARGS dictionary with all required parameters
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, 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 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
PrintScores Not yet run
unverified (harvested, no recorded run)
google-research/mt-metrics-eval/mt_metrics_eval/mtme.py
code served (permissive licence) · get_code("489ded4bc6b4fc45")
How it ran

no invocation recorded.

ReadDomainScoreFile Not yet run
unverified (harvested, no recorded run)
google-research/mt-metrics-eval/mt_metrics_eval/data.py
code served (permissive licence) · get_code("dbb40b5acf49d38d")
How it ran

no invocation recorded.

compute_pairwise_p_values Not yet run
unverified (harvested, no recorded run)
google-research/mt-metrics-eval/mt_metrics_eval/pce.py
code served (permissive licence) · get_code("798f8106f1c164b2")
How it ran

no invocation recorded.

is_constant_array Not yet run
unverified (harvested, no recorded run)
google-research/mt-metrics-eval/mt_metrics_eval/stats.py
code served (permissive licence) · get_code("95d14cdc56ac49e7")
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, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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 2 other papers
2 dated earlier
2305.14324 (2023-05)
Ties Matter: Meta-Evaluating Modern Metrics with Pairwise Accuracy and Tie Calibration
2406.18365 (2024-06)
Themis: A Reference-free NLG Evaluation Language Model with Flexibility and Interpretability
Flag2TaskArg 1 other paper
1 dated earlier
2305.14324 (2023-05)
Ties Matter: Meta-Evaluating Modern Metrics with Pairwise Accuracy and Tie Calibration
LocalDir 1 other paper
1 dated earlier
2305.14324 (2023-05)
Ties Matter: Meta-Evaluating Modern Metrics with Pairwise Accuracy and Tie Calibration
PrintScores 1 other paper
1 dated earlier
2305.14324 (2023-05)
Ties Matter: Meta-Evaluating Modern Metrics with Pairwise Accuracy and Tie Calibration
ReadDomainScoreFile 1 other paper
1 dated earlier
2305.14324 (2023-05)
Ties Matter: Meta-Evaluating Modern Metrics with Pairwise Accuracy and Tie Calibration
ReadScoreFile 1 other paper
1 dated earlier
2305.14324 (2023-05)
Ties Matter: Meta-Evaluating Modern Metrics with Pairwise Accuracy and Tie Calibration
Score 1 other paper
1 dated earlier
2305.14324 (2023-05)
Ties Matter: Meta-Evaluating Modern Metrics with Pairwise Accuracy and Tie Calibration

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Accurately evaluating machine-translated text remains a long-standing challenge, particularly for long documents. Recent work has shown that large language models (LLMs) can serve as reliable and interpretable sentence-level translation evaluators via MQM error span annotations. With modern LLMs supporting larger context windows, a natural question arises: can we feed entire document translations into an LLM for quality assessment? Ideally, evaluation should be invariant to text length, producing consistent error spans regardless of input granularity. However, our analysis shows that text length significantly impacts evaluation: longer texts lead to fewer error spans and reduced system ranking accuracy. To address this limitation, we evaluate several strategies, including granularity-aligned prompting, Focus Sentence Prompting (FSP), and a fine-tuning approach to better align LLMs with the evaluation task. The latter two methods largely mitigate this length bias, making LLMs more reliable for long-form translation evaluation.

For agents

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

get_harvested_code_for_paper("2505.01761")
get_code_for_paper("2505.01761")
have("2505.01761")

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

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

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

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

Connect an agent — have() is free.