Abstract
Click-Through Rate (CTR) prediction is a cornerstone of modern recommendation systems. While categorical features are effectively handled via embedding look-up tables, numerical features (e.g., Age, Price) often rely on sub-optimal representations like raw scaling or manual discretization. We introduce AutoDis (Automatic Discretization), a novel framework that replaces manual "hard" bucketing with a differentiable "soft" discretization process. By enabling end-to-end optimization, AutoDis produces "Continuous-But-Different" representations that preserve numerical continuity while providing high model capacity. Experimental results on large-scale benchmarks and real-world advertising systems demonstrate significant improvements in AUC and commercial metrics like eCPM.
Introduction
In recommendation systems, deep learning models typically follow an "Embedding & Feature Interaction" paradigm. Categorical features are easily mapped to dense vectors, but numerical features are notoriously difficult to represent effectively. Current engineering practices often rely on simple transformations or manual discretization, both of which limit the model's ability to capture complex, non-linear user behaviors.
The Problem: Limitations of Hard Discretization
Traditional numerical feature handling involves three main approaches: using raw values (low capacity), field embeddings (assumes linearity), or hard discretization. Hard discretization, where values are grouped into fixed buckets, is particularly problematic due to two issues:
- Similar value But Dis-similar embedding (SBD): Near-identical values (e.g., Age 40 and 41) falling into different buckets receive completely different embeddings.
- Dis-similar value But Same embedding (DBS): Distinct values (e.g., Age 18 and 40) in the same bucket receive identical embeddings, losing critical nuance.
Methodology: The AutoDis Framework
AutoDis is a pluggable embedding layer designed to overcome these limitations through three core components:
- Meta-Embeddings: A set of learnable vectors for each numerical field that capture global distributional knowledge.
- Automatic Discretization: A two-layer neural network with a skip-connection projects numerical values into a distribution across meta-embeddings. This uses a Softmax function with an adaptive temperature coefficient ($\tau$), allowing the model to learn the optimal "sharpness" of the discretization.
- Aggregation Function: The final embedding is a weighted average of the meta-embeddings, ensuring that small changes in input values lead to small, continuous changes in the resulting embedding.
This architecture is fully differentiable, allowing the discretization logic to be optimized alongside the rest of the CTR model for the specific prediction task.
Experimental Results
AutoDis was evaluated on three large-scale datasets: Criteo (~45.8M instances), AutoML (~4.69M instances), and a massive industrial dataset (~8.75M instances).
Offline Performance
AutoDis consistently outperformed baselines such as YouTube DNN and DLRM. In the competitive field of CTR prediction, it achieved an AUC improvement of 0.17% to 0.23%, which is considered highly significant.
Online Impact
When deployed on a mainstream advertising platform, AutoDis led to a 2.1% increase in CTR and a 2.7% increase in eCPM (effective Cost Per Mille). These gains were achieved with a manageable increase in model parameters (0.15%) and inference latency (4.31%).
Conclusion
AutoDis bridges the gap between continuous numerical inputs and discrete embedding spaces. By replacing rigid, manual preprocessing with a learnable, soft discretization layer, it enables CTR models to extract more value from numerical data. Its pluggable nature makes it a versatile tool for improving various state-of-the-art recommendation architectures.
Summary updated