SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.10707 · NeurIPS · 2025

ConTextTab: A Semantics-Aware Tabular In-Context Learner

Marco Spinaci, Marek Polewczyk, Sam Thelin, Maximilian Schambach

arXiv · PDF · Open in the Atlas

Code that ran

3 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2506.10707.json · badge: /api/ran/2506.10707.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
sap-samples/contexttab canonical (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
SAP-samples/sap-rpt-1-oss community
Papers with Code archive
2 ran · 3 no recorded run
FunctionStatusWhere it lives
DateEmbeddings Ran
ran on a synthesized input · constructed an object; no result was computed
SAP-samples/sap-rpt-1-oss/sap_rpt_oss/model/embeddings.py
code served (permissive licence) · get_code("ce325afd5ae0c1f9")
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 an instance of its own class, DateEmbeddings: the run constructed the object and did not call it, so no result was computed. 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)

# DateEmbeddings takes hidden_size as its only parameter
hidden_size = 8

# Create the input tensor for forward pass
# Shape: (batch_size=2, sequence_length=3, 4 date components)
# date_year_month_day_weekday[:, :, 0] -> year (0-51)
# date_year_month_day_weekday[:, :, 1] -> month (0-12)
# date_year_month_day_weekday[:, :, 2] -> day (0-31)
# date_year_month_day_weekday[:, :, 3] -> weekday (0-7)
date_input = torch.tensor([
    [[10, 5, 15, 2], [30, 11, 28, 4], [0, 1, 1, 0]],
    [[25, 6, 20, 3], [45, 12, 31, 6], [5, 3, 14, 1]]
], dtype=torch.long)

ARGS = {
    "hidden_size": hidden_size
}
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 DateEmbeddings — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DateEmbeddings 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
LRU_Cache Ran
ran on a synthesized input · constructed an object; no result was computed
SAP-samples/sap-rpt-1-oss/sap_rpt_oss/model/embeddings.py
code served (permissive licence) · get_code("817fcef39bf4af00")
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 an instance of its own class, LRU_Cache: the run constructed the object and did not call it, so no result was computed. 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

ARGS = {
    "max_size": 1000
}
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 LRU_Cache — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a LRU_Cache 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
to_device Ran
ran on a synthesized input
sap-samples/contexttab/sap_rpt_oss/rpt.py
code served (permissive licence) · get_code("b7cee542c204e2d6")
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 expects a dict x where values can be:
# - torch.Tensor (will be moved to device with optional dtype conversion)
# - dict (recursive call)
# - None (allowed if raise_on_unexpected=False)
# - other types (raise error if raise_on_unexpected=True)

x = {
    'tensor1': torch.randn(2, 4, dtype=torch.float32),
    'tensor2': torch.randn(3, 5, dtype=torch.float64),
    'nested': {
        'inner_tensor': torch.randn(2, 6, dtype=torch.float32),
        'none_value': None
    },
    'none_at_top': None
}

device = torch.device('cpu')
dtype = torch.float32
raise_on_unexpected = True

ARGS = {
    'x': x,
    'device': device,
    'dtype': dtype,
    'raise_on_unexpected': raise_on_unexpected
}
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
CellEmbeddings Not yet run
unverified (harvested, no recorded run)
SAP-samples/sap-rpt-1-oss/sap_rpt_oss/model/embeddings.py
code served (permissive licence) · get_code("45767b563e510eee")
How it ran

no invocation recorded.

SentenceEmbedder Not yet run
unverified (harvested, no recorded run)
SAP-samples/sap-rpt-1-oss/sap_rpt_oss/model/embeddings.py
code served (permissive licence) · get_code("bcc26df93a6dc665")
How it ran

no invocation recorded.

Tokenizer Not yet run
unverified (harvested, no recorded run)
SAP-samples/sap-rpt-1-oss/sap_rpt_oss/model/embeddings.py
code served (permissive licence) · get_code("2abe05cf0d9e528a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 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 6 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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Tabular in-context learning (ICL) has recently achieved state-of-the-art (SOTA) performance on several tabular prediction tasks. Previously restricted to classification problems on small tables, recent advances such as TabPFN [18] and TabICL [30] have extended its use to larger datasets. Although current table-native ICL architectures are architecturally efficient and well-adapted to tabular data structures, their exclusive training on synthetic data limits their ability to fully leverage the rich semantics and world knowledge contained in real-world tabular data. At the other end of the spectrum, tabular ICL models based on pretrained large language models such as TabuLa-8B [12] integrate deep semantic understanding and world knowledge but are only able to make use of a small amount of context due to inherent architectural limitations. With the aim to combine the best of both these worlds, we introduce ConTextTab, integrating semantic understanding and alignment into a table-native ICL framework. By employing specialized embeddings for different data modalities and by training on large-scale real-world tabular data, our model is competitive with SOTA across a broad set of benchmarks while setting a new standard on the semantically rich CARTE benchmark. Code and model checkpoints are available at: https://github.com/SAP-samples/sap-rpt-1-oss.

For agents

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

get_harvested_code_for_paper("2506.10707")
get_code_for_paper("2506.10707")
have("2506.10707")

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

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

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

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

Connect an agent — have() is free.