paper-with-me

홈 › Papers

AutoShard: Automated Embedding Table Sharding for Recommender Systems

2022-08-12 · Daochen Zha, Louis Feng, Bhargav Bhushanam, Dhruv Choudhary, Jade Nie, Yuandong Tian, Jay Chae, Yinbin Ma, Arun Kejariwal, Xia Hu

Embedding learning is an important technique in deep recommendation models to map categorical features to dense vectors. However, the embedding tables often demand an extremely large number of parameters, which become the storage and efficiency bottlenecks. Distributed training solutions have been adopted to partition the embedding tables into multiple devices. However, the embedding tables can easily lead to imbalances if not carefully partitioned. This is a significant design challenge of distributed systems named embedding table sharding, i.e., how we should partition the embedding tables to balance the costs across devices, which is a non-trivial task because 1) it is hard to efficiently and precisely measure the cost, and 2) the partition problem is known to be NP-hard. In this work, we introduce our novel practice in Meta, namely AutoShard, which uses a neural cost model to directly predict the multi-table costs and leverages deep reinforcement learning to solve the partition problem. Experimental results on an open-sourced large-scale synthetic dataset and Meta's production dataset demonstrate the superiority of AutoShard over the heuristics. Moreover, the learned policy of AutoShard can transfer to sharding tasks with various numbers of tables and different ratios of the unseen tables without any fine-tuning. Furthermore, AutoShard can efficiently shard hundreds of tables in seconds. The effectiveness, transferability, and efficiency of AutoShard make it desirable for production use. Our algorithms have been deployed in Meta production environment. A prototype is available at https://github.com/daochenzha/autoshard

📄 PDF Abstract BibTeX arXiv:2208.06399

Code (1)

daochenzha/autoshard 공식 구현 pytorch

Tasks

Deep Reinforcement LearningRecommendation Systems

Similar Papers 제목 키워드 기반

Pre-train and Search: Efficient Embedding Table Sharding with Pre-trained Neural Cost Models

2023-05-03 · Daochen Zha, Louis Feng, Liang Luo, Bhargav Bhushanam 외

Sharding a large machine learning model across multiple devices to balance the costs is important in distributed training. This is challenging because partitioning is NP-hard, and estimating the costs accurately and effi…

FlexShard: Flexible Sharding for Industry-Scale Sequence Recommendation Models

2023-01-08 · Geet Sethi, Pallab Bhattacharya, Dhruv Choudhary, Carole-Jean Wu 외

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 improvem…

Automap: Towards Ergonomic Automated Parallelism for ML Models

2021-12-06 · Michael Schaarschmidt, Dominik Grewe, Dimitrios Vytiniotis, Adam Paszke 외

The rapid rise in demand for training large neural network architectures has brought into focus the need for partitioning strategies, for example by using data, model, or pipeline parallelism. Implementing these methods …

Embedding Compression in Recommender Systems: A Survey

2024-08-05 · Shiwei Li, Huifeng Guo, Xing Tang, Ruiming Tang 외

To alleviate the problem of information explosion, recommender systems are widely deployed to provide personalized information filtering services. Usually, embedding tables are employed in recommender systems to transfor…

Recommendation SystemsSurvey

Adjoint sharding for very long context training of state space models

2025-01-01 · Xingzi Xu, Amir Tavanaei, Kavosh Asadi, Karim Bouyarmane

Despite very fast progress, efficiently training large language models (LLMs) in very long contexts remains challenging. Existing methods fall back to training LLMs with short contexts (a maximum of a few thousands token…

GPULarge Language ModelState Space Models