OptEmbed: Learning Optimal Embedding Table for Click-through Rate Prediction

Fuyuan Lyu, Xing Tang, Hong Zhu, Huifeng Guo, Yingxue Zhang, Ruiming Tang, Xue Liu · DOI

Introduction

In modern recommendation systems, Click-Through Rate (CTR) models are heavily reliant on embedding tables. These tables map millions of categorical features—such as UserID or AdID—into dense numerical vectors. However, this architecture faces a significant "memory monster" problem. Embedding tables can grow to gigabytes or even terabytes, making deployment on standard hardware difficult. Furthermore, many stored embeddings are redundant or represent rare features that contribute little to model performance, often leading to overfitting.

The scope of OptEmbed within the CTR prediction pipeline, distinguishing between informative, redundant, flexible, and sparse embeddings.

Traditionally, every feature is assigned a uniform embedding dimension (e.g., 64). This is suboptimal; complex features like "User Interest" may require high dimensionality, while simpler features like "Gender" could be represented with far fewer bits. OptEmbed addresses these challenges by simultaneously pruning redundant embeddings and searching for optimal per-field dimensions, resulting in compact, hardware-friendly dense tables.

The OptEmbed Framework

OptEmbed treats the embedding table as a learnable architecture, optimized through a three-stage process:

  1. Redundant Embedding Pruning: The framework introduces learnable pruning thresholds for each feature field. The $L_1$ norm of an embedding serves as a proxy for its importance. If the norm falls below the threshold, the embedding is masked. To maintain differentiability during training, a "long-tail derivation estimator" is employed to allow gradients to flow through discrete pruning steps.
  2. One-Shot Dimension Search (NAS): Instead of training numerous standalone models, OptEmbed utilizes a single "Supernet." During training, different embedding dimensions are randomly sampled for each field using ordinal parameter sharing. This ensures the model remains effective regardless of the final dimension selected.
  3. Evolutionary Search and Re-training: After Supernet training, an evolutionary algorithm identifies the optimal combination of dimensions across all fields. The model is then re-trained using this discovered structure to maximize final accuracy.
The OptEmbed architecture featuring field-wise dimension masks and an embedding mask for pruning.

Experimental Setup and Results

The framework was evaluated on three massive industry datasets: Criteo (ad clicks), Avazu (click logs), and KDD12 (search sessions).

Key Performance Metrics

  • Massive Compression: On the Criteo dataset, OptEmbed achieved a parameter reduction of 67% to 97% while maintaining or slightly improving the Area Under Curve (AUC).
  • Accuracy Gains: On KDD12 and Avazu, the model outperformed full-sized "Original" models. In the competitive field of CTR prediction, an AUC improvement of 0.1% is significant; OptEmbed achieved gains of up to 0.15%.
  • Hardware Efficiency: Unlike sparse pruning methods that leave "holes" in matrices, OptEmbed produces dense tables with shortened columns. This allows the model to leverage standard, high-speed matrix operations, resulting in the lowest inference latency among compared methods.

Insights and Discussion

A key finding of the research is the strong correlation between feature frequency and embedding importance (measured by $L_1$ norm); frequent features effectively "earn" their space. Additionally, OptEmbed demonstrates automated feature selection. In tests on the Avazu dataset, the framework completely pruned human-engineered fields like "weekday," as their information was already captured more efficiently by the "hour" field.

Limitations and Future Work

While the one-shot approach is efficient, training the Supernet and running evolutionary searches still adds overhead compared to standard training. The framework is also sensitive to hyperparameters like the sparse regularization coefficient ($\alpha$). Future research may focus on "dynamic" embeddings that adapt dimensions in real-time as data distributions shift in production environments.

Summary updated

BibTeX
@inproceedings{lyu2022optembed,
  author = {Fuyuan Lyu and Xing Tang and Hong Zhu and Huifeng Guo and Yingxue Zhang and Ruiming Tang and Xue Liu},
  title = {{OptEmbed: Learning Optimal Embedding Table for Click-through Rate Prediction}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2022},
  doi = {10.1145/3511808.3557411},
}
Figure