Learning to Collide: Recommendation System Model Compression with Learned Hash Functions
Not on the map. Why?
Abstract (arXiv)
A key characteristic of deep recommendation models is the immense memory requirements of their embedding tables. These embedding tables can often reach hundreds of gigabytes which increases hardware requirements and training cost. A common technique to reduce model size is to hash all of the categorical variable identifiers (ids) into a smaller space. This hashing reduces the number of unique representations that must be stored in the embedding table; thus decreasing its size. However, this approach introduces collisions between semantically dissimilar ids that degrade model quality. We introduce an alternative approach, Learned Hash Functions, which instead learns a new mapping function that encourages collisions between semantically similar ids. We derive this learned mapping from historical data and embedding access patterns. We experiment with this technique on a production model and find that a mapping informed by the combination of access frequency and a learned low dimension embedding is the most effective. We demonstrate a small improvement relative to the hashing trick and other collision related compression techniques. This is ongoing work that explores the impact of categorical id collisions on recommendation model quality and how those collisions may be controlled to improve model performance.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 17 of its 23 references that are in the map. First posted on arXiv 28 Mar 2022.
Builds on
17 of 23 references.
References · 17
- 2016Wide & Deep Learning for Recommender Systemscited by 745
- 2017DeepFM: A Factorization-Machine based Neural Network for CTR Predictioncited by 673
- 2019Deep Learning Recommendation Model for Personalization and Recommendation Systemscited by 327
- 2016Towards K-means-friendly Spaces: Simultaneous Deep Learning and Clusteringcited by 237
- 2018Large scale distributed neural network training through online distillationcited by 144
- 2019The Architectural Implications of Facebook's DNN-based Personalized Recommendationcited by 83
- 2020Tired of Topic Models? Clusters of Pretrained Word Embeddings Make for Fast and Good Topics too!cited by 73
- 2019Compositional Embeddings Using Complementary Partitions for Memory-Efficient Recommendation Systemscited by 68
- 2021TT-Rec: Tensor Train Compression for Deep Learning Recommendation Modelscited by 58
- 2020DeepRecSys: A System for Optimizing End-To-End At-scale Neural Recommendation Inferencecited by 54
- 2019Mixed Dimension Embeddings with Application to Memory-Efficient Recommendation Systemscited by 41
- 2020Learning to Embed Categorical Features without Embedding Tables for Recommendationcited by 38
5 more
- 2020Deep Learning Training in Facebook Data Centers: Design of Scale-up and Scale-out Systemscited by 37
- 2018Deep Learning Inference in Facebook Data Centers: Characterization, Performance Optimizations and Hardware Implicationscited by 35
- 2020Model Size Reduction Using Frequency Based Double Hashing for Recommender Systemscited by 33
- 2020Mixed-Precision Embedding Using a Cachecited by 18
- 2020Training with Multi-Layer Embeddings for Model Reductioncited by 6
Built on by
Citing papers per year: 2022: 1; 2023: 2; 2024: 0; 2025: 1; 2026: 1.
5 papers.
- 2023TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning with Hardware Support for Embeddingscited by 198
- 2023Embedding in Recommender Systems: A Surveycited by 19
- 2022Clustering the Sketch: A Novel Approach to Embedding Table Compressioncited by 2
- 2025DCN^2: Interplay of Implicit Collision Weights and Explicit Cross Layers for Large-Scale Recommendationcited by 0
- 2026Multi-Probe Zero Collision Hash (MPZCH): Mitigating Embedding Collisions and Enhancing Model Freshness in Large-Scale Recommenderscited by 0
- 2026Multi-Probe Zero Collision Hash (MPZCH): Mitigating Embedding Collisions and Enhancing Model Freshness in Large-Scale Recommenders19 Feb 2026
- 2025DCN^2: Interplay of Implicit Collision Weights and Explicit Cross Layers for Large-Scale Recommendation24 Jun 2025
- 2023Embedding in Recommender Systems: A Survey28 Oct 2023
- 2023TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning with Hardware Support for Embeddings4 Apr 2023
- 2022Clustering the Sketch: A Novel Approach to Embedding Table Compression12 Oct 2022