Fine-Grained Embedding Dimension Optimization During Training for Recommender Systems

Qinyi Luo, Penghan Wang, Wei Zhang, Fan Lai, Jiachen Mao +6 more
1/9/2024
cs.IRcs.LG

No confident code implementation found for this paper.

Abstract

Huge embedding tables in modern deep learning recommender models (DLRM) require prohibitively large memory during training and inference. This paper proposes FIITED, a system to automatically reduce the memory footprint via FIne-grained In-Training Embedding Dimension pruning. By leveraging the key insight that embedding vectors are not equally important, FIITED adaptively adjusts the dimension of each individual embedding vector during model training, assigning larger dimensions to more important embeddings while adapting to dynamic changes in data. We prioritize embedding dimensions with higher frequencies and gradients as more important. To enable efficient pruning of embeddings and their dimensions during model training, we propose an embedding storage system based on virtually-hashed physically-indexed hash tables. Experiments on two industry models and months of realistic datasets show that FIITED can reduce DLRM embedding size by more than 65% while preserving model quality, outperforming state-of-the-art in-training embedding pruning methods. On public datasets, FIITED can reduce the size of embedding tables by 2.1x to 800x with negligible accuracy drop, while improving model throughput.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{luo2024finegrained,
  title  = {Fine-Grained Embedding Dimension Optimization During Training for Recommender Systems},
  author = {Qinyi Luo and Penghan Wang and Wei Zhang and Fan Lai and Jiachen Mao and Xiaohan Wei and Jun Song and Wei-Yu Tsai and Shuai Yang and Yuxi Hu and Xuehai Qian},
  year   = {2024},
  eprint = {2401.04408},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.04408v2}
}

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

Discussion