Abstract
Recommendation systems are vital for user experience and revenue at Meituan, a leading lifestyle company. While Generative Recommendation Models (GRMs) have recently demonstrated superior performance, their deployment in industrial settings is hindered by insufficient functionality and inefficient training implementations. We introduce MTGenRec, an efficient and scalable system designed for GRM training. MTGenRec utilizes dynamic hash tables to support real-time sparse embedding updates, dynamic sequence balancing to eliminate GPU computation imbalances, and two-stage ID deduplication to accelerate embedding lookups. Our system improves training throughput by $1.6\times$ to $2.4\times$ and scales effectively across over 100 GPUs. Deployed at Meituan, it handles hundreds of millions of daily requests, resulting in a 1.22% growth in user order volume and a 1.31% increase in online CTR.
Introduction: The Shift to Generative Recommendation
Modern recommendation systems are transitioning from traditional Deep Recommendation Models (DRMs)—typically based on simple multi-layer perceptrons—to Generative Recommendation Models (GRMs) utilizing Transformer architectures. GRMs excel at capturing long-term user behavior patterns, which are critical for accurate lifestyle recommendations. However, this shift introduces significant industrial-scale challenges.
As shown in Figure 2, while GRMs significantly outperform DRMs in terms of Area Under the Curve (AUC), they do so at the cost of vastly increased computational complexity (measured in GFLOPs). This complexity, combined with the quadratic scaling of Transformers relative to sequence length, creates a "straggler" problem in distributed environments where GPUs handling longer user histories become bottlenecks.
System Architecture and Methods
MTGenRec addresses these challenges by optimizing both the sparse embedding layers and the dense Transformer components of the model.
Dynamic Hash Embedding Tables
Industrial recommendation environments are highly dynamic, with new users and items appearing constantly. Traditional frameworks often rely on static embedding tables with fixed capacities, which can lead to system crashes or accuracy loss when limits are reached. MTGenRec replaces these with a decoupled dynamic hash table structure. By separating the key mapping from the embedding data, the system can expand capacity on the fly and handle arbitrary feature IDs through grouped parallel probing.
Efficiency Optimizations
Beyond dynamic storage, MTGenRec implements several key strategies to maximize training efficiency:
- Dynamic Sequence Batching: Instead of assigning a fixed number of users to each GPU, MTGenRec balances the workload by "token count." By ensuring each GPU handles a roughly equal number of total tokens, the system eliminates idle time caused by varying sequence lengths.
- Two-Stage ID Deduplication: To minimize network overhead, the system removes duplicate feature IDs both before and after cross-GPU transmission. This prevents redundant embedding vector transfers, attacking a primary bottleneck in distributed training.
- Automated Table Merging: The system automatically fuses multiple embedding tables with identical dimensions, reducing the overhead of expensive lookup operations.
Evaluation and Real-world Impact
MTGenRec was evaluated using Meituan’s internal production logs, comprising 200 million user sequences and over 23 billion exposures. The system demonstrated robust sublinear scaling up to 128 GPUs and achieved a throughput improvement of up to 2.44x compared to state-of-the-art frameworks like TorchRec.
In online A/B testing on Meituan’s delivery platform, the deployment of GRMs trained via MTGenRec led to a 1.22% growth in user order volume and a 1.31% enhancement in online Click-Through Rate (CTR). These results underscore the system's ability to translate architectural efficiency into tangible business value.
Conclusion
MTGenRec provides a high-performance solution for scaling Generative Recommendation Models to massive industrial workloads. By focusing on token-based load balancing and dynamic embedding structures, it overcomes the primary hurdles of computational complexity and data volatility. Future work will explore more advanced dense model optimizations, such as pipeline parallelism, as recommendation models continue to grow toward "Large Recommendation Model" scales.
Summary updated