SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1907.06616 · 2019

Facebook FAIR's WMT19 News Translation Task Submission

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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 6 have no contract verdict; 1 failure of our instrument; 2 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/1907.06616.json · badge: /api/ran/1907.06616.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
cyberagentailab/mbr-anomaly community (classifier label)
classifier basis not recorded on the link
7 ran · 2 no recorded run
FunctionStatusWhere it lives
build_metric_fn Ran
ran on a synthesized input
cyberagentailab/mbr-anomaly/utils/metrics.py
code served (permissive licence) · get_code("60712be24de74d21")
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 partial. 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 functools import partial
from unittest.mock import Mock, MagicMock

torch.manual_seed(0)

# Create mock COMET model
comet_model_mock = Mock()
comet_model_mock.predict = Mock(return_value=Mock(
    scores=[0.8, 0.75, 0.9],
    system_score=0.8167
))

# Create mock BLEURT scorer
bleurt_scorer_mock = Mock()
bleurt_scorer_mock.score = Mock(return_value=[0.85, 0.80, 0.88])

ARGS = {
    'metric_name': 'bleu',
    'comet_dir': None,
    'comet_model': 'wmt20-comet-da',
    'comet_bsize': 256,
    'bleurt_dir': None,
    'n_cpus': 1,
    'n_gpus': 1,
    'devices': None,
    'num_workers': None,
    'progress_bar': False,
    'only_sentence_level': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
bleurt, comet, joblib, numpy, sacrebleu, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type partial — a partial output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a partial 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
comet Ran
ran on a synthesized input
cyberagentailab/mbr-anomaly/utils/metrics.py
code served (permissive licence) · get_code("917b0ff85f3309b5")
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 torch
import numpy as np
from typing import List, Dict, Any, Tuple, Optional


class MockCometOutput:
    """Stand-in for COMET model output object."""
    def __init__(self, scores, system_score):
        self.scores = scores
        self.system_score = system_score


class MockCometModel:
    """Minimal COMET model that implements the predict method."""
    def predict(self, comet_input, batch_size, gpus, devices, num_workers, progress_bar):
        # comet_input is a list of dicts with 'src', 'mt', 'ref' keys
        scores = [0.75 + 0.01 * i for i in range(len(comet_input))]
        system_score = np.mean(scores)
        return MockCometOutput(scores, system_score)


# Create sample data
hyps = ["hello world", "good morning"]
refs = ["hello world", "good morning"]
srcs = ["source one", "source two"]

# Create mock COMET model
comet_model = MockCometModel()

# Set batch size and GPU parameters
comet_bsize = 2
n_gpus = 1
devices = None
num_workers = None
progress_bar = True

ARGS = {
    "hyps": hyps,
    "refs": refs,
    "srcs": srcs,
    "comet_model": comet_model,
    "comet_bsize": comet_bsize,
    "n_gpus": n_gpus,
    "devices": devices,
    "num_workers": num_workers,
    "progress_bar": progress_bar,
}
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 — 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
find_version Ran
ran; our contract draft was wrong, not the code
cyberagentailab/mbr-anomaly/fairseq/release_utils.py
code served (permissive licence) · get_code("d4192f5e85770fdd")
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 tempfile
import os

# Create a temporary file with a version string
temp_dir = tempfile.mkdtemp()
version_file_path = os.path.join(temp_dir, "version.txt")
with open(version_file_path, "w") as f:
    f.write("1.2.3\n")

ARGS = {
    "version_file_path": version_file_path
}
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
load_hypotheses Ran
ran on a synthesized input
cyberagentailab/mbr-anomaly/utils/mbr_decoding_utils.py
code served (permissive licence) · get_code("fd7d75f3aa2bc11e")
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 DataFrame. 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 json
import pandas as pd
import tempfile
import os
import pickle

# Create temporary directory for test files
temp_dir = tempfile.mkdtemp()
hypotheses_prefix = os.path.join(temp_dir, 'test_hypotheses')

# Create the hypotheses JSON file
hypotheses_data = {
    '0': {
        'source': 'source text 0',
        'reference': 'reference text 0',
        'hypotheses': [
            {'hypothesis_index': 0, 'score1': 0.5},
            {'hypothesis_index': 1, 'score1': 0.7}
        ]
    },
    '1': {
        'source': 'source text 1',
        'reference': 'reference text 1',
        'hypotheses': [
            {'hypothesis_index': 0, 'score1': 0.6},
            {'hypothesis_index': 1, 'score1': 0.8}
        ]
    }
}

with open(hypotheses_prefix + '.hypotheses.json', 'w') as f:
    json.dump(hypotheses_data, f)

# Create the scores pickle file
scores_data = pd.DataFrame({
    'example_index': ['0', '0', '1', '1'],
    'hypothesis_index': [0, 1, 0, 1],
    'score2': [0.1, 0.2, 0.3, 0.4]
}).set_index(['example_index', 'hypothesis_index'])

with open(hypotheses_prefix + '.scores.pkl', 'wb') as f:
    pickle.dump(scores_data, f)

ARGS = {
    'hypotheses_prefix': hypotheses_prefix
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
parse_hyp_prefix Ran
ran on a synthesized input
cyberagentailab/mbr-anomaly/utils/mbr_decoding_utils.py
code served (permissive licence) · get_code("c93f7bf5bc2604b8")
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 re
import os
import tempfile

# Create a temporary directory structure to simulate the prefix path
# The function expects: os.path.dirname(prefix) -> some dir, then os.path.basename on that
# Then it splits on '.' to get lang and sampling_id from the last two parts
# Then it parses sampling_id with regex split on 'nb' and 'seed'

# Example: prefix could be something like "/path/to/en.beam_search.nb5seed42"
# os.path.dirname(prefix) = "/path/to"
# os.path.basename("/path/to") = "to"
# But we need the basename to contain lang and sampling_id separated by dots

# Better approach: create a prefix that when dirname'd and basename'd gives us what we need
# If prefix = "/path/en.beam_search.nb5seed42/somefile"
# Then os.path.dirname(prefix) = "/path/en.beam_search.nb5seed42"
# Then os.path.basename of that = "en.beam_search.nb5seed42"
# Then split('.')[-2:] gives us ["beam_search", "nb5seed42"]

# Create a temporary directory to work with
tmpdir = tempfile.mkdtemp()
subdir_name = "en.beam_search.nb5seed42"
subdir_path = os.path.join(tmpdir, subdir_name)
os.makedirs(subdir_path, exist_ok=True)

# The prefix should point to a file inside this directory
prefix = os.path.join(subdir_path, "dummy_file")

ARGS = {
    "prefix": prefix
}
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 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
read_generation_output Ran
ran on a synthesized input
cyberagentailab/mbr-anomaly/postprocess_hypotheses.py
code served (permissive licence) · get_code("35697f1b76043c82")
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 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 os
import tempfile
import numpy as np

# Create a temporary file with fairseq-generate output format
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_filename = temp_file.name

# Write sample generation output in fairseq format
output_content = """S-0\tHello world
T-0\tBonjour monde
H-0\t0\t-2.5\tSalut monde
D-0\t0\tSalut monde
P-0\t-0.5 -0.3 -0.2 -0.1
S-1\tGood morning
T-1\tBon matin
H-1\t0\t-2.8\tBon jour
D-1\t0\tBon jour
P-1\t-0.6 -0.4 -0.3 -0.2
"""

temp_file.write(output_content)
temp_file.close()

ARGS = {
    'generation_output': temp_filename,
    'generated_data': {}
}
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 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
wrapped_partial Ran
ran on a synthesized input
cyberagentailab/mbr-anomaly/utils/metrics.py
code served (permissive licence) · get_code("4a9fc72802d4b61c")
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 partial. 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
from functools import partial, wraps

torch.manual_seed(0)

def sample_function(a, b, c=10):
    """A simple function to wrap with wrapped_partial"""
    return a + b + c

def another_function(x, y, z=5):
    """Another function to demonstrate wrapped_partial"""
    return x * y * z

# Test wrapped_partial with a simple function
ARGS = {
    "f": sample_function,
    "args": (3, 4),
    "kwargs": {"c": 20}
}
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 partial — a partial output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a partial 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
get_next_version Not yet run
unverified (harvested, no recorded run)
cyberagentailab/mbr-anomaly/fairseq/release_utils.py
code served (permissive licence) · get_code("44b6e8848744468f")
How it ran

no invocation recorded.

load_mbrd_by_candidate Not yet run
unverified (harvested, no recorded run)
cyberagentailab/mbr-anomaly/utils/mbr_decoding_utils.py
code served (permissive licence) · get_code("50ef5110abf6dfee")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 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.

FunctionAlso present inEarliest-datedOthers named
find_version 12 other papers
12 later
2022.emnlp-main.663 (2022 (year only))
Learning with Rejection for Abstractive Text Summarization
2210.02592 (2022-10)
CCC-wav2vec 2.0: Clustering aided Cross Contrastive Self-supervised learning of speech representations
2023.acl-long.380 (2023 (year only))
TemplateGEC: Improving Grammatical Error Correction with Detection Template
and 9 more not named here
get_next_version 12 other papers
12 later
2022.emnlp-main.663 (2022 (year only))
Learning with Rejection for Abstractive Text Summarization
2210.02592 (2022-10)
CCC-wav2vec 2.0: Clustering aided Cross Contrastive Self-supervised learning of speech representations
2023.acl-long.380 (2023 (year only))
TemplateGEC: Improving Grammatical Error Correction with Detection Template
and 9 more not named here

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

This paper describes Facebook FAIR's submission to the WMT19 shared news translation task. We participate in two language pairs and four language directions, English <-> German and English <-> Russian. Following our submission from last year, our baseline systems are large BPE-based transformer models trained with the Fairseq sequence modeling toolkit which rely on sampled back-translations. This year we experiment with different bitext data filtering schemes, as well as with adding filtered back-translated data. We also ensemble and fine-tune our models on domain-specific data, then decode using noisy channel model reranking. Our submissions are ranked first in all four directions of the human evaluation campaign. On En->De, our system significantly outperforms other systems as well as human translations. This system improves upon our WMT'18 submission by 4.5 BLEU points.

For agents

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

get_harvested_code_for_paper("1907.06616")
get_code_for_paper("1907.06616")
have("1907.06616")

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

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

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

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

Connect an agent — have() is free.