SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.09843 · 2022

Table Retrieval May Not Necessitate Table-specific Model Design

arXiv · PDF · Open in the Atlas

Code that ran

11 of 12 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 4 have no contract verdict; 7 failures of our instrument; 1 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2205.09843.json · badge: /api/ran/2205.09843.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
zorazrw/nqt-retrieval canonical (classifier label)
classifier basis not recorded on the link
11 ran · 1 no recorded run
FunctionStatusWhere it lives
dot_product_scores Ran
ran; our contract draft was wrong, not the code
zorazrw/nqt-retrieval/dpr/models/biencoder.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/dpr, is pointer only (licence: NOASSERTION) · get_code("928414780ee23e45")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from facebookresearch/dpr, and GitHub could not classify the licence of that repository (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.

compute_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zorazrw/nqt-retrieval/dpr/models/reader.py
code served (permissive licence) · get_code("1df81ea9d2da7b70")
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) and returned Tensor, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
from torch.nn import CrossEntropyLoss

torch.manual_seed(0)

# Parameters based on function signature and usage:
# N = batch size (number of questions)
# M = number of candidate passages
# The function reshapes tensors to (N*M, -1) and processes them

N = 2
M = 3
seq_len = 4  # sequence length for start/end positions and logits

# start_positions: shape (N, M, 1) -> reshaped to (N*M, 1)
start_positions = torch.randint(0, seq_len, (N, M, 1), dtype=torch.long)

# end_positions: shape (N, M, 1) -> reshaped to (N*M, 1)
end_positions = torch.randint(0, seq_len, (N, M, 1), dtype=torch.long)

# answer_mask: shape (N, M, 1) -> reshaped to (N*M, 1)
# Used as float mask for multiplication
answer_mask = torch.randint(0, 2, (N, M, 1), dtype=torch.long)

# start_logits: shape (N*M, seq_len) before reshape, so input is (N, M, seq_len)
start_logits = torch.randn(N, M, seq_len)

# end_logits: shape (N*M, seq_len) before reshape, so input is (N, M, seq_len)
end_logits = torch.randn(N, M, seq_len)

# relevance_logits: shape (N*M,) before reshape to (N, M), so input is (N, M)
relevance_logits = torch.randn(N, M)

ARGS = {
    "start_positions": start_positions,
    "end_positions": end_positions,
    "answer_mask": answer_mask,
    "start_logits": start_logits,
    "end_logits": end_logits,
    "relevance_logits": relevance_logits,
    "N": N,
    "M": M,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float — no output shape is stated: observe_signature.py could not observe it (call:AssertionError)
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
cosine_scores Ran
ran; our contract draft was wrong, not the code
zorazrw/nqt-retrieval/dpr/models/biencoder.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/dpr, is pointer only (licence: NOASSERTION) · get_code("4c7d079ed8d8dd58")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from facebookresearch/dpr, and GitHub could not classify the licence of that repository (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.

get_annotated_table_ids Ran
ran on a synthesized input
zorazrw/nqt-retrieval/convert_data.py
code served (permissive licence) · get_code("0c6cadd319db2130")
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 tempfile
import json
import os

# Create a temporary file with JSONL content
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.jsonl')
temp_path = temp_file.name

# Write sample data to the temporary file
samples = [
    {'table': {'tableId': 'table_001'}},
    {'table': {'tableId': 'table_002'}},
    {'table': {'tableId': 'table_003'}},
]

for sample in samples:
    temp_file.write(json.dumps(sample) + '\n')

temp_file.close()

ARGS = {
    'anno_path': temp_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 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_encoder_params_state_from_cfg Ran
ran; our contract draft was wrong, not the code
zorazrw/nqt-retrieval/dpr/options.py
pointer only (licence: MIT); the stored copy get_code serves, from ruyue0001/backdoor_dpr, is pointer only (licence: NONE) · get_code("70967062c0b97377")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ruyue0001/backdoor_dpr, and GitHub detected no licence in that repository when it was checked. 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.

load_tables_dict Ran
ran on a synthesized input
zorazrw/nqt-retrieval/convert_data.py
code served (permissive licence) · get_code("a7d60264a4371491")
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 file with JSONL content
temp_dir = tempfile.mkdtemp()
tables_file = os.path.join(temp_dir, 'tables.jsonl')

# Write sample JSONL data
with open(tables_file, 'w') as f:
    f.write(json.dumps({'id': 'table1', 'name': 'users', 'rows': 10}) + '\n')
    f.write(json.dumps({'id': 'table2', 'name': 'orders', 'rows': 20}) + '\n')
    f.write(json.dumps({'id': 'table3', 'name': 'products', 'rows': 5}) + '\n')

ARGS = {
    'tables_file': tables_file,
    'key': 'id'
}
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
move_to_cuda Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zorazrw/nqt-retrieval/dpr/utils/model_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from MiuLab/UMR, is pointer only (licence: NONE) · get_code("f754a83bdbe3d5ed")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from MiuLab/UMR, and GitHub detected no licence in that repository when it was checked. 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.

move_to_device Ran
ran; our contract draft was wrong, not the code
zorazrw/nqt-retrieval/dpr/utils/model_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from MiuLab/UMR, is pointer only (licence: NONE) · get_code("5ef6dc01ca2773cb")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from MiuLab/UMR, and GitHub detected no licence in that repository when it was checked. 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.

setup_cfg_gpu Ran
ran; our contract draft was wrong, not the code
zorazrw/nqt-retrieval/dpr/options.py
pointer only (licence: MIT); the stored copy get_code serves, from ruyue0001/backdoor_dpr, is pointer only (licence: NONE) · get_code("5964d1c902593444")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ruyue0001/backdoor_dpr, and GitHub detected no licence in that repository when it was checked. 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.

setup_for_distributed_mode Ran
ran on a synthesized input
zorazrw/nqt-retrieval/dpr/utils/model_utils.py
code served (permissive licence) · get_code("acb496d6cacbc58f")
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 torch
from torch import nn
import torch.optim as optim

torch.manual_seed(0)

# Create a minimal model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Instantiate model and optimizer
model = SimpleModel()
optimizer = optim.SGD(model.parameters(), lr=0.01)

# Set device to CPU
device = torch.device('cpu')

# Define arguments
ARGS = {
    'model': model,
    'optimizer': optimizer,
    'device': device,
    'n_gpu': 1,
    'local_rank': -1,
    'fp16': False,
    'fp16_opt_level': 'O1'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
apex, torch — 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
shuffle_nq_table_by_column Ran
ran on a synthesized input
zorazrw/nqt-retrieval/process_table.py
code served (permissive licence) · get_code("b4bc9c9849591a70")
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 random

ARGS = {
    'table': {
        'rows': [
            {
                'cells': ['cell_0_0', 'cell_0_1', 'cell_0_2']
            },
            {
                'cells': ['cell_1_0', 'cell_1_1', 'cell_1_2']
            },
            {
                'cells': ['cell_2_0', 'cell_2_1', 'cell_2_2']
            }
        ]
    },
    'prob': 0.7
}
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
shuffle_nq_table_by_row Not yet run
unverified (harvested, no recorded run)
zorazrw/nqt-retrieval/process_table.py
code served (permissive licence) · get_code("71d9b6ee2c505c02")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 7 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 7 later) and 5 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
cosine_scores 7 other papers
2 dated earlier, 5 later
1911.03868 (2019-11)
Knowledge Guided Text Retrieval and Reading for Open Domain Question Answering
2106.05346 (2021-06)
End-to-End Training of Multi-Document Reader and Retriever for Open-Domain Question Answering
2024.findings-acl.708 (2024 (year only))
Analyze, Generate and Refine: Query Expansion with LLMs for Zero-Shot Open-Domain QA
and 4 more not named here
dot_product_scores 7 other papers
2 dated earlier, 5 later
1911.03868 (2019-11)
Knowledge Guided Text Retrieval and Reading for Open Domain Question Answering
2106.05346 (2021-06)
End-to-End Training of Multi-Document Reader and Retriever for Open-Domain Question Answering
2024.findings-acl.708 (2024 (year only))
Analyze, Generate and Refine: Query Expansion with LLMs for Zero-Shot Open-Domain QA
and 4 more not named here
compute_loss 5 other papers
2 dated earlier, 3 later
2109.04014 (2021-09)
Weakly-Supervised Visual-Retriever-Reader for Knowledge-based Question Answering
2110.03611 (2021-10)
Adversarial Retriever-Ranker for dense text retrieval
2024.findings-acl.708 (2024 (year only))
Analyze, Generate and Refine: Query Expansion with LLMs for Zero-Shot Open-Domain QA
and 2 more not named here
get_encoder_params_state_from_cfg 1 other paper
1 later
2402.13532 (2024-02)
Backdoor Attacks on Dense Retrieval via Public and Unintentional Triggers
move_to_cuda 1 other paper
1 later
2403.03516 (2024-03)
Unsupervised Multilingual Dense Retrieval via Generative Pseudo Labeling
move_to_device 1 other paper
1 later
2403.03516 (2024-03)
Unsupervised Multilingual Dense Retrieval via Generative Pseudo Labeling
setup_cfg_gpu 1 other paper
1 later
2402.13532 (2024-02)
Backdoor Attacks on Dense Retrieval via Public and Unintentional Triggers

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

Tables are an important form of structured data for both human and machine readers alike, providing answers to questions that cannot, or cannot easily, be found in texts. Recent work has designed special models and training paradigms for table-related tasks such as table-based question answering and table retrieval. Though effective, they add complexity in both modeling and data acquisition compared to generic text solutions and obscure which elements are truly beneficial. In this work, we focus on the task of table retrieval, and ask: "is table-specific model design necessary for table retrieval, or can a simpler text-based model be effectively used to achieve a similar result?" First, we perform an analysis on a table-based portion of the Natural Questions dataset (NQ-table), and find that structure plays a negligible role in more than 70% of the cases. Based on this, we experiment with a general Dense Passage Retriever (DPR) based on text and a specialized Dense Table Retriever (DTR) that uses table-specific model designs. We find that DPR performs well without any table-specific design and training, and even achieves superior results compared to DTR when fine-tuned on properly linearized tables. We then experiment with three modules to explicitly encode table structures, namely auxiliary row/column embeddings, hard attention masks, and soft relation-based attention biases. However, none of these yielded significant improvements, suggesting that table-specific model design may not be necessary for table retrieval.

For agents

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

get_harvested_code_for_paper("2205.09843")
get_code_for_paper("2205.09843")
have("2205.09843")

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

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

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

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

Connect an agent — have() is free.