Abstract
Deep learning for recommendation data is one of the most pervasive and challenging AI workloads in recent times. State-of-the-art recommendation models are among the largest models, matching the likes of GPT-3 and Switch Transformer. Challenges in deep learning recommendation models (DLRM) stem from learning dense embeddings for each of the categorical tokens. These embedding tables in industrial-scale models can be as large as hundreds of terabytes. Such large models lead to a plethora of engineering challenges, including prohibitive communication overheads and slower training and inference times. Of these, slower inference time directly impacts user experience. Model compression for DLRM is gaining traction, and the community has recently shown impressive compression results. In this paper, we present Random Offset Block Embedding Array (ROBE) as a low-memory alternative to embedding tables, providing orders of magnitude reduction in memory usage while maintaining accuracy and boosting execution speed. ROBE is a simple fundamental approach to improving both cache performance and the variance of randomized hashing. We demonstrate that we can successfully train DLRM models with the same accuracy while using $1000 \times$ less memory. A $1000\times$ compressed model directly results in faster inference without any engineering effort. In particular, we show that we can train a DLRM model using a ROBE array of size 100MB on a single GPU to achieve an AUC of 0.8025 or higher, as required by the official MLPerf CriteoTB benchmark DLRM model of 100GB, while achieving about $3.1\times$ (209%) improvement in inference throughput.
Introduction
Modern recommendation systems, such as those powering large-scale e-commerce and social media platforms, rely heavily on Deep Learning Recommendation Models (DLRMs). These models process "categorical features" (e.g., user IDs, product tags) by mapping them to dense vectors known as embeddings.
The primary challenge is scale: industrial-grade models can involve billions of categorical tokens, resulting in embedding tables that consume tens of terabytes of memory. This leads to several critical issues:
- Memory Bottlenecks: Tables often exceed the capacity of a single GPU, necessitating complex and expensive "model-parallel" training across multiple nodes.
- Inference Latency: Accessing these massive tables is highly irregular, leading to cache miss rates as high as 80%, which significantly slows down inference.
- Communication Overhead: Synchronizing gradients for terabytes of parameters during training is bandwidth-intensive and slow.
The ROBE Approach
The researchers introduce ROBE, a weight-sharing technique that replaces traditional, massive embedding tables with a single, significantly smaller circular array.
ROBE utilizes two key innovations:
- ROBE Hashing: Instead of unique vectors for every token, ROBE uses universal hash functions to map each token to a specific "offset" within the shared circular array. If a requested block exceeds the end of the array, it wraps around to the beginning, ensuring efficient memory utilization.
- Block-Based Access (ROBE-Z): Unlike standard feature hashing that hashes every vector element independently, ROBE hashes the start of a block and then reads a contiguous chunk of memory. This enables coalesced memory access, which is far more efficient for GPU caches than random memory jumps.
Key Insights and Theoretical Innovation
A major contribution of this work is the recognition that cache locality is as vital as parameter reduction for recommendation models. By transitioning from random to sequential lookups, ROBE dramatically improves hardware efficiency.
Furthermore, the authors provide a theoretical foundation for "blocking." They prove that hashing in blocks reduces the variance of randomized hashing compared to element-wise methods. This ensures that elements within a block do not collide with each other, leading to more stable and accurate dimensionality reduction.
Experimental Evaluation
The performance of ROBE was evaluated on two industry-standard benchmarks:
- CriteoTB (MLPerf): A massive dataset with approximately 800 million categorical tokens. The original uncompressed model is roughly 100GB.
- Criteo Kaggle: A dataset with 33.7M tokens used to validate ROBE across various architectures, including DCN, DeepFM, and AutoInt.
Key Results
- 1000× Compression: On the CriteoTB benchmark, embedding tables were compressed from 100GB to just 100MB while maintaining the target AUC of 0.8025.
- 3.1× Faster Inference: Throughput improved by 209% compared to the original model, primarily due to superior cache performance.
- Democratized Training: By shrinking the model to 100MB, state-of-the-art DLRMs can be trained on a single consumer-grade GPU using simple "data-parallel" optimization, avoiding the need for massive server clusters.
Conclusion and Future Work
ROBE demonstrates that massive compression and significant speedups are achievable without sacrificing accuracy in DLRMs. While the compressed models currently require more training epochs to reach target accuracy, future work will focus on optimizing GPU-level hashing processes to reduce total training time. This efficiency could enable more frequent model refreshes to better handle "concept shift" in production environments.
Summary updated