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

Interpretable Additive Tabular Transformer Networks

Anton Frederik Thielmann, Arik Reuter, Thomas Kneib, David Rügamer, Benjamin SäfkenTMLR 2024

Abstract

Attention-based Transformer networks have revolutionized Natural Language Processing and achieved state-of-the-art results for tabular data modeling. However, despite their predictive power, these deep learning models often remain "black boxes," lacking transparency regarding the individual impact of features. To address this, we propose Neural Additive Tabular Transformer Networks (NATT), a framework that combines the intelligibility of Generalized Additive Models (GAMs) with the performance of Transformers. NATT offers inherent interpretability while maintaining competitive accuracy. Experiments across multiple benchmarks show that NATT performs on par with state-of-the-art methods and surpasses other interpretable approaches.

Introduction

In tabular data modeling—common in medical, financial, and administrative domains—there is a persistent trade-off between interpretability and performance. High-performance models like XGBoost or standard Tabular Transformers are accurate but opaque. Conversely, Generalized Additive Models (GAMs) and Neural Additive Models (NAMs) are "glass-box" models where predictions are the sum of individual feature effects, making them easy to visualize.

However, standard NAMs struggle with categorical data, often requiring one-hot encoding that leads to parameter explosion and fails to capture complex interactions. NATT bridges this gap by using a Transformer to process categorical features within an additive structure, gaining predictive "muscle" while preserving the "sum-of-parts" interpretability.

Methods: The NATT Architecture

NATT utilizes a hybrid architecture designed for both performance and transparency. The final prediction is a sum of individual feature effects plus a bias term:

$$\text{Prediction} = \beta_0 + f_{(cat)}(H(\mathbf{E}_\phi(\mathbf{x}_{cat}))) + \sum_{j=1}^{J} f_j(x_{j(cont)})$$

NATT Architecture and Interpretability Outputs

1. Continuous Feature Networks

Each numerical variable (e.g., age, income) is processed by its own independent neural network. This produces a "shape function" that can be plotted as a 2D graph, showing exactly how that variable influences the outcome.

2. Categorical Transformer

Instead of treating categories in isolation, NATT feeds all categorical features into a Transformer. This allows the model to learn contextual embeddings and capture interactions between different categorical variables (e.g., the relationship between "Education" and "Occupation") more efficiently than one-hot encoding.

3. Interpretability via the [CLS] Token

To maintain interpretability for categorical data, NATT uses a [CLS] (classification) token. By analyzing the attention weights directed toward this token, the model provides a global measure of categorical feature importance, similar to permutation importance but computed directly from the model's internal mechanism.

Key Insights and Results

NATT was validated on eight diverse benchmarks, including classification (Adult, Titanic, Churn) and regression (Insurance, AirBnB prices) tasks.

  • Performance: NATT outperformed standard NAMs by an average of approximately 5% across all datasets. It consistently ranked #1 or #2 among interpretable models and remained competitive with black-box models like XGBoost, often within 0.4% accuracy.
  • Scalability: By using a single Transformer-based function for all categorical variables, NATT is significantly more parameter-efficient than traditional NAMs, often requiring 40% fewer parameters.
  • Visual Fidelity: Simulation studies confirmed that NATT's learned shape functions accurately recover ground-truth mathematical functions, ensuring the model does not "hallucinate" patterns.
  • Interaction Handling: An extension, $NA^2TT$, incorporates pairwise interactions between continuous and categorical features, further boosting performance without sacrificing visualization.

Conclusion

NATT demonstrates that high predictive performance on tabular data does not require sacrificing transparency. By integrating Transformer-based categorical processing into an additive framework, NATT provides a robust, scalable, and inherently interpretable solution for complex real-world datasets. Future work will explore extending this architecture to high-dimensional inputs and incorporating formal statistical inference tools like p-values for feature effects.

Summary updated

BibTeX
@article{thielmann2024interpretable,
  author = {Anton Frederik Thielmann and Arik Reuter and Thomas Kneib and David Rügamer and Benjamin Säfken},
  title = {{Interpretable Additive Tabular Transformer Networks}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=TdJ7lpzAkD},
}
Figure