Abstract
Deep Learning Recommendation Models (DLRMs) are increasingly memory-bound due to massive embedding tables that often exceed the capacity of individual GPUs. TT-Rec introduces a framework for compressing these tables by over 100x using Tensor Train (TT) decomposition. By integrating optimized kernels, a novel weight initialization strategy, and an intelligent caching mechanism, TT-Rec achieves significant memory reduction with negligible training overhead and no loss in model accuracy, enabling large-scale DLRM training on commodity hardware.
Introduction
In modern AI, recommendation models are the primary "memory-bound" workloads. Unlike language models that are compute-intensive, DLRMs rely on massive embedding tables—giant look-up matrices that translate categorical data into dense mathematical vectors. These tables are scaling into the terabyte range, often forcing engineers to use slower CPU-based training or expensive multi-GPU clusters. TT-Rec addresses this bottleneck by shrinking these tables significantly while maintaining high recommendation accuracy.
Methodology
TT-Rec leverages three primary innovations to achieve efficient compression:
- Tensor Train (TT) Decomposition: Instead of storing a giant matrix, TT-Rec represents it as a sequence of much smaller, interconnected 4D tensors called "TT-cores." This mathematically approximates the original table using a fraction of the parameters.
- TT-EmbeddingBag Kernels: To overcome the latency of standard TT implementations, the authors developed optimized kernels using batched matrix multiplications (GEMM), achieving lookups 3x faster than previous state-of-the-art libraries.
- Sampled Gaussian Initialization: Proper initialization is critical for TT-compressed models. The authors employ a Gaussian sampling method derived from KL-divergence analysis to ensure the initial weight distribution matches that of uncompressed models.
- LFU Caching: Recognizing the power-law distribution of recommendation data, TT-Rec includes a Least-Frequently-Used (LFU) cache that stores the most popular embedding vectors in their uncompressed format, bypassing expensive tensor math for the majority of lookups.
Experimental Results
The researchers evaluated TT-Rec using two industry-standard benchmarks: Criteo Kaggle and Criteo Terabyte (4.3 billion records).
Compression and Accuracy
TT-Rec achieved a 117x model size reduction for Kaggle and 112x for the Terabyte dataset. For example, a 2.16 GB model was shrunk to just 18 MB. Remarkably, on the Terabyte dataset, TT-Rec actually improved model accuracy by 0.19% to 0.42% compared to the uncompressed baseline.
Training Efficiency
While compression usually introduces latency, TT-Rec’s optimized kernels and caching kept the training time increase to a manageable 10-14%. This compute-for-memory trade-off allows models that previously required a cluster of CPUs to be trained on a single commodity GPU.
Conclusion
TT-Rec demonstrates that high-ratio compression of DLRMs is possible without sacrificing performance. By trading a small amount of compute for a massive reduction in memory, it makes large-scale recommendation models more accessible. Future work includes refining hyperparameter tuning for TT-ranks and exploring optimizations for dynamic, online training environments where models must update constantly.
Summary updated