FlexShard: Flexible Sharding for Industry-Scale Sequence Recommendation Models

Geet Sethi, Pallab Bhattacharya, Dhruv Choudhary, Carole-Jean Wu, Christos Kozyrakis
1/8/2023
cs.LGcs.DCcs.IR

No confident code implementation found for this paper.

Abstract

Sequence-based deep learning recommendation models (DLRMs) are an emerging class of DLRMs showing great improvements over their prior sum-pooling based counterparts at capturing users' long term interests. These improvements come at immense system cost however, with sequence-based DLRMs requiring substantial amounts of data to be dynamically materialized and communicated by each accelerator during a single iteration. To address this rapidly growing bottleneck, we present FlexShard, a new tiered sequence embedding table sharding algorithm which operates at a per-row granularity by exploiting the insight that not every row is equal. Through precise replication of embedding rows based on their underlying probability distribution, along with the introduction of a new sharding strategy adapted to the heterogeneous, skewed performance of real-world cluster network topologies, FlexShard is able to significantly reduce communication demand while using no additional memory compared to the prior state-of-the-art. When evaluated on production-scale sequence DLRMs, FlexShard was able to reduce overall global all-to-all communication traffic by over 85%, resulting in end-to-end training communication latency improvements of almost 6x over the prior state-of-the-art approach.

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{sethi2023flexshard,
  title  = {FlexShard: Flexible Sharding for Industry-Scale Sequence Recommendation Models},
  author = {Geet Sethi and Pallab Bhattacharya and Dhruv Choudhary and Carole-Jean Wu and Christos Kozyrakis},
  year   = {2023},
  eprint = {2301.02959},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.02959v1}
}

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

Discussion