Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

FlexTab: A Flexible Encoder-Decoder Architecture for In-Context Learning Across Diverse Tabular Tasks

About

We introduce FlexTab, a flexible encoder-decoder architecture for in-context learning on tabular data that pairs a single, task-agnostic encoder with a suite of task-specific decoders. Unlike existing tabular in-context learners, which entangle feature representations with a specific prediction target, our design produces target-agnostic row embeddings that can be leveraged across a wide range of downstream tasks within a table-native in-context learning setup. We demonstrate this flexibility on six distinct problems: classification, regression, anomaly detection, clustering, entity matching, and entity classification in relational databases. Both the encoder and the task-specific decoders are trained on a large corpus of real-world, unlabeled tables. FlexTab achieves state-of-the-art performance on classification, regression, anomaly detection and entity matching, while remaining competitive with specialized models on entity classification in a relational setting. These results demonstrate that a single shared encoder, paired with task-specific decoders, can serve as an effective general-purpose backbone for diverse tabular prediction problems. The inference code and checkpoints will be made publicly available at https://github.com/SAP-samples/flextab.

Marek Polewczyk, Maximilian Schambach, Marco Spinaci, Sam Thelin, Johannes H\"ohne• 2026

Related benchmarks

TaskDatasetResultRank
Multiclass ClassificationTabArena Lite--
63
RegressionTabArena Lite
Average Rank3.6
56
Tabular Classification and RegressionTextTab
Mean Per-Task Rank2.8
34
Entity MatchingFodors-Zagats
F1 Score92.5
30
Tabular Classification and RegressionTALENT Tiny
Mean Accuracy88
28
Entity MatchingMovies
F1 Score90.2
26
Entity MatchingAverage (Febrl4, F.-Zagat, Bikes, eBooks, Movies)
F1 Score91.2
26
Tabular Classification and RegressionFull set of 158 datasets CARTE TabArena-Lite TALENT-Tiny TextTab
Mean Per-Task Rank2.7
26
Entity MatchingBikes
F1 Score86.8
26
Entity MatchingeBooks
F1 Score87.3
26
Showing 10 of 26 rows

Other info

Follow for update