A Frequency-aware Software Cache for Large Recommendation System Embeddings

Jiarui Fang, Geng Zhang, Jiatong Han, Shenggui Li, Zhengda Bian +3 more
8/8/2022
7 citations
cs.IRcs.AIcs.DC

Official code: zxgx/FreqCacheEmbedding (3 stars, Python, last commit 2022-08-31).

Abstract

Deep learning recommendation models (DLRMs) have been widely applied in Internet companies. The embedding tables of DLRMs are too large to fit on GPU memory entirely.

Show full abstract

We propose a GPU-based software cache approaches to dynamically manage the embedding table in the CPU and GPU memory space by leveraging the id's frequency statistics of the target dataset. Our proposed software cache is efficient in training entire DLRMs on GPU in a synchronized update manner. It is also scaled to multiple GPUs in combination with the widely used hybrid parallel training approaches. Evaluating our prototype system shows that we can keep only 1.5% of the embedding parameters in the GPU to obtain a decent end-to-end training speed.

View on arXivView PDF

Code Implementations(1)

31Python, ShellAug 31, 20224 years ago

Similar Papers

Cite this paper

@article{fang2022frequencyaware,
  title  = {A Frequency-aware Software Cache for Large Recommendation System Embeddings},
  author = {Jiarui Fang and Geng Zhang and Jiatong Han and Shenggui Li and Zhengda Bian and Yongbin Li and Jin Liu and Yang You},
  year   = {2022},
  eprint = {2208.05321},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2208.05321v1}
}

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/2208.05321.svg)](https://codeofpaper.com/paper/2208.05321)

Discussion