TL;DR
This paper challenges the notion that Gradient Boosted Decision Trees (GBDTs) are superior to tabular Transformers for fraud detection. By leveraging self-supervised learning (SSL) for pre-training on vast amounts of unlabeled data, their FT-Transformer model significantly outperforms heavily tuned GBDTs in both offline evaluations and a real-world A/B test, demonstrating a statistically significant improvement in a key business metric.
What Problem Does This Paper Address?
Fraud detection is a critical task for e-commerce platforms like Booking.com, aiming to identify and prevent fraudulent user actions. Traditional approaches often rely on machine learning models, particularly GBDTs, which have historically performed well on tabular data. However, a significant challenge in real-world fraud detection systems is "selection bias." This bias arises because the data used for training is often not a true representation of the entire user traffic. For instance, only a small, randomly sampled subset (the "Control Group" or CG) might be fully and accurately labeled, while the rest of the data (no-CG) is either unlabeled or labeled with inherent biases from the production system. This can lead to models trained on biased data performing poorly in production. While deep learning, especially Transformers, has shown great promise on unstructured data, their effectiveness on tabular data, particularly in the presence of selection bias, is still debated, with GBDTs often considered the benchmark. This paper aims to bridge this gap by demonstrating how tabular Transformers, empowered by self-supervised pre-training, can overcome these challenges and outperform GBDTs.
Methods
The core of the paper's methodology revolves around adapting the FT-Transformer architecture for tabular fraud detection and employing a novel pre-training strategy.
- FT-Transformer Architecture: The authors utilize the FT-Transformer, a model designed to handle tabular data by tokenizing each feature (numerical and categorical) and processing them through self-attention layers. This architecture is chosen for its ability to learn rich representations and its suitability for various pre-training techniques.
- Pre-training Strategies:
- Self-Supervised Learning (SSL): This is the primary focus. They leverage large amounts of unlabeled "no-CG" data to pre-train the FT-Transformer. The SSL objective combines masked reconstruction (predicting corrupted features) and mask prediction (identifying which features were corrupted). This allows the model to learn general patterns and transferable representations from the vast, biased dataset without relying on labels.
- Supervised Deep Metric Learning (DML): As a comparison, they also explore pre-training using a triplet loss function on the "no-CG" data. This method aims to group similar instances in an embedding space, guided by available (though potentially biased) labels.
- Fine-tuning: After pre-training on the large "no-CG" dataset, the FT-Transformer models are fine-tuned on the smaller, unbiased "CG" dataset using a standard supervised classification objective. This allows the model to adapt its learned representations to the specific fraud detection task using clean labels.
- GBDT Baseline: For comparison, they implement and tune LightGBM, a popular GBDT framework, using three strategies: training only on CG data, training on CG + no-CG data, and training on CG + no-CG data with selection ratio (SR) weights to account for bias.
Datasets
The experiments were conducted on internal, confidential Booking.com datasets.
- Control Group (CG) Dataset: A small, randomly sampled subset of user traffic that is fully and accurately labeled. This dataset is used for fine-tuning and represents unbiased data.
- No-CG Dataset: The remaining large portion of user traffic, which contains labels but is subject to selection bias. This dataset is used for pre-training. The "no-CG" dataset consists of tens of millions of instances, while the "CG" dataset is one to two orders of magnitude smaller.
Key Insights and Ideas
- SSL for Tabular Data is Powerful: The paper strongly suggests that self-supervised learning is a highly effective way to pre-train tabular Transformers, enabling them to learn robust representations from massive unlabeled datasets. This is crucial for overcoming data scarcity and bias issues.
- Selection Bias is a Real Problem: The experiments clearly show that training models directly on biased "no-CG" data (even with SR weighting) leads to a performance drop compared to models trained on clean "CG" data. This highlights the importance of addressing selection bias.
- Pre-training Bridges the Gap: While training FT-Transformers from scratch on small "CG" datasets can be suboptimal, pre-training them on large "no-CG" datasets (especially with SSL) significantly boosts their performance, allowing them to surpass even well-tuned GBDTs.
- FT-Transformer's Scalability: The "FT-large" model, when pre-trained, demonstrates superior performance, indicating that larger Transformer models can effectively leverage extensive pre-training data for complex tabular tasks.
Key Results
- Offline Evaluation:
- The FT-Transformer (FT-large) pre-trained with SSL on "CG + no-CG" data achieved the highest Average Precision (AP) score of 0.491 ± 0.012, significantly outperforming the best GBDT baseline (0.471 ± 0.003).
- Even the smaller FT-base model pre-trained with SSL or DML achieved performance comparable to or better than the tuned GBDT baselines.
- Training FT-large from scratch on CG-only data failed to match baseline performance, underscoring the need for pre-training.
- Online A/B Experiment:
- The FT-Transformer variant (SSL pre-trained) outperformed the production GBDT baseline by 19.55% in terms of the internal utility-based business metric.
- This improvement was statistically significant (p < 0.01).
- Despite higher training times and inference latency (though still within budget), the business metric uplift justified the use of the Transformer model.
Limitations and Future Work
- Limitations:
- The paper acknowledges that the FT-Transformer has higher training times and inference latency compared to GBDTs, although the benefits in business metrics outweigh these costs.
- The study focused on a specific fraud detection domain within Booking.com, and generalization to other domains might require further investigation.
- Future Work:
- The authors suggest plugging the learned SSL embeddings into more sophisticated architectures that model user actions as sequences or graphs.
- Exploring cross-table learning frameworks to transfer knowledge between different fraud detection tasks and domains is another promising direction.
- Investigating different learning rate schedules (e.g., warm-up) for Transformers could further optimize performance.
Summary updated