SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.19912 · 2023

Structure-Aware Language Model Pretraining Improves Dense Retrieval on Structured Data

arXiv · PDF · Open in the Atlas

Code that ran

8 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, 2 violated it and 3 have no contract verdict; 3 failures of our instrument; 0 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/2305.19912.json · badge: /api/ran/2305.19912.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
openmatch/openmatch canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
get_current_ckpt_step Ran
ran on a synthesized input
openmatch/openmatch/src/openmatch/driver/async_eval_dr.py
code served (permissive licence) · get_code("82420f6350858142")
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 int, ndim 0, dtype family int, 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 tempfile
import os
import shutil

# Create a temporary directory structure with checkpoint subdirectories
temp_dir = tempfile.mkdtemp()

# Create some checkpoint directories
os.makedirs(os.path.join(temp_dir, 'checkpoint-100'), exist_ok=True)
os.makedirs(os.path.join(temp_dir, 'checkpoint-200'), exist_ok=True)
os.makedirs(os.path.join(temp_dir, 'checkpoint-300'), exist_ok=True)

# Create a minimal model_args object with model_name_or_path attribute
class ModelArgs:
    def __init__(self, model_name_or_path):
        self.model_name_or_path = model_name_or_path

model_args = ModelArgs(model_name_or_path=temp_dir)

# Define evaluated_steps as a set of already evaluated checkpoint steps
evaluated_steps = {100, 200}

ARGS = {
    "model_args": model_args,
    "evaluated_steps": evaluated_steps,
}
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 int, ndim 0, dtype family int, 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
get_idx Ran
ran on a synthesized input
openmatch/openmatch/src/openmatch/dataset/inference_dataset.py
code served (permissive licence) · get_code("90f77daf63ac2f1f")
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

torch.manual_seed(0)

# The function get_idx expects a dict-like object (obj) with optional keys:
# '_id', 'id', 'text_id', 'sample_id'
# It calls .get() on the object, so it needs to be a dict.

# Test case 1: object with '_id' field
obj_with_underscore_id = {'_id': 12345, 'other_field': 'data'}

ARGS = {
    'obj': obj_with_underscore_id
}
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
has_answers Ran
ran, violated the contract we drafted
openmatch/openmatch/src/openmatch/qa_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from cxcscmu/longembeddinganalysis, is pointer only (licence: NONE) · get_code("b46a95cff9bf41b5")
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 cxcscmu/longembeddinganalysis, 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_beir_positives Ran
ran; our contract draft was wrong, not the code
openmatch/openmatch/src/openmatch/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from cxcscmu/longembeddinganalysis, is pointer only (licence: NONE) · get_code("222c1daa5a08da51")
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 cxcscmu/longembeddinganalysis, 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_beir_qrels Ran
ran on a synthesized input
openmatch/openmatch/src/openmatch/dataset/beir_dataset.py
code served (permissive licence) · get_code("3d25cb3600eef8dc")
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 csv
import tempfile
import os

# Create a temporary TSV file with BEIR qrels format
temp_dir = tempfile.mkdtemp()
qrels_file = os.path.join(temp_dir, "qrels.tsv")

# Write sample qrels data
with open(qrels_file, 'w', newline='') as f:
    writer = csv.DictWriter(f, fieldnames=['query-id', 'corpus-id', 'score'], delimiter='\t')
    writer.writeheader()
    writer.writerow({'query-id': 'q1', 'corpus-id': 'doc1', 'score': '1'})
    writer.writerow({'query-id': 'q1', 'corpus-id': 'doc2', 'score': '0'})
    writer.writerow({'query-id': 'q2', 'corpus-id': 'doc3', 'score': '2'})
    writer.writerow({'query-id': 'q2', 'corpus-id': 'doc1', 'score': '1'})

ARGS = {
    'qrels_file': qrels_file
}
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_from_trec Ran
ran; our contract draft was wrong, not the code
openmatch/openmatch/src/openmatch/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from cxcscmu/longembeddinganalysis, is pointer only (licence: NONE) · get_code("8d2e5d58238cd53f")
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 cxcscmu/longembeddinganalysis, 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_positives Ran
ran; our contract draft was wrong, not the code
openmatch/openmatch/src/openmatch/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from cxcscmu/longembeddinganalysis, is pointer only (licence: NONE) · get_code("9e4c17e0bdb9dcd5")
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 cxcscmu/longembeddinganalysis, 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.

regex_match Ran
ran, violated the contract we drafted
openmatch/openmatch/src/openmatch/qa_utils.py
code served (permissive licence) · get_code("93b0eef32604c3f7")
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 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 re

# The function regex_match takes two parameters:
# 1. text: a string to search within
# 2. pattern: a regex pattern string to compile and search for

ARGS = {
    "text": "The quick brown fox jumps over the lazy dog. This is a test string with multiple lines.\nSecond line here.",
    "pattern": r"quick.*fox"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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

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, 8 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 4 the same month, 5 later) and 0 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
regex_match 6 other papers
2 dated earlier, 1 the same month, 2 later, 1 same year, order not determinable
2101.00294 (2021-01)
Reader-Guided Passage Reranking for Open-Domain Question Answering
2102.10073 (2021-02)
Pyserini: An Easy-to-Use Python Toolkit to Support Replicable IR Research with Sparse and Dense Representations
2023.findings-acl.734 (2023 (year only))
Structure-Aware Language Model Pretraining Improves Dense Retrieval on Structured Data
and 3 more not named here
has_answers 3 other papers
1 the same month, 1 later, 1 same year, order not determinable
2023.findings-acl.734 (2023 (year only))
Structure-Aware Language Model Pretraining Improves Dense Retrieval on Structured Data
2305.17331 (2023-05)
Augmentation-Adapted Retriever Improves Generalization of Language Models as Generic Plug-In
2404.04163 (2024-04)
Dwell in the Beginning: How Language Models Embed Long Documents for Dense Retrieval
load_from_trec 3 other papers
1 the same month, 1 later, 1 same year, order not determinable
2023.findings-acl.734 (2023 (year only))
Structure-Aware Language Model Pretraining Improves Dense Retrieval on Structured Data
2305.17331 (2023-05)
Augmentation-Adapted Retriever Improves Generalization of Language Models as Generic Plug-In
2404.04163 (2024-04)
Dwell in the Beginning: How Language Models Embed Long Documents for Dense Retrieval
load_beir_positives 2 other papers
1 later, 1 same year, order not determinable
2023.findings-acl.734 (2023 (year only))
Structure-Aware Language Model Pretraining Improves Dense Retrieval on Structured Data
2404.04163 (2024-04)
Dwell in the Beginning: How Language Models Embed Long Documents for Dense Retrieval
load_beir_qrels 2 other papers
1 the same month, 1 same year, order not determinable
2023.findings-acl.734 (2023 (year only))
Structure-Aware Language Model Pretraining Improves Dense Retrieval on Structured Data
2305.17331 (2023-05)
Augmentation-Adapted Retriever Improves Generalization of Language Models as Generic Plug-In
load_positives 2 other papers
1 later, 1 same year, order not determinable
2023.findings-acl.734 (2023 (year only))
Structure-Aware Language Model Pretraining Improves Dense Retrieval on Structured Data
2404.04163 (2024-04)
Dwell in the Beginning: How Language Models Embed Long Documents for Dense Retrieval
get_current_ckpt_step 1 other paper
1 same year, order not determinable
2023.findings-acl.734 (2023 (year only))
Structure-Aware Language Model Pretraining Improves Dense Retrieval on Structured Data
get_idx 1 other paper
1 same year, order not determinable
2023.findings-acl.734 (2023 (year only))
Structure-Aware Language Model Pretraining Improves Dense Retrieval on Structured 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-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

This paper presents Structure Aware Dense Retrieval (SANTA) model, which encodes user queries and structured data in one universal embedding space for retrieving structured data. SANTA proposes two pretraining methods to make language models structure-aware and learn effective representations for structured data: 1) Structured Data Alignment, which utilizes the natural alignment relations between structured data and unstructured data for structure-aware pretraining. It contrastively trains language models to represent multi-modal text data and teaches models to distinguish matched structured data for unstructured texts. 2) Masked Entity Prediction, which designs an entity-oriented mask strategy and asks language models to fill in the masked entities. Our experiments show that SANTA achieves state-of-the-art on code search and product search and conducts convincing results in the zero-shot setting. SANTA learns tailored representations for multi-modal text data by aligning structured and unstructured data pairs and capturing structural semantics by masking and predicting entities in the structured data. All codes are available at https://github.com/OpenMatch/OpenMatch.

For agents

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

get_harvested_code_for_paper("2305.19912")
get_code_for_paper("2305.19912")
have("2305.19912")

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

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

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

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

Connect an agent — have() is free.