NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Mambular: A Sequential Model for Tabular Deep Learning

Anton Frederik Thielmann, Manish Kumar, Christoph Weisser, Arik Reuter, Benjamin Säfken, Soheila Samiee

TL;DR

Mambular adapts the Mamba state-space architecture for tabular data by treating individual features as elements of a sequence. The model achieves performance competitive with state-of-the-art gradient-boosted decision trees (GBDTs) like CatBoost, positioning autoregressive models as a powerful new alternative for deep learning on spreadsheets.

What Problem Does This Paper Address?

Tabular data—the kind found in CSVs and SQL databases—remains the "final frontier" for deep learning. While neural networks dominate vision and language, tabular tasks are still ruled by Gradient-Boosted Decision Trees (GBDTs) like XGBoost and CatBoost. Deep learning models often struggle with the mixed categorical and numerical features, missing values, and lack of inherent spatial or sequential structure found in tables.

Recent attempts to use Transformers (like FT-Transformer) have shown promise but can be computationally expensive. This paper explores whether the Mamba architecture—a structured state-space model (SSM) known for its efficiency and success in modeling long sequences—can be effectively adapted to capture the complex feature interactions necessary for high-performance tabular machine learning.

Methods

The authors introduce Mambular, which treats each feature in a row as a "token" in a sequence. The architecture consists of three main stages:

  1. Encoding & Embedding:
    • Numerical features are processed using Periodic Linear Encodings (PLE), which helps the model capture non-linear relationships better than simple linear scaling.
  2. Categorical features are mapped to embeddings using distinct vocabularies for each feature.
  3. All features are projected into a shared embedding space, forming an input matrix of shape (Batch Size × Number of Features × Embedding Dimension).
Figure 1: Generation of the input matrix that are fed through the Mamba blocks. The categorical features are tokenized and embedded similar to classical embeddings for language models. The numerical features are encoded and embedded via a simple linear layer. The final input matrix of the Mamba blocks are the concatenated embeddings z ∈RN×J×d with embedding dimension d.
  1. Mamba Blocks: The embeddings pass through a stack of Mamba blocks. Each block includes a 1D convolutional layer (to provide local feature context and some order invariance) followed by a State-Space Model (SSM) layer that captures global dependencies across the "sequence" of features.
  2. Pooling & Head: After the sequential processing, the model uses a pooling strategy—Average Pooling was found to be the most robust—to collapse the feature dimension into a single vector, which is then fed into a task-specific linear head for regression or classification.
Figure 3: The forward pass of a single sequence in the model. After embedding the inputs, the embeddings are passed to several Mamba blocks. The tabular head is a single task specific output layer. Before being passed to the Linear Layer, the contextualized embeddings are pooled via average pooling. For bidirectional processing a second block with a flipped sequence is used and the learnable matrices are not shared between the directions.

Datasets

The model was evaluated on 12 diverse datasets from the UCI Machine Learning Repository, including:

  • Regression: Diamonds, Abalone, California Housing, Wine Quality, Parkinsons, House Sales, and CPU small.
  • Classification: Bank, Adult, Churn, FICO, and Marketing.

The authors also validated Mambular on a separate benchmark suite from Fischer et al. (2023) to ensure the results were not specific to a single set of tasks.

Key Insights and Ideas

  • Sequentiality in Non-Sequential Data: Even though tabular features don't have a natural order (unlike words in a sentence), treating them as a sequence allows the SSM to iteratively build a "hidden state" that represents the interaction of all features seen so far.
  • The Kernel Size Catch: Because Mambular uses 1D convolutions, the "distance" between features in the sequence matters. If two highly interacting features (like Latitude and Longitude) are placed further apart than the convolution kernel size, performance can suffer. This can be mitigated by increasing the kernel size to match the total number of features.
  • Simplicity is Robust: The authors tested bidirectional processing and specialized interaction layers, but found that a standard, one-directional Mamba stack with average pooling performed best across the board.
  • Feature-Incremental Potential: One unique advantage of this sequential approach is that new features can be appended to the end of the sequence, potentially allowing for model updates without retraining the entire architecture from scratch.

Key Results

Mambular proved to be a top-tier performer, effectively closing the gap between deep learning and GBDTs:

  • Competitive with CatBoost: In comprehensive benchmarking, Mambular achieved the second-best average rank, statistically tying with CatBoost, the current gold standard for tabular data.
  • Outperforming XGBoost: Mambular consistently outperformed other popular GBDTs like XGBoost and LightGBM, as well as traditional neural architectures like MLPs and ResNets.
  • Distributional Regression: An extension called MambularLSS outperformed XGBoostLSS in modeling entire probability distributions (Location, Scale, and Shape), showing its versatility beyond simple point estimates.
Figure 4: Critical difference diagram for all models on the benchmark datasets reported in Table 5. The average ranks across tasks are shown in brackets next to each model. Horizontal lines indicate groups of models with no statistically significant differences in performance. Mambular achieves the second-best average rank, with no significant differences at the 5% level to the best performing model, CatBoost. Notably, the top four models do not exhibit statistically significant differences from one another. The critical differences are computed using the Conover-Friedman test (Pereira et al., 2015), as both average ranks and performance metrics across all datasets are available.

Limitations and Future Work

  • Hyperparameter Tuning: The study primarily used default configurations. The authors note that extensive tuning could likely improve results further, as is common with GBDTs.
  • Feature Ordering: While generally robust, the sensitivity to feature placement relative to the convolution kernel suggests that finding the "optimal" feature order is a promising area for future research.
  • Scaling: While Mamba scales linearly with sequence length, the "sequences" in tabular data (number of features) are typically short compared to text. The real benefit of Mamba here is its ability to model interactions, rather than just handling massive feature sets.

Summary updated

BibTeX
@misc{thielmann2024mambular,
  author = {Anton Frederik Thielmann and Manish Kumar and Christoph Weisser and Arik Reuter and Benjamin Säfken and Soheila Samiee},
  title = {{Mambular: A Sequential Model for Tabular Deep Learning}},
  year = {2024},
  eprint = {2408.06291},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.06291},
}
Figure