On Embeddings for Numerical Features in Tabular Deep Learning
About
Recently, Transformer-like deep architectures have shown strong performance on tabular data problems. Unlike traditional models, e.g., MLP, these architectures map scalar values of numerical features to high-dimensional embeddings before mixing them in the main backbone. In this work, we argue that embeddings for numerical features are an underexplored degree of freedom in tabular DL, which allows constructing more powerful DL models and competing with GBDT on some traditionally GBDT-friendly benchmarks. We start by describing two conceptually different approaches to building embedding modules: the first one is based on a piecewise linear encoding of scalar values, and the second one utilizes periodic activations. Then, we empirically demonstrate that these two approaches can lead to significant performance boosts compared to the embeddings based on conventional blocks such as linear layers and ReLU activations. Importantly, we also show that embedding numerical features is beneficial for many backbones, not only for Transformers. Specifically, after proper embeddings, simple MLP-like models can perform on par with the attention-based architectures. Overall, we highlight embeddings for numerical features as an important design aspect with good potential for further improvements in tabular DL.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| CTR Prediction | Criteo | AUC0.7879 | 291 | |
| Binary Classification | TALENT (test) | Top-1 Accuracy1.08 | 113 | |
| Click-Through Rate Prediction | Industrial | AUC75.79 | 104 | |
| Click-Through Rate Prediction | AutoML | AUC83.17 | 90 | |
| Multiclass Classification | TALENT | SGMε13.1 | 42 | |
| Aggregate Tabular Benchmarking | Aggregate | Avg Rank3 | 33 | |
| Multiclass Classification | TALENT Multiclass (> 10 classes) Full (avg across datasets) | Rank6.33 | 31 | |
| Regression | TALENT 100 datasets | Rank12.7 | 28 | |
| Classification | Covertype | Error Rate3.64 | 24 | |
| Classification | higgs | ERR25.28 | 19 |