Clustering the Sketch: A Novel Approach to Embedding Table Compression

Henry Ling-Hei Tsang, Thomas Dybdahl Ahle
10/12/2022
cs.LGcs.DS

Official code: thomasahle/cce (13 stars, Python, last commit 2023-10-25).

Abstract

Embedding tables are used by machine learning systems to work with categorical features. In modern Recommendation Systems, these tables can be very large, necessitating the development of new methods for fitting them in memory, even during training.

Show full abstract

We suggest Clustered Compositional Embeddings (CCE) which combines clustering-based compression like quantization to codebooks with dynamic methods like The Hashing Trick and Compositional Embeddings (Shi et al., 2020). Experimentally CCE achieves the best of both worlds: The high compression rate of codebook-based quantization, but *dynamically* like hashing-based methods, so it can be used during training. Theoretically, we prove that CCE is guaranteed to converge to the optimal codebook and give a tight bound for the number of iterations required.

View on arXivView PDF

Code Implementations(1)

thomasahle/cceOfficial100%

Clustered Compositional Embeddings

131Python, LLVMMay 17, 20233 years ago
clusteringhashingmachine-learningreccomendersystem

Similar Papers

Cite this paper

@article{tsang2022clustering,
  title  = {Clustering the Sketch: A Novel Approach to Embedding Table Compression},
  author = {Henry Ling-Hei Tsang and Thomas Dybdahl Ahle},
  year   = {2022},
  eprint = {2210.05974},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.05974}
}

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

Discussion