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:
- Encoding & Embedding:
- Numerical features are processed using Periodic Linear Encodings (PLE), which helps the model capture non-linear relationships better than simple linear scaling.
- Categorical features are mapped to embeddings using distinct vocabularies for each feature.
- All features are projected into a shared embedding space, forming an input matrix of shape (Batch Size × Number of Features × Embedding Dimension).
- 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.
- 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.
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.
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