MTGenRec: An Efficient Distributed Training System for Generative Recommendation Models in Meituan
Yuxiang Wang, Xiao Yan, Chi Ma, Mincong Huang, Xiaoguang Li, Lei Yu, Chuan Liu, Ruidong Han, He Jiang, Bin Yin, Shangyu Chen, Fei Jiang, Xiang Li, Wei Lin, Haowei Han, Bo Du, Jiawei Jiang
TL;DR
MTGenRec presents a scalable training system for generative recommendation models (GRMs) at Meituan, addressing dynamic embedding management and workload imbalance in industrial settings. It introduces four key components: a hash-based dynamic embedding table, automated table merging, two-stage ID deduplication for faster embedding lookups, and a lightweight dynamic sequence batching scheme to balance GPU workloads. Extensive experiments show 1.6x–2.4x throughput improvements over TorchRec and near-linear scalability across large GPU clusters, with measurable online gains in PV_CTR and take-away orders. The system is deployed for hundreds of millions of daily requests, demonstrating practical impact in production environments.
Abstract
Recommendation is crucial for both user experience and company revenue in Meituan as a leading lifestyle company, and generative recommendation models (GRMs) are shown to produce quality recommendations recently. However, existing systems are limited by insufficient functionality support and inefficient implementations for training GRMs in industrial scenarios. As such, we introduce MTGenRec as an efficient and scalable system for GRM training. Specifically, to handle real-time insertions/deletions of sparse embeddings, MTGenRec employs dynamic hash tables to replace static ones. To improve training efficiency, MTGenRec conducts dynamic sequence balancing to address the computation load imbalances among GPUs and adopts feature ID deduplication alongside automatic table merging to accelerate embedding lookup. Extensive experiments show that MTGenRec improves training throughput by $1.6\times -- 2.4\times$ while achieving good scalability when running over 100 GPUs. MTGenRec has been deployed for many applications in Meituan and is now handling hundreds of millions of requests on a daily basis. On the delivery platform, we observe a 1.22% growth in user order volume and a 1.31% enhancement in online PV_CTR.
