SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1910.11856 · 2019

On the Cross-lingual Transferability of Monolingual Representations

arXiv · PDF · Open in the Atlas

Code that ran

6 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 6 have no contract verdict; 0 failures of our instrument; 1 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/1910.11856.json · badge: /api/ran/1910.11856.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
alon-albalak/xor-covid community (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
FunctionStatusWhere it lives
checkDate Ran
ran on a synthesized input
alon-albalak/xor-covid/testDates.py
code served (permissive licence) · get_code("9430683808935722")
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 bool, ndim 0, dtype family float, 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 datetime

# The function checkDate expects three datetime.date or datetime.datetime objects
# startDay and endDay define a range, docDate is the date to check

startDay = datetime.datetime(2020, 1, 1)
endDay = datetime.datetime(2024, 12, 31)
docDate = "2022-06-15"

# Define months list needed by checkDate function
months = ["January", "February", "March", "April", "May", "June", 
          "July", "August", "September", "October", "November", "December"]

ARGS = {
    "startDay": startDay,
    "endDay": endDay,
    "docDate": docDate
}
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 bool, ndim 0, dtype family float, 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
checkLanguage Ran
ran on a synthesized input
alon-albalak/xor-covid/covid_qa_demo.py
code served (permissive licence) · get_code("9a1240d74f429b49")
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 bool, ndim 0, dtype family float, 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
import numpy as np

peraton_language_mapping = {'ara': 'Arabic', 'spa': 'Spanish', 'ger': 'German', 'por': 'Portuguese', 'fre': 'French', 'tur': 'Turkish', 'rus': 'Russian', 'dut': 'Dutch', 'ita': 'Italian', 'pol': 'Polish', 'slv': 'Slovene', 'cze': 'Czech', 'eng': 'English', 'chi': 'Chinese'}

def checkLanguage(doc_language, language_selection):
    if 'All' in language_selection:
        return True
    elif doc_language in peraton_language_mapping and peraton_language_mapping[doc_language] in language_selection:
        return True
    else:
        return False

# Test case 1: doc_language is a valid code, language_selection contains the mapped language
ARGS = {
    'doc_language': 'eng',
    'language_selection': ['English', 'Spanish', 'French']
}
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 bool, ndim 0, dtype family float, 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
convert_COUGH_to_retrieval_dataset Ran
ran on a synthesized input
alon-albalak/xor-covid/splitCOUGH.py
code served (permissive licence) · get_code("d354687d5c6880f7")
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 random
import csv
import tempfile
import os

# Create a temporary CSV file with the required structure
temp_dir = tempfile.mkdtemp()
csv_path = os.path.join(temp_dir, 'FAQ_Bank.csv')

# Write a minimal valid CSV file matching COUGH dataset structure
with open(csv_path, 'w', newline='') as f:
    writer = csv.writer(f)
    # Header row with required fields
    writer.writerow(['index', 'question', 'answer', 'url', 'language'])
    # Add sample data rows in multiple languages to ensure splits work
    for i in range(50):
        lang = 'en' if i < 25 else 'fr'
        writer.writerow([
            f'id_{i}',
            f'What is question {i}?',
            f'This is the answer to question {i}.',
            f'http://example.com/article_{i}',
            lang
        ])

ARGS = {
    'data_path': csv_path,
    'dev_percent': 15,
    'test_percent': 15,
    'neg_para_samples': 30,
    'seed': 10
}
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 — 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
dateInRange Ran
ran on a synthesized input
alon-albalak/xor-covid/testDates.py
code served (permissive licence) · get_code("5d121d6b67c4adda")
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 bool, ndim 0, dtype family float, 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.

from datetime import datetime, timedelta

# Create date objects for testing
startDay = datetime(2020, 1, 15)
endDay = datetime(2023, 12, 20)
docDate = datetime(2022, 6, 10)

# Test values for month and year
month = 6
year = 2022

# monthOnly and yearOnly are boolean flags
monthOnly = False
yearOnly = False

ARGS = {
    'startDay': startDay,
    'endDay': endDay,
    'docDate': docDate,
    'monthOnly': monthOnly,
    'month': month,
    'yearOnly': yearOnly,
    'year': year
}
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 bool, ndim 0, dtype family float, 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
load_csv_to_list Ran
ran on a synthesized input
alon-albalak/xor-covid/splitCOUGH.py
code served (permissive licence) · get_code("03c8e71d5877a0d5")
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 csv
import tempfile
import os

# Create a temporary CSV file with sample data
temp_dir = tempfile.mkdtemp()
csv_path = os.path.join(temp_dir, "test.csv")

with open(csv_path, 'w', newline='') as f:
    writer = csv.writer(f)
    writer.writerow(['name', 'age', 'city'])
    writer.writerow(['Alice', '30', 'New York'])
    writer.writerow(['Bob', '25', 'Los Angeles'])
    writer.writerow(['Charlie', '35', 'Chicago'])

ARGS = {
    'csv_path': csv_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 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
loss_dense Ran
ran on a synthesized input
alon-albalak/xor-covid/criterions.py
code served (permissive licence) · get_code("507efbaa4928f16d")
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 torch
import torch.nn as nn

torch.manual_seed(0)

class DummyDenseModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.proj = nn.Linear(4, 3)
    
    def forward(self, batch):
        # batch is a dict with some input
        # return dict with 'q', 'c', 'neg_c' tensors
        batch_size = 2
        embedding_dim = 3
        
        q = torch.randn(batch_size, embedding_dim)
        c = torch.randn(batch_size, embedding_dim)
        neg_c = torch.randn(batch_size, embedding_dim)
        
        return {
            'q': q,
            'c': c,
            'neg_c': neg_c
        }

model = DummyDenseModel()

batch = {
    'input_ids': torch.randint(0, 100, (2, 4)),
    'attention_mask': torch.ones(2, 4)
}

ARGS = {
    'model': model,
    'batch': batch
}
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 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
chunk_text Not yet run
unverified (harvested, no recorded run)
alon-albalak/xor-covid/internalCORD_utils.py
code served (permissive licence) · get_code("81605ae475dd6fab")
How it ran

no invocation recorded.

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

State-of-the-art unsupervised multilingual models (e.g., multilingual BERT) have been shown to generalize in a zero-shot cross-lingual setting. This generalization ability has been attributed to the use of a shared subword vocabulary and joint training across multiple languages giving rise to deep multilingual abstractions. We evaluate this hypothesis by designing an alternative approach that transfers a monolingual model to new languages at the lexical level. More concretely, we first train a transformer-based masked language model on one language, and transfer it to a new language by learning a new embedding matrix with the same masked language modeling objective, freezing parameters of all other layers. This approach does not rely on a shared vocabulary or joint training. However, we show that it is competitive with multilingual BERT on standard cross-lingual classification benchmarks and on a new Cross-lingual Question Answering Dataset (XQuAD). Our results contradict common beliefs of the basis of the generalization ability of multilingual models and suggest that deep monolingual models learn some abstractions that generalize across languages. We also release XQuAD as a more comprehensive cross-lingual benchmark, which comprises 240 paragraphs and 1190 question-answer pairs from SQuAD v1.1 translated into ten languages by professional translators.

For agents

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

get_harvested_code_for_paper("1910.11856")
get_code_for_paper("1910.11856")
have("1910.11856")

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

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

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

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

Connect an agent — have() is free.