AutoShard: Automated Embedding Table Sharding for Recommender Systems
Not on the map. Why?
Abstract (arXiv)
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
Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Builds on 34 of its 43 references that are in the map. First posted on arXiv 12 Aug 2022.
Builds on
34 of 43 references.
References · 34
- 2013Playing Atari with Deep Reinforcement Learningcited by 3,274
- 2016Neural Architecture Search with Reinforcement Learningcited by 1,499
- 2017Neural Collaborative Filteringcited by 1,111
- 2018IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architecturescited by 883
- 2016Wide & Deep Learning for Recommender Systemscited by 747
- 2018AutoAugment: Learning Augmentation Policies from Datacited by 730
- 2018Deep Interest Evolution Network for Click-Through Rate Predictioncited by 338
- 2019Deep Learning Recommendation Model for Personalization and Recommendation Systemscited by 327
- 2018AutoInt: Automatic Feature Interaction Learning via Self-Attentive Neural Networkscited by 320
- 2019Random Search and Reproducibility for Neural Architecture Searchcited by 254
- 2017Deep Learning based Recommender System: A Survey and New Perspectivescited by 136
- 2019The Architectural Implications of Facebook's DNN-based Personalized Recommendationcited by 83
22 more
- 2019Exploratory Combinatorial Optimization with Reinforcement Learningcited by 82
- 2019Compositional Embeddings Using Complementary Partitions for Memory-Efficient Recommendation Systemscited by 68
- 2021DouZero: Mastering DouDizhu with Self-Play Deep Reinforcement Learningcited by 66
- 2020Distributed Hierarchical GPU Parameter Server for Massive Scale Deep Learning Ads Systemscited by 60
- 2019Experience Replay Optimizationcited by 48
- 2020AutoEmb: Automated Embedding Dimensionality Search in Streaming Recommendationscited by 47
- 2020Understanding Training Efficiency of Deep Learning Recommendation Models at Scalecited by 43
- 2021Learnable Embedding Sizes for Recommender Systemscited by 42
- 2019TorchBeast: A PyTorch Platform for Distributed RLcited by 41
- 2020TODS: An Automated Time Series Outlier Detection Systemcited by 41
- 2021FBGEMM: Enabling High-Performance Low-Precision Deep Learning Inferencecited by 41
- 2019Neural Input Search for Large Scale Recommendation Modelscited by 39
- 2020Deep Learning Training in Facebook Data Centers: Design of Scale-up and Scale-out Systemscited by 38
- 2020Learning to Embed Categorical Features without Embedding Tables for Recommendationcited by 38
- 2020Meta-AAD: Active Anomaly Detection with Deep Reinforcement Learningcited by 34
- 2020Model Size Reduction Using Frequency Based Double Hashing for Recommender Systemscited by 33
- 2019Security and Privacy on Blockchaincited by 32
- 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
- 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
- 2021AutoVideo: An Automated Video Action Recognition Systemcited by 6
Built on by
Citing papers per year: 2022: 3; 2023: 8; 2024: 2; 2025: 2; 2026: 2.
17 papers.
Sort:
By area:
- 2023Data-centric Artificial Intelligence: A Surveycited by 203
- 2022SurCo: Learning Linear Surrogates For Combinatorial Nonlinear Optimization Problemscited by 21
- 2023Scaling User Modeling: Large-scale Online User Representations for Ads Personalization in Metacited by 21
- 2023CoRTX: Contrastive Framework for Real-time Explanationcited by 20
- 2022DreamShard: Generalizable Embedding Table Placement for Recommender Systemscited by 14
- 2023Chakra: Advancing Performance Benchmarking and Co-design using Standardized Execution Tracescited by 13
- 2022Towards Automated Imbalanced Learning with Deep Hierarchical Reinforcement Learningcited by 9
- 2023MP-Rec: Hardware-Software Co-Design to Enable Multi-Path Recommendationcited by 9
- 2023Pre-train and Search: Efficient Embedding Table Sharding with Pre-trained Neural Cost Modelscited by 5
- 2023FlexShard: Flexible Sharding for Industry-Scale Sequence Recommendation Modelscited by 4
- 2023Towards Personalized Preprocessing Pipeline Searchcited by 1
- 2024Towards Universal Performance Modeling for Machine Learning Training on Multi-GPU Platformscited by 1
5 more
- 2024Disaggregating Embedding Recommendation Systems with FlexEMRcited by 1
- 2025SCRec: A Scalable Computational Storage System with Statistical Sharding and Tensor-train Decomposition for Recommendation Modelscited by 0
- 2025Deep Recommender Models Inference: Automatic Asymmetric Data Flow Optimizationcited by 0
- 2026NestPipe: Large-Scale Recommendation Training on 1,500+ Accelerators via Nested Pipeliningcited by 0
- 2026When KV Meets Embeddings: Dynamic GPU Memory Allocation for Accelerating Generative Recommender Servingcited by 0
- 2026When KV Meets Embeddings: Dynamic GPU Memory Allocation for Accelerating Generative Recommender Serving6 May 2026
- 2026NestPipe: Large-Scale Recommendation Training on 1,500+ Accelerators via Nested Pipelining8 Apr 2026
- 2025Deep Recommender Models Inference: Automatic Asymmetric Data Flow Optimization2 Jul 2025
- 2025SCRec: A Scalable Computational Storage System with Statistical Sharding and Tensor-train Decomposition for Recommendation Models1 Apr 2025
- 2024Disaggregating Embedding Recommendation Systems with FlexEMR28 Sep 2024
- 2024Towards Universal Performance Modeling for Machine Learning Training on Multi-GPU Platforms19 Apr 2024
- 2023Scaling User Modeling: Large-scale Online User Representations for Ads Personalization in Meta16 Nov 2023
- 2023Chakra: Advancing Performance Benchmarking and Co-design using Standardized Execution Traces23 May 2023
- 2023Pre-train and Search: Efficient Embedding Table Sharding with Pre-trained Neural Cost Models3 May 2023
- 2023Data-centric Artificial Intelligence: A Survey17 Mar 2023
- 2023CoRTX: Contrastive Framework for Real-time Explanation5 Mar 2023
- 2023Towards Personalized Preprocessing Pipeline Search28 Feb 2023
5 more
- 2023MP-Rec: Hardware-Software Co-Design to Enable Multi-Path Recommendation21 Feb 2023
- 2023FlexShard: Flexible Sharding for Industry-Scale Sequence Recommendation Models8 Jan 2023
- 2022SurCo: Learning Linear Surrogates For Combinatorial Nonlinear Optimization Problems22 Oct 2022
- 2022DreamShard: Generalizable Embedding Table Placement for Recommender Systems5 Oct 2022
- 2022Towards Automated Imbalanced Learning with Deep Hierarchical Reinforcement Learning26 Aug 2022
- 2023Data-centric Artificial Intelligence: A Surveycited by 203
- 2022SurCo: Learning Linear Surrogates For Combinatorial Nonlinear Optimization Problemscited by 21
- 2023Scaling User Modeling: Large-scale Online User Representations for Ads Personalization in Metacited by 21
- 2023CoRTX: Contrastive Framework for Real-time Explanationcited by 20
- 2022DreamShard: Generalizable Embedding Table Placement for Recommender Systemscited by 14
- 2023Chakra: Advancing Performance Benchmarking and Co-design using Standardized Execution Tracescited by 13
- 2022Towards Automated Imbalanced Learning with Deep Hierarchical Reinforcement Learningcited by 9
- 2023MP-Rec: Hardware-Software Co-Design to Enable Multi-Path Recommendationcited by 9
- 2023Pre-train and Search: Efficient Embedding Table Sharding with Pre-trained Neural Cost Modelscited by 5
- 2023FlexShard: Flexible Sharding for Industry-Scale Sequence Recommendation Modelscited by 4
- 2023Towards Personalized Preprocessing Pipeline Searchcited by 1
- 2024Towards Universal Performance Modeling for Machine Learning Training on Multi-GPU Platformscited by 1
12 most cited of 16 All 16 (JSON)
- 2026NestPipe: Large-Scale Recommendation Training on 1,500+ Accelerators via Nested Pipelining8 Apr 2026
- 2025Deep Recommender Models Inference: Automatic Asymmetric Data Flow Optimization2 Jul 2025
- 2025SCRec: A Scalable Computational Storage System with Statistical Sharding and Tensor-train Decomposition for Recommendation Models1 Apr 2025
- 2024Disaggregating Embedding Recommendation Systems with FlexEMR28 Sep 2024
- 2024Towards Universal Performance Modeling for Machine Learning Training on Multi-GPU Platforms19 Apr 2024
- 2023Scaling User Modeling: Large-scale Online User Representations for Ads Personalization in Meta16 Nov 2023
- 2023Chakra: Advancing Performance Benchmarking and Co-design using Standardized Execution Traces23 May 2023
- 2023Pre-train and Search: Efficient Embedding Table Sharding with Pre-trained Neural Cost Models3 May 2023
- 2023Data-centric Artificial Intelligence: A Survey17 Mar 2023
- 2023CoRTX: Contrastive Framework for Real-time Explanation5 Mar 2023
- 2023Towards Personalized Preprocessing Pipeline Search28 Feb 2023
- 2023MP-Rec: Hardware-Software Co-Design to Enable Multi-Path Recommendation21 Feb 2023
12 newest of 16 All 16 (JSON)