SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.05197 · 2022

Mixed-modality Representation Learning and Pre-training for Joint Table-and-Text Retrieval in OpenQA

arXiv · PDF · Open in the Atlas

Code that ran

5 of 8 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 5 have no contract verdict; 0 failures of our instrument; 3 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/2210.05197.json · badge: /api/ran/2210.05197.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
jun-jie-huang/otter canonical (classifier label)
classifier basis not recorded on the link
5 ran · 3 no recorded run
FunctionStatusWhere it lives
dict_list_sort_by_key Ran
ran on a synthesized input
jun-jie-huang/otter/preprocessing/utils_preprocess.py
code served (permissive licence) · get_code("47e51503d27fbd9a")
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

torch.manual_seed(0)

# Create a list of dictionaries with various keys and values
list_of_dicts = [
    {"score": 42, "name": "alice"},
    {"score": 15, "name": "bob"},
    {"score": 87, "name": "charlie"},
    {"score": 3, "name": "dave"}
]

# Define ARGS mapping all parameters
ARGS = {
    "list": list_of_dicts,
    "key": "score",
    "reverse": True
}
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 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
get_table_block Ran
ran on a synthesized input
jun-jie-huang/otter/qa/qa_dataset.py
code served (permissive licence) · get_code("571485ecb697bdb6")
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 torch

# Analyze the function:
# - node: accessed with indexing node[0] and node[2], so it's a sequence
# - documents: accessed with indexing documents[node[2]], should be dict-like or list
# - The function extracts node[0] (title), node[2] (index), and documents[node[2]] (table_block string)
# - table_block is a string that gets concatenated with another string

# Create node as a tuple/list with at least 3 elements
node = ("Table Title", "unused_element", 0)

# Create documents as a dict where key 0 maps to a string
documents = {
    0: "Column1 | Column2\nData1 | Data2"
}

ARGS = {
    "node": node,
    "documents": documents
}
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
merge_gt_linked_passages Ran
ran on a synthesized input
jun-jie-huang/otter/preprocessing/qa_preprocess.py
code served (permissive licence) · get_code("aad01ec50728d536")
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 random

def merge_gt_linked_passages(gt_passages, linked_passages):
    if len(linked_passages) <= len(gt_passages):
        return gt_passages
    elif not gt_passages:
        return linked_passages
    else:
        gt_ids = [gt['passage_id'] for gt in gt_passages]
        neg_passages = [item for item in linked_passages if item['passage_id'] not in gt_ids]
        output = gt_passages + random.choices(neg_passages, k=min(len(neg_passages), len(linked_passages) - len(gt_passages)))
        return output

# Setup code
random.seed(42)

# Create gt_passages - list of dicts with 'passage_id' key
gt_passages = [
    {'passage_id': 'gt_1', 'text': 'ground truth passage 1'},
    {'passage_id': 'gt_2', 'text': 'ground truth passage 2'},
]

# Create linked_passages - list of dicts with 'passage_id' key
# This should be longer than gt_passages to test the merging logic
linked_passages = [
    {'passage_id': 'gt_1', 'text': 'ground truth passage 1'},
    {'passage_id': 'gt_2', 'text': 'ground truth passage 2'},
    {'passage_id': 'linked_1', 'text': 'linked passage 1'},
    {'passage_id': 'linked_2', 'text': 'linked passage 2'},
    {'passage_id': 'linked_3', 'text': 'linked passage 3'},
]

ARGS = {
    'gt_passages': gt_passages,
    'linked_passages': linked_passages,
}
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
rank_doc_tfidf Ran
ran on a synthesized input
jun-jie-huang/otter/preprocessing/utils_preprocess.py
code served (permissive licence) · get_code("c549f48941a79b4a")
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 numpy as np
from scipy.linalg import norm
from sklearn.feature_extraction.text import TfidfVectorizer
import copy

# Create test data
question = "what is machine learning"

# Create corpus as list of dicts with 'passage' key
corpus = [
    {'passage': "machine learning is a subset of artificial intelligence"},
    {'passage': "deep learning uses neural networks for learning"},
    {'passage': "supervised learning requires labeled data for training"}
]

ARGS = {
    'question': question,
    'corpus': corpus
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, sklearn — 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
read_json Ran
ran on a synthesized input
jun-jie-huang/otter/preprocessing/utils_preprocess.py
code served (permissive licence) · get_code("327db3228bc36b13")
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 sample data
temp_dir = tempfile.mkdtemp()
temp_json_path = os.path.join(temp_dir, "test_data.json")

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

with open(temp_json_path, 'w', encoding='utf-8') as fp:
    json.dump(sample_data, fp)

ARGS = {
    "path": temp_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
get_negative_idx Not yet run
unverified (harvested, no recorded run)
jun-jie-huang/otter/preprocessing/prepro_bart_to_pretrain.py
code served (permissive licence) · get_code("547f8cf4afeada84")
How it ran

no invocation recorded.

merge_negatives Not yet run
unverified (harvested, no recorded run)
jun-jie-huang/otter/preprocessing/prepro_bart_to_pretrain.py
code served (permissive licence) · get_code("973737581ef68fb7")
How it ran

no invocation recorded.

pretrain_bart_preprocess Not yet run
unverified (harvested, no recorded run)
jun-jie-huang/otter/preprocessing/prepro_bart_to_pretrain.py
code served (permissive licence) · get_code("f1dfe90055317a9b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 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
read_json 1 other paper
1 later
2211.09374 (2022-11)
Execution-based Evaluation for Data Science Code Generation Models

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

Retrieving evidences from tabular and textual resources is essential for open-domain question answering (OpenQA), which provides more comprehensive information. However, training an effective dense table-text retriever is difficult due to the challenges of table-text discrepancy and data sparsity problem. To address the above challenges, we introduce an optimized OpenQA Table-Text Retriever (OTTeR) to jointly retrieve tabular and textual evidences. Firstly, we propose to enhance mixed-modality representation learning via two mechanisms: modality-enhanced representation and mixed-modality negative sampling strategy. Secondly, to alleviate data sparsity problem and enhance the general retrieval ability, we conduct retrieval-centric mixed-modality synthetic pre-training. Experimental results demonstrate that OTTeR substantially improves the performance of table-and-text retrieval on the OTT-QA dataset. Comprehensive analyses examine the effectiveness of all the proposed mechanisms. Besides, equipped with OTTeR, our OpenQA system achieves the state-of-the-art result on the downstream QA task, with 10.1% absolute improvement in terms of the exact match over the previous best system. All the code and data are available at https://github.com/Jun-jie-Huang/OTTeR.

For agents

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

get_harvested_code_for_paper("2210.05197")
get_code_for_paper("2210.05197")
have("2210.05197")

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

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

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

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

Connect an agent — have() is free.