paper-with-me

홈 › 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, Zirui Liu, Yusuo Hu, Jade Nie, Yuzhen Huang, Yuandong Tian, Arun Kejariwal, Xia Hu

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 efficiently is difficult. In this work, we explore a "pre-train, and search" paradigm for efficient sharding. The idea is to pre-train a universal and once-for-all neural network to predict the costs of all the possible shards, which serves as an efficient sharding simulator. Built upon this pre-trained cost model, we then perform an online search to identify the best sharding plans given any specific sharding task. We instantiate this idea in deep learning recommendation models (DLRMs) and propose NeuroShard for embedding table sharding. NeuroShard pre-trains neural cost models on augmented tables to cover various sharding scenarios. Then it identifies the best column-wise and table-wise sharding plans with beam search and greedy grid search, respectively. Experiments show that NeuroShard significantly and consistently outperforms the state-of-the-art on the benchmark sharding dataset, achieving up to 23.8% improvement. When deployed in an ultra-large production DLRM with multi-terabyte embedding tables, NeuroShard achieves 11.6% improvement in embedding costs over the state-of-the-art, which translates to 6.6% end-to-end training throughput improvement. To facilitate future research of the "pre-train, and search" paradigm in ML for Systems, we open-source our code at https://github.com/daochenzha/neuroshard

📄 PDF Abstract BibTeX arXiv:2305.01868

Code (1)

daochenzha/neuroshard 공식 구현 pytorch

Similar Papers 제목 키워드 기반

AutoShard: Automated Embedding Table Sharding for Recommender Systems

2022-08-12 · Daochen Zha, Louis Feng, Bhargav Bhushanam, Dhruv Choudhary 외

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

Deep Reinforcement LearningRecommendation Systems

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…

FlashCP: Load-Balanced Communication-Efficient Context Parallelism for LLM Training

2026-06-07 · Zheng Wang, Eric Liu, Linan Jiang, Zhongkai Yu 외 arxiv

Context parallelism (CP) is essential for training large-scale, long-context language models, as it partitions sequences to reduce memory overhead. However, existing CP methods suffer from workload imbalance, inefficient…

Learning to Shard: RL for Co-optimizing the Parallelism Degrees and Per-operator Sharding Dimensions in Distributed LLM Inference

2025-08-29 · Ruokai Yin, Sattwik Deb Mishra, Xuan Zuo, Hokchhay Tann 외 arxiv

Distributed LLM inference requires careful coordination of parallelization strategies across hundreds to thousands of NPUs to meet production SLOs. Current systems like Megatron-LM rely on static heuristics that separate…

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