Semantically Constrained Memory Allocation (SCMA) for Embedding in Efficient Recommendation Systems

Aditya Desai, Yanzhou Pan, Kuangyuan Sun, Li Chou, Anshumali Shrivastava
2/24/2021
cs.IRcs.AIcs.LG

Official code: yanzhoupan/dlrm_ssm (4 stars, Python, MIT, last commit 2021-04-14).

Abstract

Deep learning-based models are utilized to achieve state-of-the-art performance for recommendation systems. A key challenge for these models is to work with millions of categorical classes or tokens.

Show full abstract

The standard approach is to learn end-to-end, dense latent representations or embeddings for each token. The resulting embeddings require large amounts of memory that blow up with the number of tokens. Training and inference with these models create storage, and memory bandwidth bottlenecks leading to significant computing and energy consumption when deployed in practice. To this end, we present the problem of \textit{Memory Allocation} under budget for embeddings and propose a novel formulation of memory shared embedding, where memory is shared in proportion to the overlap in semantic information. Our formulation admits a practical and efficient randomized solution with Locality sensitive hashing based Memory Allocation (LMA). We demonstrate a significant reduction in the memory footprint while maintaining performance. In particular, our LMA embeddings achieve the same performance compared to standard embeddings with a 16$\times$ reduction in memory footprint. Moreover, LMA achieves an average improvement of over 0.003 AUC across different memory regimes than standard DLRM models on Criteo and Avazu datasets

View on arXivView PDF

Code Implementations(1)

MIT
42Python, Jupyter NotebookJan 31, 20215 years agoMIT

Similar Papers

Cite this paper

@article{desai2021semantically,
  title  = {Semantically Constrained Memory Allocation (SCMA) for Embedding in Efficient Recommendation Systems},
  author = {Aditya Desai and Yanzhou Pan and Kuangyuan Sun and Li Chou and Anshumali Shrivastava},
  year   = {2021},
  eprint = {2103.06124},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.06124}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.06124.svg)](https://codeofpaper.com/paper/2103.06124)

Discussion