SOMTab: Set-Order Mamba for Efficient Tabular In-Context Learning
Organizations: Institute of Statistics and Big Data, Renmin University of China, Beijing, China
Abstract
Tabular foundation models based on in-context learning have recently emerged as strong alternatives to task-specific model fitting. However, the current performance frontier remains dominated by attention-heavy architectures, where attention is used throughout the modeling pipeline. This raises a natural question: is attention necessary at every stage of tabular in-context learning? We introduce SOMTab, a Set-Order Mamba architecture for efficient tabular in-context learning. SOMTab separates representation construction from query-conditioned retrieval. For row and column representations, it maps unordered table tokens into stable latent slots and applies Mamba-based state-space mixing to construct compact representations. For final prediction, it retains attention-based in-context learning to preserve query-conditioned retrieval from labeled context examples. We further introduce DCH-TailMix, a synthetic prior that combines degree-corrected graph heterogeneity with mixed heavy-tailed regimes to diversify synthetic dependency structures. Across tabular benchmarks, SOMTab approaches the performance of strong Transformer-based tabular foundation models while achieving faster inference and lower GPU memory usage, yielding a favorable efficiency--accuracy trade-off.
Figures & tables
| Method | Norm. LL | Accuracy | Macro F1 | Time/1K |
|---|---|---|---|---|
| SOMTab | 0.054 | 0.849 | 0.785 | 0.019 |
| TabICLv2 | 0.029 | 0.854 | 0.790 | 0.463 |
| TabICLv2(1 est.) | 0.046 | 0.853 | 0.789 | 0.151 |
| TabICL | 0.105 | 0.846 | 0.776 | 0.453 |
| TabPFNv2 | 0.100 | 0.849 | 0.779 | 0.675 |
| RealMLP | 0.498 | 0.830 | 0.757 | 4.379 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Shape | Description |
|---|---|---|
| initial cell tokens | ||
| latent memory for feature | ||
| context-conditioned cell tokens | ||
| ordered slots for row | ||
| row representation | ||
| representations of all rows |
| Graph family | Probability | Base sparsity | Structural terms | Parent cap |
|---|---|---|---|---|
| controlled heavy-tail | degree corrections; | at most | ||
| modular heavy-tail | module-pair and low-rank biases | at most | ||
| low-rank correlated connectivity | correlated low-rank edge logits | at most | ||
| dense weak-dependency | denser modular and low-rank effects | at most |
| Family | Construction | Sampled ranges / constraints |
|---|---|---|
| linear | random matrix projection | Gaussian, low-rank, SVD-shaped, kernel, or activated matrix; input dimension |
| neural | shallow random MLP | depth – ; width – ; sampled input/output activations |
| tree | ensemble of random split trees | – trees; depth – ; input dimension |
| discretization | nearest-center partition followed by projection | – centers; distance with log-uniform |
| GP-like | finite random Fourier-feature map | features; axis-aligned probability ; spectral tail log-uniform |
| quadratic | symmetric quadratic form with a bias coordinate | input dimension |
| Setting | Stage 1 | Stage 2 |
|---|---|---|
| Initialization | random | Stage-1 checkpoint |
| Training steps | ||
| Sequence length | – | – |
| Length sampling | log-uniform | log-uniform |
| Context fraction | ||
| Initial learning rate |
| Variant | Representation | Prior / reader change |
|---|---|---|
| SOMTab | Set-Order Mamba | DCH-TailMix + attention reader |
| Cauchy | Set-Order Mamba | random Cauchy graph prior |
| SCM–Tree | Set-Order Mamba | MLP-SCM + tree-SCM |
| Tab-Full | Set-Order Mamba | DCH-TailMix + Mamba reader |
| Dataset | SOMTab | TabICLv2 | TabICL | TabPFNv2 | RealMLP | CatBoost | XGBoost | ExtraTrees | RandomForest |
|---|---|---|---|---|---|---|---|---|---|
| mice_protein_expression | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 0.972 | 0.954 | 1.000 | 0.986 |
| shuttle | 1.000 | 0.999 | 0.999 | 0.999 | 1.000 | 1.000 | 1.000 | 0.999 | 1.000 |
| JapaneseVowels | 0.997 | 0.999 | 0.999 | 0.999 | 0.990 | 0.960 | 0.979 | 0.985 | 0.974 |
| gas-drift | 0.997 | 0.997 | 0.997 | 0.996 | 0.996 | 0.991 | 0.995 | 0.996 | 0.994 |
| pendigits | 0.996 | 0.997 | 0.997 | 0.996 | 0.998 | 0.986 | 0.989 | 0.991 | 0.991 |
| thyroid | 0.994 | 0.994 | 0.993 | 0.997 | 0.994 | 0.995 | 0.997 | 0.983 | 0.997 |
Tabular ICL
Tabular in-context learning (ICL) uses examples in a table to adapt pretrained models to prediction tasks without task-specific weight updates.
See all 108 papers