SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.01171 · 2024

Multilingual Retrieval Augmented Generation for Culturally-Sensitive Tasks: A Benchmark for Cross-lingual Robustness

arXiv · PDF · Open in the Atlas

Code that ran

12 of 16 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 10 failures of our instrument; 4 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/2410.01171.json · badge: /api/ran/2410.01171.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
manestay/bordirlines canonical (classifier label)
classifier basis: census
12 ran · 4 no recorded run
FunctionStatusWhere it lives
calc_ci Ran
ran, honoured the contract we drafted
manestay/bordirlines/generation/gen_all_results_table_multirun.py
code served (permissive licence) · get_code("e0e86d5ea38ef05a")
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 scipy.stats
import numpy as np

torch = None  # Not needed for this function

# The function calc_ci takes:
# - stdev: a numeric value (standard deviation)
# - samples: an integer (number of samples)
# - conf: a float (confidence level, default 0.95)

ARGS = {
    "stdev": 2.5,
    "samples": 30,
    "conf": 0.95
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
calculate_log_probabilities_for_candidates Ran
ran; our contract draft was wrong, not the code
manestay/bordirlines/generation/generation.py
code served (permissive licence) · get_code("383171f09ff3e8c9")
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)

# Build a minimal tokenizer stand-in
class SimpleTokenizer:
    def __init__(self):
        self.vocab = {
            'hello': 100,
            'world': 101,
            'test': 102,
            'candidate': 103,
            '<|eot_id|>': 50256
        }
        self.id_to_token = {v: k for k, v in self.vocab.items()}
    
    def __call__(self, text, return_tensors=None, add_special_tokens=False):
        # Simple tokenization: split by space and map to IDs
        tokens = text.split()
        token_ids = []
        for token in tokens:
            if token in self.vocab:
                token_ids.append(self.vocab[token])
            else:
                # Fallback for unknown tokens
                token_ids.append(104)
        
        input_ids = torch.tensor([token_ids])
        
        if return_tensors == 'pt':
            return type('obj', (object,), {'input_ids': input_ids})()
        return input_ids
    
    def convert_tokens_to_ids(self, token):
        return self.vocab.get(token, None)

# Create tokenizer instance
tokenizer = SimpleTokenizer()

# Build all_token_probs: list of numpy arrays
# Each array contains log probabilities for all tokens at that position
# We'll create 3 positions, with vocab size of 50257 (standard)
vocab_size = 50257
all_token_probs = [
    np.random.randn(vocab_size).astype(np.float32),  # Position 0
    np.random.randn(vocab_size).astype(np.float32),  # Position 1
    np.random.randn(vocab_size).astype(np.float32),  # Position 2
]

# Ensure the token IDs we'll use have valid log probs
all_token_probs[0][100] = -1.5  # "hello"
all_token_probs[1][101] = -2.0  # "world"
all_token_probs[2][50256] = -0.5  # "<|eot_id|>"

# Create candidates list
candidates = ["hello world"]

ARGS = {
    "all_token_probs": all_token_probs,
    "candidates": candidates,
    "tokenizer": tokenizer,
}
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
compare_dicts Ran
ran, honoured the contract we drafted
manestay/bordirlines/generation/check_query_json.py
code served (permissive licence) · get_code("37d3512123c2c4df")
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)

# Construct test dictionaries for compare_dicts
dict1 = {
    'model_config': {
        'hidden_size': 256,
        'num_layers': 2,
        'dropout': 0.1
    },
    'training_params': {
        'learning_rate': 0.001,
        'batch_size': 32
    },
    'layers': [3, 1, 4, 1, 5],
    'name': 'model_v1'
}

dict2 = {
    'model_config': {
        'hidden_size': 256,
        'num_layers': 2,
        'dropout': 0.1
    },
    'training_params': {
        'learning_rate': 0.001,
        'batch_size': 32
    },
    'layers': [5, 4, 3, 1, 1],
    'name': 'model_v1'
}

ARGS = {
    'dict1': dict1,
    'dict2': dict2,
    'path': ''
}
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
format_group Ran
ran; our contract draft was wrong, not the code
manestay/bordirlines/generation/gen_all_results_table.py
code served (permissive licence) · get_code("70b34c4796078f26")
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 pandas as pd
import numpy as np

# Create a sample DataFrame with float and non-float columns
data = {
    'group': ['A', 'A', 'A'],
    'Metric1': [10.5, 20.3, 15.7],
    'Metric2': [5.0, 5.0, 5.0],
    'Delta_Score': [2.1, 1.5, 0.8],
    'Category': ['X', 'Y', 'Z']
}

group_df = pd.DataFrame(data)

ARGS = {
    'group_df': group_df
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
gen_table Ran
ran; our contract draft was wrong, not the code
manestay/bordirlines/generation/gen_all_results_table.py
code served (permissive licence) · get_code("cfd231f817d2a9ad")
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.

from pathlib import Path
import json
import tempfile
import pandas as pd

# Create temporary directory for test files
temp_dir = Path(tempfile.mkdtemp())

# Create sample input files with proper structure
sample_data_1 = {
    "KB CS": 0.85,
    "Control CS": 0.75,
    "Non-control CS": 0.65,
    "Delta CS": 0.10,
    "Delta CS unnormalized": 0.05,
    "Consistency CS unk": 0.80,
    "Consistency CS all": 0.78,
    "Response Countries mean": 5.2,
    "Response Countries stdev": 1.3
}

sample_data_2 = {
    "KB CS": 0.90,
    "Control CS": 0.80,
    "Non-control CS": 0.70,
    "Delta CS": 0.15,
    "Delta CS unnormalized": 0.08,
    "Consistency CS unk": 0.85,
    "Consistency CS all": 0.83,
    "Response Countries mean": 6.1,
    "Response Countries stdev": 1.5
}

# Create test files with names that parse correctly
# Format: {role}-{ir_mode}_{ir_mode_part2}_{something}_{model}_{num_paragraphs}.json
file1 = temp_dir / "query-retriever_no_ir_xyz_bert_5.json"
file2 = temp_dir / "query-reader_qlang_en_abc_gpt2_10.json"

with open(file1, 'w') as f:
    json.dump(sample_data_1, f)

with open(file2, 'w') as f:
    json.dump(sample_data_2, f)

input_paths = [file1, file2]

ARGS = {
    'input_paths': input_paths
}
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
get_config Ran
ran; our contract draft was wrong, not the code
manestay/bordirlines/generation/gen_all_results_table.py
code served (permissive licence) · get_code("341667fa3efb145a")
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

torch.manual_seed(0)

# The function get_config takes a single parameter 'stem' which is a string
# It splits the string by underscores and processes it into a config dictionary
# We need to provide a valid stem string that will parse correctly

# Looking at the function logic:
# - It splits by '_' and expects either 5 or 6 parts
# - If 6 parts, it combines arr[1] and arr[2]
# - It extracts 'role' from arr[0] if it contains '-', otherwise from arr[2]
# - Returns a dict with 'IR Mode', 'Role', 'Model', 'Num Paragraphs'

# Let's construct a valid 5-part stem:
# arr[0]: something-role_format (contains '-' for role extraction)
# arr[1]: IR_Mode
# arr[2]: role_fallback
# arr[3]: Model
# arr[4]: Num_Paragraphs

stem = "prefix-myrole_IRMode_rolefallback_ModelName_5"

ARGS = {
    'stem': stem
}
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
get_territory_claimants_and_langs_map Ran
ran; our contract draft was wrong, not the code
manestay/bordirlines/lib.py
code served (permissive licence) · get_code("ef76c6beda4c7143")
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 datasets
import torch

# Create a small territories dataset
territories_data = {
    'Territory': ['Island A', 'Island B'],
    'Claimants': [['CountryX', 'CountryY'], ['CountryY', 'CountryZ']]
}
territories_ds = datasets.Dataset.from_dict(territories_data)

# Create countries info dictionary with language codes
countries_info = {
    'CountryX': {'Lang_Code': 'en'},
    'CountryY': {'Lang_Code': 'fr'},
    'CountryZ': {'Lang_Code': 'de'}
}

ARGS = {
    'territories_ds': territories_ds,
    'countries_info': countries_info
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets, 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
get_territory_langs_map Ran
ran; our contract draft was wrong, not the code
manestay/bordirlines/lib.py
code served (permissive licence) · get_code("a7f3025a11ce10be")
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 datasets

# Create a small territories dataset
territories_data = {
    'Territory': ['Territory1', 'Territory2'],
    'Claimants': [['CountryA', 'CountryB'], ['CountryC']]
}
territories_ds = datasets.Dataset.from_dict(territories_data)

# Create countries_info dict with language codes for each country
countries_info = {
    'CountryA': {'Lang_Code': 'en'},
    'CountryB': {'Lang_Code': 'fr'},
    'CountryC': {'Lang_Code': 'es'}
}

ARGS = {
    'territories_ds': territories_ds,
    'countries_info': countries_info
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets — 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
get_title2id Ran
ran; our contract draft was wrong, not the code
manestay/bordirlines/get_wiki_articles.py
code served (permissive licence) · get_code("9ea10d5ef8677130")
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.

class MockEntityData:
    def __init__(self, ids, titles, not_found):
        self.ids = ids
        self.titles = titles
        self.not_found = not_found


# Create test data
entity1 = MockEntityData(
    ids=[1001, 1002, 1003],
    titles=["Alice", "Bob", "Charlie"],
    not_found=["Unknown1", "Unknown2"]
)

entity2 = MockEntityData(
    ids=[2001, 2002],
    titles=["David", "Eve"],
    not_found=["Unknown3"]
)

entity2ids = {
    "entity1": entity1,
    "entity2": entity2
}

ARGS = {
    "entity2ids": entity2ids,
    "add_not_found": 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 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
load_dataset Ran
ran; our contract draft was wrong, not the code
manestay/bordirlines/generation/generation_lib.py
code served (permissive licence) · get_code("ca72cfcf540903ab")
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 Dataset. 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 datasets

# Mock the datasets.load_dataset to prevent network calls
original_load_dataset = datasets.load_dataset

def mock_load_dataset(path, lang, split=None, n_hits=None, trust_remote_code=None, relevance_filter=None, cache_dir=None):
    # Return a mock Dataset object instead of fetching from network
    return datasets.Dataset.from_dict({
        "text": ["Sample paragraph 1", "Sample paragraph 2"],
        "id": [1, 2]
    })

datasets.load_dataset = mock_load_dataset

# Define arguments for the load_dataset function
ARGS = {
    'lang': 'en',
    'split': 'train',
    'num_paragraphs': 10,
    'relevance_filter': 'high'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset 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
load_json Ran
ran; our contract draft was wrong, not the code
manestay/bordirlines/generation/check_query_json.py
code served (permissive licence) · get_code("456ea162315edf33")
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 json
import tempfile
import os

# Create a temporary JSON file with test data
temp_dir = tempfile.mkdtemp()
test_json_path = os.path.join(temp_dir, "test.json")

test_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "object"}
}

with open(test_json_path, 'w', encoding='utf-8') as f:
    json.dump(test_data, f)

ARGS = {
    "file_path": test_json_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 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
load_with_progress Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
manestay/bordirlines/generation/generation_lib.py
code served (permissive licence) · get_code("317bb9bbcd22cdaf")
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 3, 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
from concurrent.futures import ThreadPoolExecutor, as_completed
from tqdm import tqdm

torch.manual_seed(0)

def dummy_processing_func(args):
    """A simple function that takes args and returns a result"""
    x, y = args
    return x + y

# Create a list of arguments to process
# Each element is a tuple of (tensor1, tensor2) that will be passed to dummy_processing_func
args_list = [
    (torch.randn(2, 4), torch.randn(2, 4)),
    (torch.randn(2, 4), torch.randn(2, 4)),
    (torch.randn(2, 4), torch.randn(2, 4)),
    (torch.randn(2, 4), torch.randn(2, 4)),
]

ARGS = {
    'func': dummy_processing_func,
    'args_list': args_list,
    'num_threads': 2,
    'desc': 'Test Processing'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 3, 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
generate_next_tokens Not yet run
unverified (harvested, no recorded run)
manestay/bordirlines/generation/generation.py
code served (permissive licence) · get_code("d36bc8f80093fb9a")
How it ran

no invocation recorded.

get_wikipedia_langlinks Not yet run
unverified (harvested, no recorded run)
manestay/bordirlines/get_wiki_articles.py
code served (permissive licence) · get_code("b083d81036f81b00")
How it ran

no invocation recorded.

load_borderlines_hf Not yet run
unverified (harvested, no recorded run)
manestay/bordirlines/lib.py
code served (permissive licence) · get_code("64e73289ea465067")
How it ran

no invocation recorded.

query_openai Not yet run
unverified (harvested, no recorded run)
manestay/bordirlines/generation/generation.py
code served (permissive licence) · get_code("b2d772cb7fde06e6")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 15 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
load_json 1 other paper
1 dated earlier
2405.04950 (2024-05)
VisionGraph: Leveraging Large Multimodal Models for Graph Theory Problems in Visual Context

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

The paradigm of retrieval-augmented generated (RAG) helps mitigate hallucinations of large language models (LLMs). However, RAG also introduces biases contained within the retrieved documents. These biases can be amplified in scenarios which are multilingual and culturally-sensitive, such as territorial disputes. We thus introduce BordIRLines, a dataset of territorial disputes paired with retrieved Wikipedia documents, across 49 languages. We evaluate the cross-lingual robustness of this RAG setting by formalizing several modes for multilingual retrieval. Our experiments on several LLMs show that incorporating perspectives from diverse languages can in fact improve robustness; retrieving multilingual documents best improves response consistency and decreases geopolitical bias over RAG with purely in-language documents. We also consider how RAG responses utilize presented documents, finding a much wider variance in the linguistic distribution of response citations, when querying in low-resource languages. Our further analyses investigate the various aspects of a cross-lingual RAG pipeline, from retrieval to document contents. We release our benchmark and code to support continued research towards equitable information access across languages at https://huggingface.co/datasets/borderlines/bordirlines.

For agents

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

get_harvested_code_for_paper("2410.01171")
get_code_for_paper("2410.01171")
have("2410.01171")

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

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

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

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

Connect an agent — have() is free.