Pre-train and Search: Efficient Embedding Table Sharding with Pre-trained Neural Cost Models
Not on the map. Why?
Abstract (arXiv)
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
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 58 of its 88 references that are in the map. First posted on arXiv 3 May 2023.
Builds on
58 of 88 references.
References · 58
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2020Conservative Q-Learning for Offline Reinforcement Learningcited by 1,777
- 2017Neural Collaborative Filteringcited by 1,108
- 2016Wide & Deep Learning for Recommender Systemscited by 745
- 2017Deep Reinforcement Learning that Matterscited by 727
- 2018Deep Interest Evolution Network for Click-Through Rate Predictioncited by 336
- 2019Deep Learning Recommendation Model for Personalization and Recommendation Systemscited by 327
- 2016Hierarchical Deep Reinforcement Learning: Integrating Temporal Abstraction and Intrinsic Motivationcited by 282
- 2023Data-centric Artificial Intelligence: A Surveycited by 202
38 more
- 2018Beyond Data and Model Parallelism for Deep Neural Networkscited by 177
- 2015Compressing Neural Networks with the Hashing Trickcited by 150
- 2018Self-Imitation Learningcited by 135
- 2023The Science of Detecting LLM-Generated Textscited by 126
- 2017Device Placement Optimization with Reinforcement Learningcited by 84
- 2019The Architectural Implications of Facebook's DNN-based Personalized Recommendationcited by 83
- 2021Software-Hardware Co-design for Fast and Scalable Training of Deep Learning Recommendation Modelscited by 78
- 2019Compositional Embeddings Using Complementary Partitions for Memory-Efficient Recommendation Systemscited by 68
- 2021DouZero: Mastering DouDizhu with Self-Play Deep Reinforcement Learningcited by 65
- 2020Policy-GNN: Aggregation Optimization for Graph Neural Networkscited by 48
- 2019Experience Replay Optimizationcited by 47
- 2020AutoEmb: Automated Embedding Dimensionality Search in Streaming Recommendationscited by 47
- 2020Understanding Training Efficiency of Deep Learning Recommendation Models at Scalecited by 43
- 2023Data-centric AI: Perspectives and Challengescited by 43
- 2021Learnable Embedding Sizes for Recommender Systemscited by 42
- 2021FBGEMM: Enabling High-Performance Low-Precision Deep Learning Inferencecited by 40
- 2019Neural Input Search for Large Scale Recommendation Modelscited by 39
- 2020Learning to Embed Categorical Features without Embedding Tables for Recommendationcited by 38
- 2020Deep Learning Training in Facebook Data Centers: Design of Scale-up and Scale-out Systemscited by 37
- 2021Sparse-Interest Network for Sequential Recommendationcited by 37
- 2019Deep Representation Learning for Social Network Analysiscited by 35
- 2020Meta-AAD: Active Anomaly Detection with Deep Reinforcement Learningcited by 34
- 2020Model Size Reduction Using Frequency Based Double Hashing for Recommender Systemscited by 33
- 2020Learning to Hash with Graph Neural Networks for Recommender Systemscited by 31
- 2019Is a Single Vector Enough? Exploring Node Polysemy for Network Embeddingcited by 29
- 2020Understanding Capacity-Driven Scale-Out Neural Recommendation Inferencecited by 29
- 2021Rank the Episodes: A Simple Approach for Exploration in Procedurally-Generated Environmentscited by 28
- 2022RecShard: Statistical Feature-Based Memory Optimization for Industry-Scale Neural Recommendationcited by 28
- 2019Placeto: Learning Generalizable Device Placement Algorithms for Distributed Machine Learningcited by 26
- 2022Bring Your Own View: Graph Neural Networks for Link Prediction with Personalized Subgraph Selectioncited by 26
- 2017Related Pins at Pinterest: The Evolution of a Real-World Recommender Systemcited by 24
- 2020Learning Multi-granular Quantized Embeddings for Large-Vocab Categorical Features in Recommender Systemscited by 24
- 2020Efficient Algorithms for Device Placement of DNN Graph Operatorscited by 24
- 2018Exploring Hidden Dimensions in Parallelizing Convolutional Neural Networkscited by 23
- 2022SurCo: Learning Linear Surrogates For Combinatorial Nonlinear Optimization Problemscited by 21
- 2019Reinforced Genetic Algorithm Learning for Optimizing Computation Graphscited by 17
- 2021Persia: An Open, Hybrid System Scaling Deep Learning-based Recommenders up to 100 Trillion Parameterscited by 17
- 2022AutoShard: Automated Embedding Table Sharding for Recommender Systemscited by 17
50 most cited of 58 All 58 (JSON)
Built on by
Citing papers per year: 2024: 2; 2025: 1; 2026: 2.
5 papers.
- 2024Wukong: Towards a Scaling Law for Large-Scale Recommendationcited by 72
- 2024Disaggregated Multi-Tower: Topology-aware Modeling Technique for Efficient Large-Scale Recommendationcited by 6
- 2025Two-dimensional Sparse Parallelism for Large Scale Deep Learning Recommendation Model Trainingcited by 2
- 2026LoKA: Low-precision Kernel Applications for Recommendation Models At Scalecited by 1
- 2026NestPipe: Large-Scale Recommendation Training on 1,500+ Accelerators via Nested Pipeliningcited by 0
- 2026LoKA: Low-precision Kernel Applications for Recommendation Models At Scale11 May 2026
- 2026NestPipe: Large-Scale Recommendation Training on 1,500+ Accelerators via Nested Pipelining8 Apr 2026
- 2025Two-dimensional Sparse Parallelism for Large Scale Deep Learning Recommendation Model Training5 Aug 2025
- 2024Wukong: Towards a Scaling Law for Large-Scale Recommendation4 Mar 2024
- 2024Disaggregated Multi-Tower: Topology-aware Modeling Technique for Efficient Large-Scale Recommendation1 Mar 2024