mlsanityData to 7 Oct 2026

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

arXiv 2305.01868 ↗First posted 3 May 2023cs.LG cs.DC cs.IRcited by 5

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  4. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  5. 2020Conservative Q-Learning for Offline Reinforcement Learningcited by 1,777
  6. 2017Neural Collaborative Filteringcited by 1,108
  7. 2016Wide & Deep Learning for Recommender Systemscited by 745
  8. 2017Deep Reinforcement Learning that Matterscited by 727
  9. 2018Deep Interest Evolution Network for Click-Through Rate Predictioncited by 336
  10. 2019Deep Learning Recommendation Model for Personalization and Recommendation Systemscited by 327
  11. 2016Hierarchical Deep Reinforcement Learning: Integrating Temporal Abstraction and Intrinsic Motivationcited by 282
  12. 2023Data-centric Artificial Intelligence: A Surveycited by 202
38 more
  1. 2018Beyond Data and Model Parallelism for Deep Neural Networkscited by 177
  2. 2015Compressing Neural Networks with the Hashing Trickcited by 150
  3. 2018Self-Imitation Learningcited by 135
  4. 2023The Science of Detecting LLM-Generated Textscited by 126
  5. 2017Device Placement Optimization with Reinforcement Learningcited by 84
  6. 2019The Architectural Implications of Facebook's DNN-based Personalized Recommendationcited by 83
  7. 2021Software-Hardware Co-design for Fast and Scalable Training of Deep Learning Recommendation Modelscited by 78
  8. 2019Compositional Embeddings Using Complementary Partitions for Memory-Efficient Recommendation Systemscited by 68
  9. 2021DouZero: Mastering DouDizhu with Self-Play Deep Reinforcement Learningcited by 65
  10. 2020Policy-GNN: Aggregation Optimization for Graph Neural Networkscited by 48
  11. 2019Experience Replay Optimizationcited by 47
  12. 2020AutoEmb: Automated Embedding Dimensionality Search in Streaming Recommendationscited by 47
  13. 2020Understanding Training Efficiency of Deep Learning Recommendation Models at Scalecited by 43
  14. 2023Data-centric AI: Perspectives and Challengescited by 43
  15. 2021Learnable Embedding Sizes for Recommender Systemscited by 42
  16. 2021FBGEMM: Enabling High-Performance Low-Precision Deep Learning Inferencecited by 40
  17. 2019Neural Input Search for Large Scale Recommendation Modelscited by 39
  18. 2020Learning to Embed Categorical Features without Embedding Tables for Recommendationcited by 38
  19. 2020Deep Learning Training in Facebook Data Centers: Design of Scale-up and Scale-out Systemscited by 37
  20. 2021Sparse-Interest Network for Sequential Recommendationcited by 37
  21. 2019Deep Representation Learning for Social Network Analysiscited by 35
  22. 2020Meta-AAD: Active Anomaly Detection with Deep Reinforcement Learningcited by 34
  23. 2020Model Size Reduction Using Frequency Based Double Hashing for Recommender Systemscited by 33
  24. 2020Learning to Hash with Graph Neural Networks for Recommender Systemscited by 31
  25. 2019Is a Single Vector Enough? Exploring Node Polysemy for Network Embeddingcited by 29
  26. 2020Understanding Capacity-Driven Scale-Out Neural Recommendation Inferencecited by 29
  27. 2021Rank the Episodes: A Simple Approach for Exploration in Procedurally-Generated Environmentscited by 28
  28. 2022RecShard: Statistical Feature-Based Memory Optimization for Industry-Scale Neural Recommendationcited by 28
  29. 2019Placeto: Learning Generalizable Device Placement Algorithms for Distributed Machine Learningcited by 26
  30. 2022Bring Your Own View: Graph Neural Networks for Link Prediction with Personalized Subgraph Selectioncited by 26
  31. 2017Related Pins at Pinterest: The Evolution of a Real-World Recommender Systemcited by 24
  32. 2020Learning Multi-granular Quantized Embeddings for Large-Vocab Categorical Features in Recommender Systemscited by 24
  33. 2020Efficient Algorithms for Device Placement of DNN Graph Operatorscited by 24
  34. 2018Exploring Hidden Dimensions in Parallelizing Convolutional Neural Networkscited by 23
  35. 2022SurCo: Learning Linear Surrogates For Combinatorial Nonlinear Optimization Problemscited by 21
  36. 2019Reinforced Genetic Algorithm Learning for Optimizing Computation Graphscited by 17
  37. 2021Persia: An Open, Hybrid System Scaling Deep Learning-based Recommenders up to 100 Trillion Parameterscited by 17
  38. 2022AutoShard: Automated Embedding Table Sharding for Recommender Systemscited by 17

50 most cited of 58 All 58 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 1; 2026: 2.

5 papers.