SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.05584 · ICML · 2025

TABFLEX: Scaling Tabular Learning to Millions with Linear Attention

Tuan Dinh, Yuchen Zeng, Wonjun Kang, Andreas Müeller, San Francisco, Furiosa Ai

arXiv · PDF · Open in the Atlas

Code that ran

8 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (8 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 0 failures of our instrument; 2 no recorded run), measured 2026-11-24; 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.05584.json · badge: /api/ran/2506.05584.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
microsoft/ticl community
Papers with Code archive
8 ran · 2 no recorded run
FunctionStatusWhere it lives
ActivationFunctionFeatureMap Ran
ran on a synthesized input · constructed an object; no result was computed
microsoft/ticl/ticl/models/tabflex.py
code served (permissive licence) · get_code("9e8875515caa76a7")
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, ActivationFunctionFeatureMap: 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)

# Create a simple activation function
activation_fn = nn.ReLU()

# Define ARGS dictionary with all parameters for ActivationFunctionFeatureMap
ARGS = {
    "query_dims": 4,
    "activation_function": activation_fn
}
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 ActivationFunctionFeatureMap — 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 ActivationFunctionFeatureMap 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
AttentionLayer Ran
ran on a synthesized input · constructed an object; no result was computed
microsoft/ticl/ticl/models/tabflex.py
code served (permissive licence) · get_code("07470eaabe305993")
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, AttentionLayer: 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)

# Create a minimal attention implementation that satisfies the interface
class SimpleAttention(nn.Module):
    def forward(self, queries, keys, values, attn_mask, query_lengths, key_lengths):
        # queries: (N, L, H, d_keys)
        # keys: (N, S, H, d_keys)
        # values: (N, S, H, d_values)
        # Return shape: (N, L, H, d_values)
        N, L, H, d_keys = queries.shape
        _, S, _, d_values = values.shape
        # Simple averaged attention: just return values averaged
        return values.mean(dim=1, keepdim=True).expand(N, L, H, d_values)

# Create a minimal mask implementation
class SimpleMask:
    pass

ARGS = {
    'attention': SimpleAttention(),
    'd_model': 16,
    'n_heads': 4,
    'd_keys': None,
    'd_values': None,
    'd_model_keys': None,
    'event_dispatcher': '',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, wandb — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type AttentionLayer — 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 AttentionLayer 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
FeatureMap Ran
ran on a synthesized input · constructed an object; no result was computed
microsoft/ticl/ticl/models/tabflex.py
code served (permissive licence) · get_code("63fe47955062a8a2")
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, FeatureMap: 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
from torch.nn.modules.transformer import Dropout, LayerNorm, Linear, Module, Optional, Tensor, _get_activation_fn

torch.manual_seed(0)

class ConcreteFeatureMap(nn.Module):
    """Concrete implementation of FeatureMap for testing."""
    
    def __init__(self, query_dims):
        super().__init__()
        self.query_dims = query_dims
        self.linear = nn.Linear(query_dims, query_dims)
    
    def new_feature_map(self, device):
        """Create a new instance of this feature map."""
        return ConcreteFeatureMap(self.query_dims)
    
    def forward_queries(self, x):
        """Encode the queries `x` using this feature map."""
        return self(x)
    
    def forward_keys(self, x):
        """Encode the keys `x` using this feature map."""
        return self(x)
    
    def forward(self, x):
        """Encode x using this feature map."""
        return self.linear(x)


query_dims = 4
feature_map_instance = ConcreteFeatureMap(query_dims)

ARGS = {
    "query_dims": query_dims,
}
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 FeatureMap — 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 FeatureMap 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
HedgehogFeatureMap Ran
ran on a synthesized input · constructed an object; no result was computed
microsoft/ticl/ticl/models/tabflex.py
code served (permissive licence) · get_code("63e1b08b70361741")
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, HedgehogFeatureMap: 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
import math

torch.manual_seed(0)

ARGS = {
    "query_dims": 4
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, wandb — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type HedgehogFeatureMap — 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 HedgehogFeatureMap 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
Linear Ran
ran on a synthesized input · constructed an object; no result was computed
microsoft/ticl/ticl/models/tabflex.py
code served (permissive licence) · get_code("3048347545e092df")
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, Linear: 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)

ARGS = {
    "num_features": 4,
    "emsize": 3,
    "replace_nan_by_zero": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, wandb — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Linear — 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 Linear 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
LinearAttention Ran
ran on a synthesized input · constructed an object; no result was computed
microsoft/ticl/ticl/models/tabflex.py
code served (permissive licence) · get_code("906b8e2e76724a87")
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, LinearAttention: 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)

# Build a minimal feature map
class SimpleFeatureMap(nn.Module):
    def __init__(self, query_dims):
        super().__init__()
        self.query_dims = query_dims
    
    def new_feature_map(self, device):
        return
    
    def forward_queries(self, x):
        return torch.nn.functional.elu(x) + 1
    
    def forward_keys(self, x):
        return torch.nn.functional.elu(x) + 1
    
    def forward(self, x):
        return torch.nn.functional.elu(x) + 1

# Build a minimal attention mask
class SimpleAttentionMask:
    def __init__(self):
        self.all_ones = True

# Build a minimal key_lengths object
class SimpleKeyLengths:
    def __init__(self, batch_size, seq_len, num_heads):
        self.float_matrix = torch.ones(batch_size, seq_len, num_heads, 1)

# Define tensor dimensions with distinct sizes
batch_size = 2
query_seq_len = 3
key_seq_len = 4
num_heads = 2
query_dims = 8
value_dims = 5

# Create tensors
queries = torch.randn(batch_size, query_seq_len, num_heads, query_dims)
keys = torch.randn(batch_size, key_seq_len, num_heads, query_dims)
values = torch.randn(batch_size, key_seq_len, num_heads, value_dims)

# Create feature map factory
def feature_map_factory(query_dimensions):
    return SimpleFeatureMap(query_dimensions)

# Create attention mask and key lengths
attn_mask = SimpleAttentionMask()
key_lengths = SimpleKeyLengths(batch_size, key_seq_len, num_heads)

ARGS = {
    "query_dimensions": query_dims,
    "feature_map": feature_map_factory,
    "eps": 1e-6
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, wandb — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type LinearAttention — 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 LinearAttention 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
LinearAttentionTransformerEncoderLayer Ran
ran on a synthesized input · constructed an object; no result was computed
microsoft/ticl/ticl/models/tabflex.py
code served (permissive licence) · get_code("6c470274c75d4235")
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, LinearAttentionTransformerEncoderLayer: 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
import torch.nn.functional as F
from torch.nn.modules.transformer import Dropout, LayerNorm, Linear, Module, Optional, Tensor, _get_activation_fn

torch.manual_seed(0)

class SimpleAttention(nn.Module):
    """Minimal attention implementation that satisfies the interface."""
    def forward(self, query, key, value, attn_mask=None, query_lengths=None, key_lengths=None):
        batch_size = query.shape[0]
        seq_len = query.shape[1]
        d_model = query.shape[2]
        return torch.randn(batch_size, seq_len, d_model)

attention_module = SimpleAttention()

ARGS = {
    'attention': attention_module,
    'd_model': 4,
    'd_ff': 16,
    'dropout': 0.1,
    'activation': 'relu',
    'event_dispatcher': ''
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, wandb — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type LinearAttentionTransformerEncoderLayer — 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 LinearAttentionTransformerEncoderLayer 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
TransformerEncoderSimple Ran
ran on a synthesized input · constructed an object; no result was computed
microsoft/ticl/ticl/models/tabflex.py
code served (permissive licence) · get_code("e03948f848458eb6")
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, TransformerEncoderSimple: 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)

# Create a minimal TransformerEncoderLayer-like module
class MinimalEncoderLayer(nn.Module):
    def __init__(self, d_model=4):
        super().__init__()
        self.linear = nn.Linear(d_model, d_model)
    
    def forward(self, src, src_mask=None):
        # The function expects to call mod(output, src_mask=mask)
        return self.linear(src)

# Create encoder_layer_creator function
def encoder_layer_creator():
    return MinimalEncoderLayer(d_model=4)

# Create a minimal norm layer
norm_layer = nn.LayerNorm(4)

# Create input tensor: shape (seq_len, batch_size, d_model)
src = torch.randn(5, 2, 4)

# Create optional mask (can be None or a tensor)
mask = None

ARGS = {
    "encoder_layer_creator": encoder_layer_creator,
    "num_layers": 2,
    "norm": norm_layer,
}
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 TransformerEncoderSimple — 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 TransformerEncoderSimple 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
TabFlex Not yet run
unverified (harvested, no recorded run)
microsoft/ticl/ticl/models/tabflex.py
code served (permissive licence) · get_code("c11bcae906db7823")
How it ran

no invocation recorded.

get_linear_attention_layers Not yet run
unverified (harvested, no recorded run)
microsoft/ticl/ticl/models/tabflex.py
code served (permissive licence) · get_code("357255427beeee5f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 8 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
FeatureMap
brick of this paper's assembly: model
2 other papers
2 dated earlier · 1 only as an assembly brick
2009.14794 (2020-09)
Rethinking Attention with Performers
2406.03919 (2024-06)
Vectorized Conditional Neural Fields: A Framework for Solving Time-dependent Parametric Partial Differential Equations
ActivationFunctionFeatureMap
brick of this paper's assembly: model
1 other paper
1 dated earlier
2406.03919 (2024-06)
Vectorized Conditional Neural Fields: A Framework for Solving Time-dependent Parametric Partial Differential Equations

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

Leveraging the in-context learning (ICL) capability of Large Language Models (LLMs) for tabular classification has gained significant attention for its training-free adaptability across diverse datasets. Recent advances, such as TABPFN, excel in tabular small-scale datasets but struggle to scale for large and complex datasets. Our work enhances the efficiency and scalability of TABPFN for larger datasets by incorporating linear attention mechanisms as a scalable alternative to complexity-quadratic self-attention. Our model, TABFLEX, efficiently handles tabular datasets with thousands of features and hundreds of classes, seamlessly scaling to millions of samples. For instance, TABFLEX processes the poker-hand dataset with more than a million samples in just 5 seconds. Our extensive evaluations demonstrate that TABFLEX can achieve over a 2× speedup compared to TABPFN and a 1.5× speedup over XGBoost, outperforming 25 tested baselines in terms of efficiency across a diverse range of datasets. Furthermore, TABFLEX remains highly effective in large-scale datasets, delivering strong performance with significantly reduced computational costs, especially when combined with data-efficient techniques such as dimensionality reduction and data sampling.

For agents

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

get_harvested_code_for_paper("2506.05584")
get_code_for_paper("2506.05584")
have("2506.05584")

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

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

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

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

Connect an agent — have() is free.