SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1711.00043 · 2017

Unsupervised Machine Translation Using Monolingual Corpora Only

arXiv · PDF · Open in the Atlas

Code that ran

7 of 14 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 7 no recorded run), measured 2026-11-24; 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/1711.00043.json · badge: /api/ran/1711.00043.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
Babylonpartners/MultilingualFactorAnalysis community (classifier label)
classifier basis not recorded on the link
4 ran · 5 no recorded run
barnerwothers/MUSE extension (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
keleog/PidginUNMT reimplementation (classifier label)
classifier basis: classifier_2025
0 ran · 2 no recorded run
FunctionStatusWhere it lives
bow Ran
ran, honoured the contract we drafted
Babylonpartners/MultilingualFactorAnalysis/src/utils.py
code served (permissive licence) · get_code("1017986b046fa3e5")
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 ndarray, ndim 2, dtype family float, shape (2, 4) 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 numpy as np

# Create a small word_vec dictionary
# The function iterates through sentences and looks up words in word_vec
# It accesses word_vec[w] for words, and uses word_vec.keys() as a fallback
word_vec = {
    'hello': np.array([0.1, 0.2, 0.3, 0.4]),
    'world': np.array([0.5, 0.6, 0.7, 0.8]),
    'foo': np.array([0.2, 0.3, 0.4, 0.5]),
    'bar': np.array([0.9, 0.1, 0.2, 0.3]),
}

# Create sentences - list of lists of words
# Some words are in word_vec, some might not be (to test the "if w in word_vec" check)
sentences = [
    ['hello', 'world'],
    ['foo', 'bar', 'hello'],
]

ARGS = {
    'sentences': sentences,
    'word_vec': word_vec,
    'normalize': False,
}
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 ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
chunk Ran
ran; our contract draft was wrong, not the code
barnerwothers/MUSE/src/alignment_functions.py
pointer only (licence: NOASSERTION) · get_code("40cdf0f2f7b382ee")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, barnerwothers/MUSE (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_logger Ran
ran; our contract draft was wrong, not the code
Babylonpartners/MultilingualFactorAnalysis/src/logger.py
code served (permissive licence) · get_code("00b78a626a078a5b")
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 RootLogger. 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 logging
import time
import tempfile
import os

# Create a temporary file for logging
temp_dir = tempfile.mkdtemp()
log_filepath = os.path.join(temp_dir, "test.log")

ARGS = {
    "filepath": log_filepath,
    "vb": 2
}
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 RootLogger — a RootLogger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a RootLogger 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_candidates Ran
ran; our contract draft was wrong, not the code
Babylonpartners/MultilingualFactorAnalysis/src/dico_builder.py
code served (permissive licence) · get_code("069588d6ca04276f")
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 Tensor, ndim 2, dtype family int, shape (3, 2) 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 numpy as np

torch.manual_seed(0)

def get_nn_avg_dist(emb1, emb2, knn):
    """Stand-in for get_nn_avg_dist function"""
    # Returns average distance for each embedding in emb1 to its knn neighbors in emb2
    n = emb1.size(0)
    return np.ones(n, dtype=np.float32)

class Params:
    def __init__(self, dico_method='nn', dico_max_rank=0, dico_max_size=0, 
                 dico_min_size=0, dico_threshold=0):
        self.dico_method = dico_method
        self.dico_max_rank = dico_max_rank
        self.dico_max_size = dico_max_size
        self.dico_min_size = dico_min_size
        self.dico_threshold = dico_threshold

# Create small embeddings: emb1 has 3 items, emb2 has 5 items, both 4-dimensional
emb1 = torch.randn(3, 4)
emb2 = torch.randn(5, 4)

# Create params with 'nn' method (simplest path)
params = Params(
    dico_method='nn',
    dico_max_rank=0,
    dico_max_size=0,
    dico_min_size=0,
    dico_threshold=0
)

ARGS = {
    'emb1': emb1,
    'emb2': emb2,
    'params': params
}
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 Tensor, ndim 2, dtype family int, shape (3, 2) — shape (3, 2) 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
init_with_browne Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
barnerwothers/MUSE/src/alignment_functions.py
pointer only (licence: NOASSERTION) · get_code("a1dac87bef6453c3")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, barnerwothers/MUSE (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

nll_FA Ran
ran, violated the contract we drafted
barnerwothers/MUSE/src/alignment_functions.py
pointer only (licence: NOASSERTION) · get_code("9f9b17d2052bad0d")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, barnerwothers/MUSE (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_dict Ran
ran; our contract draft was wrong, not the code
Babylonpartners/MultilingualFactorAnalysis/create_embeddings.py
code served (permissive licence) · get_code("b68d645b4c6b0a2a")
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 os
from collections import OrderedDict

# Create a temporary dictionary file with sample word pairs
temp_dir = tempfile.mkdtemp()
dict_file_path = os.path.join(temp_dir, "test_dict.txt")

# Write sample dictionary entries (word pairs separated by whitespace)
with open(dict_file_path, 'w') as f:
    f.write("hello\tbonjour\n")
    f.write("world\tmonde\n")
    f.write("good\tbon\n")

ARGS = {
    "dict_file": dict_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 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
build_dictionary Not yet run
unverified (harvested, no recorded run)
Babylonpartners/MultilingualFactorAnalysis/src/dico_builder.py
code served (permissive licence) · get_code("0a6749c257608531")
How it ran

no invocation recorded.

build_model Not yet run
unverified (harvested, no recorded run)
Babylonpartners/MultilingualFactorAnalysis/src/models.py
code served (permissive licence) · get_code("420c0f482a285b84")
How it ran

no invocation recorded.

build_seq2seq_model Not yet run
unverified (harvested, no recorded run)
keleog/PidginUNMT/src/model/seq2seq.py
pointer only (licence: NOASSERTION) · get_code("095dc5970a2bfba9")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, keleog/PidginUNMT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_init_state Not yet run
unverified (harvested, no recorded run)
keleog/PidginUNMT/src/model/seq2seq.py
pointer only (licence: NOASSERTION) · get_code("32cc6430b851519d")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, keleog/PidginUNMT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

initialize_exp Not yet run
unverified (harvested, no recorded run)
Babylonpartners/MultilingualFactorAnalysis/src/utils.py
code served (permissive licence) · get_code("21a3d4ec06ede4eb")
How it ran

no invocation recorded.

load_fasttext_model Not yet run
unverified (harvested, no recorded run)
Babylonpartners/MultilingualFactorAnalysis/src/utils.py
code served (permissive licence) · get_code("2b93faa3b4ec4872")
How it ran

no invocation recorded.

sample_language_pair Not yet run
unverified (harvested, no recorded run)
Babylonpartners/MultilingualFactorAnalysis/create_embeddings.py
code served (permissive licence) · get_code("affe0a63af29c7b1")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 8 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 5 later) and 6 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
build_dictionary 4 other papers
1 dated earlier, 3 later
1710.04087 (2017-10)
Word Translation Without Parallel Data
2106.03084 (2021-06)
Combining Static Word Embeddings and Contextual Representations for Bilingual Lexicon Induction
2305.14189 (2023-05)
Beyond Shared Vocabulary: Increasing Representational Word Similarities across Languages for Multilingual Machine Translation
and 1 more not named here
get_candidates 2 other papers
2 later
2305.14189 (2023-05)
Beyond Shared Vocabulary: Increasing Representational Word Similarities across Languages for Multilingual Machine Translation
2306.01930 (2023-06)
Structural Similarities Between Language Models and Neural Response Measurements
build_seq2seq_model 1 other paper
1 later
1908.10430 (2019-08)
Unsupervised Domain Adaptation for Neural Machine Translation with Domain-Aware Feature Embeddings
chunk 1 other paper
1 dated earlier
1710.04087 (2017-10)
Word Translation Without Parallel Data
get_init_state 1 other paper
1 later
1908.10430 (2019-08)
Unsupervised Domain Adaptation for Neural Machine Translation with Domain-Aware Feature Embeddings
init_with_browne 1 other paper
1 dated earlier
1710.04087 (2017-10)
Word Translation Without Parallel Data
load_fasttext_model 1 other paper
1 later
1904.02343 (2019-04)
Density Matching for Bilingual Word Embedding
nll_FA 1 other paper
1 dated earlier
1710.04087 (2017-10)
Word Translation Without Parallel Data

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

Machine translation has recently achieved impressive performance thanks to recent advances in deep learning and the availability of large-scale parallel corpora. There have been numerous attempts to extend these successes to low-resource language pairs, yet requiring tens of thousands of parallel sentences. In this work, we take this research direction to the extreme and investigate whether it is possible to learn to translate even without any parallel data. We propose a model that takes sentences from monolingual corpora in two different languages and maps them into the same latent space. By learning to reconstruct in both languages from this shared feature space, the model effectively learns to translate without using any labeled data. We demonstrate our model on two widely used datasets and two language pairs, reporting BLEU scores of 32.8 and 15.1 on the Multi30k and WMT English-French datasets, without using even a single parallel sentence at training time.

For agents

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

get_harvested_code_for_paper("1711.00043")
get_code_for_paper("1711.00043")
have("1711.00043")

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

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

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

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

Connect an agent — have() is free.