SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.11746 · EMNLP · 2023

HalOmi: A Manually Annotated Benchmark for Multilingual Hallucination and Omission Detection in Machine Translation

Janice Lam, Cynthia Gao, Elahe Kalbassi, Prangthip Hansanti, Christophe Ropers, Loïc Barrault, David Dale, Elena Voita, Costa-Jussà Fair

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 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; 0 failures of our instrument; 0 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/2305.11746.json · badge: /api/ran/2305.11746.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
facebookresearch/stopes canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
load_config Ran
ran on a synthesized input
facebookresearch/stopes/stopes/hub.py
code served (permissive licence) · get_code("d31bf0cc915f17e8")
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 DictConfig. 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 typing as tp
from pathlib import Path
from omegaconf import DictConfig, OmegaConf
import tempfile
import os

# Create a temporary directory with a valid YAML config file
temp_dir = tempfile.mkdtemp()
config_file = os.path.join(temp_dir, "test_config.yaml")

# Write a minimal valid YAML config
with open(config_file, 'w') as f:
    f.write("test_key: test_value\nmodel: bert\n")

# Define ARGS with valid parameters for load_config
ARGS = {
    'model_name_or_path': config_file,
    'namespace': 'models'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
omegaconf — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DictConfig — a DictConfig output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DictConfig output the recorded ndim 1 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
open_file_cmd Ran
ran on a synthesized input
facebookresearch/stopes/stopes/core/utils.py
code served (permissive licence) · get_code("f21ddc57378fb0fa")
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 shlex
import typing as tp
from pathlib import Path

def open_file_cmd(filename: tp.Union[Path, str]) -> str:
    if isinstance(filename, Path):
        filename = str(filename)
    filename = shlex.quote(filename)
    cat = 'cat'
    if filename.endswith('.xz'):
        cat = 'xzcat'
    if filename.endswith('.gz'):
        cat = 'zcat'
    return shlex.join((cat, filename))

# Test with different file types
ARGS = {
    'filename': 'test_file.txt'
}
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
resolve_bitext_files Ran
ran on a synthesized input
facebookresearch/stopes/stopes/modules/nmt_bitext_eval_utils.py
code served (permissive licence) · get_code("6de9cb774db8d4dc")
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 2, 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 tempfile
import shutil
from pathlib import Path

# Create a temporary directory with test bitext files
temp_dir = tempfile.mkdtemp()
bitext_dir = Path(temp_dir)

# Create some dummy bitext files
# Pattern: *.{src}.* paired with *.{tgt}.*
src_lang = "en"
tgt_lang = "fr"

# Create matching pairs
(bitext_dir / f"file1.{src_lang}.txt").write_text("source text 1")
(bitext_dir / f"file1.{tgt_lang}.txt").write_text("target text 1")

(bitext_dir / f"file2.{src_lang}.txt").write_text("source text 2")
(bitext_dir / f"file2.{tgt_lang}.txt").write_text("target text 2")

# Create an orphaned source file (no matching target)
(bitext_dir / f"orphan.{src_lang}.txt").write_text("orphan source")

ARGS = {
    "bitext_dir": bitext_dir,
    "src": src_lang,
    "tgt": tgt_lang,
}
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 list, ndim 2, 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
set_file_compression Ran
ran on a synthesized input
facebookresearch/stopes/stopes/core/utils.py
code served (permissive licence) · get_code("03e19a31f104ab4b")
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 shlex
from pathlib import Path

ARGS = {
    "filename": "output.xz.gz"
}
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 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
sha_key Ran
ran on a synthesized input
facebookresearch/stopes/stopes/core/utils.py
code served (permissive licence) · get_code("46b9bee297e43f3b")
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 hashlib

def sha_key(raw_key: str) -> str:
    return hashlib.sha256(raw_key.encode('utf-8')).hexdigest()

ARGS = {
    "raw_key": "test_input_string"
}
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
source_code Ran
ran on a synthesized input
facebookresearch/stopes/stopes/modules/partitioned_data_mapper.py
code served (permissive licence) · get_code("ffcddcfbe58d1a23")
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 inspect
import torch
import torch.nn as nn

def source_code(cls) -> str:
    try:
        return inspect.getsource(cls)
    except Exception:
        return ''

class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

class NotAClassButCallable:
    pass

class AnotherClass:
    """A test class with some methods."""
    def method_one(self):
        pass
    
    def method_two(self, x, y):
        return x + y

ARGS = {
    "cls": SimpleModule
}
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
speech_tokenizer Ran
ran on a synthesized input
facebookresearch/stopes/stopes/hub.py
code served (permissive licence) · get_code("13ae6e6ab688f904")
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 SpeechTokenizer. 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 pathlib import Path
from omegaconf import DictConfig, OmegaConf
from unittest.mock import Mock, patch

torch.manual_seed(0)

# Create a minimal stand-in SpeechTokenizer class
class SpeechTokenizer:
    def __init__(self, config=None, **kwargs):
        self.config = config or OmegaConf.create()
        self.kwargs = kwargs
    
    @classmethod
    def build(cls, config, **kwargs):
        """Factory method that builds a SpeechTokenizer from config"""
        return cls(config=config, **kwargs)

# Mock the stopes.speech.tokenizers module
mock_tokenizers = Mock()
mock_tokenizers.SpeechTokenizer = SpeechTokenizer

mock_speech = Mock()
mock_speech.tokenizers = mock_tokenizers

mock_stopes = Mock()
mock_stopes.speech = mock_speech

# Patch sys.modules to inject our mock
import sys
sys.modules['stopes'] = mock_stopes
sys.modules['stopes.speech'] = mock_speech
sys.modules['stopes.speech.tokenizers'] = mock_tokenizers

# Create test arguments
ARGS = {
    'pretrained_model_name_or_path': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, omegaconf, stopes, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SpeechTokenizer — a SpeechTokenizer output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SpeechTokenizer 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 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 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 7 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

Hallucinations in machine translation are translations that contain information completely unrelated to the input. Omissions are translations that do not include some of the input information. While both cases tend to be catastrophic errors undermining user trust, annotated data with these types of pathologies is extremely scarce and is limited to a few high-resource languages. In this work, we release an annotated dataset for the hallucination and omission phenomena covering 18 translation directions with varying resource levels and scripts. Our annotation covers different levels of partial and full hallucinations as well as omissions both at the sentence and at the word level. Additionally, we revisit previous methods for hallucination and omission detection, show that conclusions made based on a single language pair largely do not hold for a large-scale evaluation, and establish new solid baselines.

For agents

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

get_harvested_code_for_paper("2305.11746")
get_code_for_paper("2305.11746")
have("2305.11746")

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

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

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

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

Connect an agent — have() is free.