Skip to main content
QUICK REVIEW

[Paper Review] TT-Rec: Tensor Train Compression for Deep Learning Recommendation Models

Chunxing Yin, Bilge Acun|arXiv (Cornell University)|Jan 25, 2021
Tensor decomposition and applicationsMathematics32 references13 citations
TL;DR

TT-Rec proposes a Tensor Train decomposition-based method to compress embedding tables in deep learning recommendation models (DLRMs), reducing model size by up to 117× with no accuracy loss and only 13.9% training time overhead. It uses optimized TT-EmbeddingBag kernels, adaptive caching, and a novel Gaussian-based initialization to maintain performance and accuracy at scale.

ABSTRACT

The memory capacity of embedding tables in deep learning recommendation models (DLRMs) is increasing dramatically from tens of GBs to TBs across the industry. Given the fast growth in DLRMs, novel solutions are urgently needed, in order to enable fast and efficient DLRM innovations. At the same time, this must be done without having to exponentially increase infrastructure capacity demands. In this paper, we demonstrate the promising potential of Tensor Train decomposition for DLRMs (TT-Rec), an important yet under-investigated context. We design and implement optimized kernels (TT-EmbeddingBag) to evaluate the proposed TT-Rec design. TT-EmbeddingBag is 3 times faster than the SOTA TT implementation. The performance of TT-Rec is further optimized with the batched matrix multiplication and caching strategies for embedding vector lookup operations. In addition, we present mathematically and empirically the effect of weight initialization distribution on DLRM accuracy and propose to initialize the tensor cores of TT-Rec following the sampled Gaussian distribution. We evaluate TT-Rec across three important design space dimensions -- memory capacity, accuracy, and timing performance -- by training MLPerf-DLRM with Criteo's Kaggle and Terabyte data sets. TT-Rec achieves 117 times and 112 times model size compression, for Kaggle and Terabyte, respectively. This impressive model size reduction can come with no accuracy nor training time overhead as compared to the uncompressed baseline.

Motivation & Objective

  • Address the rapidly growing memory demands of deep learning recommendation models (DLRMs), which now require TB-scale embedding tables.
  • Reduce model memory capacity without sacrificing accuracy or incurring prohibitive training time overhead.
  • Explore tensorization as a principled, parameterized approach to compress DLRM embeddings while maintaining model quality.
  • Design a computationally efficient and hardware-aware compression framework suitable for industrial-scale DLRMs.
  • Enable practical, low-overhead training of large-scale recommendation models through optimized kernel design and caching strategies.

Proposed method

  • Replace large embedding tables in DLRMs with a sequence of low-rank matrix products using Tensor Train (TT) decomposition.
  • Implement a custom, optimized TT-EmbeddingBag kernel that accelerates TT-based embedding lookups, achieving 3× speedup over SOTA TT implementations.
  • Introduce a caching mechanism that stores frequently accessed embedding vectors in uncompressed form to reduce recomputation and recover accuracy.
  • Propose a novel weight initialization strategy that samples from a Gaussian distribution to stabilize training and improve model accuracy.
  • Leverage batched matrix multiplication to further optimize inference and training performance on GPU-accelerated systems.
  • Tune TT-rank and compression parameters across multiple design dimensions (memory, accuracy, speed) to identify Pareto-optimal configurations.

Experimental results

Research questions

  • RQ1Can Tensor Train decomposition achieve significant model compression in DLRMs without degrading accuracy?
  • RQ2How does the choice of weight initialization affect the performance and convergence of TT-Rec in recommendation models?
  • RQ3To what extent can caching mitigate the performance overhead of decompressing TT-structured embeddings during training?
  • RQ4What is the trade-off between memory reduction, training time, and model accuracy across different TT-rank and embedding dimension settings?
  • RQ5Can TT-Rec achieve orders-of-magnitude compression while remaining compatible with industrial-scale training pipelines and hardware accelerators?

Key findings

  • TT-Rec achieves 117× and 112× model size compression on the Criteo Kaggle and Terabyte datasets, respectively, with no accuracy degradation compared to the uncompressed baseline.
  • The proposed TT-EmbeddingBag kernel is 3× faster than the state-of-the-art TT implementation, significantly improving computational efficiency.
  • With a 90% cache hit rate, TT-Rec outperforms standard EmbeddingBag in training time performance, demonstrating the effectiveness of the caching strategy.
  • The model maintains the same accuracy as the baseline even with extreme compression, validating the robustness of the proposed initialization and compression scheme.
  • Training time overhead is kept low at only 13.9% compared to the baseline, making TT-Rec practical for online training at scale.
  • The method enables a Pareto-optimal trade-off between memory capacity, accuracy, and training speed, with tunable parameters for different hardware and deployment constraints.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.