An Embedding Learning Framework for Numerical Features in CTR Prediction

Huifeng Guo, Bo Chen, Ruiming Tang, Weinan Zhang, Zhenguo Li, Xiuqiang He

Abstract

Click-Through Rate (CTR) prediction is critical for industrial recommender systems, where most deep CTR models follow an Embedding & Feature Interaction paradigm. However, the majority of methods focus on designing network architectures to better capture feature interactions while the feature embedding, especially for numerical features, has been overlooked. Existing approaches for numerical features are difficult to capture informative knowledge because of the low capacity or hard discretization based on the offline expertise feature engineering. In this paper, we propose a novel embedding learning framework for numerical features in CTR prediction (AutoDis) with high model capacity, end-to-end training and unique representation properties preserved. AutoDis consists of three core components: meta-embeddings, automatic discretization and aggregation. Specifically, we propose meta-embeddings for each numerical field to learn global knowledge from the perspective of field with a manageable number of parameters. Then the differentiable automatic discretization performs soft discretization and captures the correlations between the numerical features and meta-embeddings. Finally, distinctive and informative embeddings are learned via an aggregation function. Comprehensive experiments on two public and one industrial datasets are conducted to validate the effectiveness of AutoDis. Moreover, AutoDis has been deployed onto a mainstream advertising platform, where online A/B test demonstrates the improvement over the base model by 2.1% and 2.7% in terms of CTR and eCPM, respectively. In addition, the code of our framework is publicly available in MindSpore.

Introduction

In industrial recommender systems, predicting the Click-Through Rate (CTR) is a fundamental task. While deep learning has successfully revolutionized the handling of categorical data through dense embeddings, numerical features (e.g., Age, Item Price) are often treated with less sophisticated methods. Most deep CTR models follow an "Embedding & Feature Interaction" paradigm. Categorical features are mapped to dense vectors via look-up tables, but numerical features present a challenge.

Historically, three main approaches have been used for numerical features:

  1. No Embedding: Using raw values or simple transformations, which lacks the capacity to model complex non-linear relationships.
  2. Field Embedding: Learning a single vector per field and scaling it by the feature value, assuming a linear relationship.
  3. Hard Discretization: Grouping values into "buckets" (e.g., Age 18-25).

Hard discretization, while common, suffers from two major flaws: Similar value But Dis-similar embedding (SBD) and Dis-similar value But Same embedding (DBS). As shown in Figure 4, values like 40 and 41 might be split into different buckets (SBD), while 18 and 40 might be grouped together (DBS), leading to information loss.

Limitations of hard discretization: SBD and DBS.

The AutoDis Framework

To address these limitations, we propose AutoDis (Automatic Discretization), a differentiable framework that replaces "hard" discretization with a "soft" approach. AutoDis consists of three core components:

1. Meta-Embeddings

Instead of a single embedding per field, AutoDis maintains a set of "meta-embeddings" for each numerical field. These act as learnable basis vectors that represent the global knowledge of that specific field.

2. Automatic Discretization (Soft Bucketing)

Rather than assigning a value to a single bucket, AutoDis uses a small, two-layer neural network with a skip connection to calculate a probability distribution (via Softmax) over all meta-embeddings. This "soft" discretization allows a single numerical value to relate to multiple meta-embeddings simultaneously, preserving continuity.

3. Aggregation

The final representation of a numerical feature is a weighted average of the meta-embeddings, where the weights are the probabilities derived from the discretization step. This ensures that as a numerical value changes slightly, its embedding also changes smoothly.

AutoDis architecture showing the flow from numerical input to feature interaction.

The framework also incorporates a Temperature Coefficient Adaptive Network, allowing the model to adjust the "sharpness" of the discretization for different features, capturing both sudden transitions and gradual trends.

Experimental Results

AutoDis was validated on two public benchmarks (Criteo, AutoML) and a large-scale industrial dataset.

  • Performance Gains: AutoDis achieved significant AUC improvements of 0.17% to 0.23% over state-of-the-art baselines. In the context of CTR prediction, improvements of 0.1% are considered commercially significant.
  • Model Agnostic: The framework is plug-and-play and was shown to improve various architectures, including Wide & Deep, DeepFM, DCN, and IPNN.
  • Online Impact: In a live A/B test on a mainstream advertising platform, AutoDis delivered a 2.1% increase in CTR and a 2.7% increase in eCPM, demonstrating its real-world effectiveness.
  • Efficiency: The model adds minimal parameter overhead (~0.15%) and maintains acceptable inference latency (4.3% increase), meeting the requirements for real-time industrial systems.

Conclusion

AutoDis provides a high-capacity, end-to-end trainable solution for embedding numerical features in CTR models. By moving from hard buckets to soft, differentiable meta-embeddings, it overcomes the traditional SBD and DBS limitations. Future work includes optimizing the number of meta-embeddings and exploring more complex aggregation strategies to further enhance feature representation.

Summary updated

BibTeX
@inproceedings{guo2021embedding,
  author = {Huifeng Guo and Bo Chen and Ruiming Tang and Weinan Zhang and Zhenguo Li and Xiuqiang He},
  title = {{An Embedding Learning Framework for Numerical Features in CTR Prediction}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2021},
  url = {https://openreview.net/forum?id=yfH4ItRjgP},
}
Figure