SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.07345 · ICML · 2026

TABSWIFT: An Efficient Tabular Foundation Model with Row-Wise Attention

Han-Jia Ye, Si-Yang Liu

arXiv · PDF · Open in the Atlas

Code that ran

4 of 6 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2606.07345.json · badge: /api/ran/2606.07345.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
LAMDA-Tabular/TabSwift canonical (classifier label)
classifier basis: census
4 ran · 2 no recorded run
FunctionStatusWhere it lives
check_softmax Ran
ran, honoured the contract we drafted
LAMDA-Tabular/TabSwift/TALENT/model/methods/tabswift.py
code served (permissive licence) · get_code("c6990cbd011cf0ff")
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 ndarray, ndim 2, dtype family float, shape (2, 3) 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 numpy as np

# Create logits that are NOT already probabilities
# This will trigger the softmax conversion
logits = np.array([
    [2.0, 1.0, 0.1],
    [0.5, -1.0, 0.2]
], dtype=np.float32)

ARGS = {
    "logits": logits
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
multi_head_attention_forward Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
LAMDA-Tabular/TabSwift/TALENT/model/lib/tabswift/model/attention.py
code served (permissive licence) · get_code("a9dd34f2bf5c94fd")
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 Tensor, ndim 3, dtype family float, shape (2, 3, 8) 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 torch
import torch.nn as nn
from torch import Tensor

torch.manual_seed(0)

# Small dimensions with distinct values
batch_size = 2
tgt_len = 3
src_len = 4
embed_dim = 8
num_heads = 2
head_dim = embed_dim // num_heads

# Create tensors
query = torch.randn(batch_size, tgt_len, embed_dim)
key = torch.randn(batch_size, src_len, embed_dim)
value = torch.randn(batch_size, src_len, embed_dim)

# Projection weights and biases
in_proj_weight = torch.randn(3 * embed_dim, embed_dim)
in_proj_bias = torch.randn(3 * embed_dim)
out_proj_weight = torch.randn(embed_dim, embed_dim)
out_proj_bias = torch.randn(embed_dim)

# Gate projection weights and biases (for gating options)
gate_proj_weight = torch.randn(embed_dim, embed_dim)
gate_proj_bias = torch.randn(embed_dim)

# Attention mask - shape (tgt_len, src_len)
attn_mask_tensor = torch.zeros(tgt_len, src_len)

# Key padding mask - shape (batch_size, src_len)
key_padding_mask = torch.zeros(batch_size, src_len, dtype=torch.bool)

ARGS = {
    'query': query,
    'key': key,
    'value': value,
    'num_heads': num_heads,
    'in_proj_weight': in_proj_weight,
    'in_proj_bias': in_proj_bias,
    'dropout_p': 0.1,
    'out_proj_weight': out_proj_weight,
    'out_proj_bias': out_proj_bias,
    'training': True,
    'key_padding_mask': key_padding_mask,
    'attn_mask': attn_mask_tensor,
    'use_headwise_gate': False,
    'use_elementwise_gate': False,
    'gate_proj_weight': gate_proj_weight,
    'gate_proj_bias': gate_proj_bias,
}
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 Tensor, ndim 3, dtype family float, shape (2, 3, 8) — shape (2, 3, 8) 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
rmse Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
LAMDA-Tabular/TabSwift/TALENT/model/utils.py
code served (permissive licence) · get_code("db2fe357a8af4965")
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 float, 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 numpy as np
import sklearn.metrics as skm

# Create small ground truth array (batch size 2)
y = np.array([1.5, 2.5, 3.5, 4.5])

# Create small prediction array (same shape as y)
prediction = np.array([1.6, 2.4, 3.6, 4.4])

# Create y_info dict with policy and std
y_info = {
    'policy': 'mean_std',
    'std': 0.5
}

ARGS = {
    'y': y,
    'prediction': prediction,
    'y_info': y_info
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
sdpa_with_flattened_batch Ran
ran; our contract draft was wrong, not the code
LAMDA-Tabular/TabSwift/TALENT/model/lib/tabswift/model/attention.py
pointer only (licence: MIT); the stored copy get_code serves, from fangjuntao/ChorusTIC, is pointer only (licence: NONE) · get_code("fa8166d67efadbad")
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 fangjuntao/ChorusTIC, 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_config Not yet run
unverified (harvested, no recorded run)
LAMDA-Tabular/TabSwift/TALENT/model/utils.py
code served (permissive licence) · get_code("e248737ecd5c07ad")
How it ran

no invocation recorded.

sample_parameters Not yet run
unverified (harvested, no recorded run)
LAMDA-Tabular/TabSwift/TALENT/model/utils.py
code served (permissive licence) · get_code("a1e5bc5092674628")
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, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 4 later) and 2 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
check_softmax 2 other papers
1 dated earlier, 1 later
2407.04057 (2024-07)
TALENT: A Tabular Analytics and Learning Toolbox
2607.09710 (2026-07)
Manifold Constrained Tabular Deep Neural Networks
load_config 2 other papers
1 dated earlier, 1 later
2407.04057 (2024-07)
TALENT: A Tabular Analytics and Learning Toolbox
2607.09710 (2026-07)
Manifold Constrained Tabular Deep Neural Networks
rmse 2 other papers
1 dated earlier, 1 later
2407.04057 (2024-07)
TALENT: A Tabular Analytics and Learning Toolbox
2607.09710 (2026-07)
Manifold Constrained Tabular Deep Neural Networks
sdpa_with_flattened_batch 2 other papers
1 dated earlier, 1 later
2602.00620 (2026-02)
Rethinking Zero-Shot Time Series Classification: From Task-specific Classifiers to In-Context Inference
2608.24033 (2026-08)
ChorusTIC: Training-Free Multivariate Time Series Classification via Chorus In-Context Learning

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

Tabular foundation models, exemplified by TabPFN, perform prediction via in-context learning, inferring test labels directly from labeled training examples. They have demonstrated competitive performance, particularly on small-tomedium datasets. However, recent tabular foundation models often improve accuracy with increasingly complex architectures, incurring higher inference cost and limiting practical deployment. In this work, we revisit the original TabPFN design and show that a lightweight row-wise attention-only backbone can remain highly competitive with two simple enhancements: a gated attention stabilization mechanism and a small set of learnable register tokens that provide global context and improve pretraining quality. The resulting model, TABSWIFT, supports both classification and regression, and is competitive with stronger tabular foundation models (e.g., TabPFN v2 and TabICL) while being more efficient at inference. For latency-sensitive serving, we further introduce an adaptive layer-wise early-exit mechanism that dynamically adjusts inference depth per sample. Overall, TABSWIFT enables efficient and anytime tabular in-context learning for practical deployments.

For agents

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

get_harvested_code_for_paper("2606.07345")
get_code_for_paper("2606.07345")
have("2606.07345")

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

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

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

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

Connect an agent — have() is free.