MTGR: Industrial-Scale Generative Recommendation Framework in Meituan

Ruidong Han, Bin Yin, Shangyu Chen, He Jiang, Fei Jiang, Xiang Li, Chi Ma, Mincong Huang, Xiaoguang Li, Chunzhen Jing, Yueming Han, Menglei Zhou, Lei Yu, Chuan Liu, Wei LinCIKM 2025 · DOI

TL;DR

This paper introduces MTGR, a novel generative recommendation framework designed for industrial-scale applications. MTGR successfully bridges the gap between traditional Deep Learning Recommendation Models (DLRMs) and Generative Recommendation Models (GRMs) by retaining crucial cross-features while achieving GRM-like scalability and efficiency. This breakthrough has been successfully deployed on Meituan, handling significant traffic.

What Problem Does This Paper Address?

The paper tackles the challenge of scaling recommendation systems in industrial settings, where high query-per-second (QPS) and low latency are paramount. Traditional DLRMs, while effective at capturing feature interactions (like cross-features), struggle to scale efficiently with the ever-increasing volume of user behavior data. Conversely, Generative Recommendation Models (GRMs), which model user behavior as a sequence of tokens, offer excellent scalability but often require abandoning these valuable cross-features, leading to a significant performance degradation. The core problem is how to achieve both the performance benefits of cross-features and the scalability of generative models.

Methods

MTGR proposes a hybrid approach that combines the strengths of DLRM and GRM. Key innovations include:

  • Data Rearrangement: User and candidate features, including cross-features, are tokenized and arranged into a unified sequence. This allows the model to process them in a sequential manner, similar to GRMs.
  • HSTU Architecture: MTGR utilizes a Hierarchical Sequential Transduction Units (HSTU) architecture, adapted for recommendation tasks.
  • Group-Layer Normalization (GLN): This technique normalizes features from different semantic spaces separately, improving the encoding of heterogeneous information.
  • Dynamic Masking Strategy: To prevent information leakage and ensure proper causality, a custom masking strategy is employed within the self-attention mechanism. This strategy differentiates between static user information, recent dynamic interactions, and candidate tokens.
  • Optimized Training Framework: Built on TorchRec, the framework incorporates optimizations like dynamic hash tables for sparse embeddings, dynamic batch sizing, and mixed-precision training to enhance efficiency and scalability, especially for large-scale distributed training.

Datasets

The paper uses a proprietary dataset derived from Meituan's real-world industrial-scale recommendation system logs. For offline experiments, a 10-day subset was used, while for online evaluation and comparison with a long-trained DLRM baseline, a dataset spanning over six months was utilized. The authors note that this dataset is richer in cross-features and longer user behavior sequences compared to public datasets.

Key Insights and Ideas

  • Cross-features are Crucial: The paper strongly emphasizes that abandoning cross-features, as GRMs often do, severely degrades model performance, and scaling alone cannot compensate for this loss.
  • Generative Models Offer Scalability: GRMs' ability to model user behavior as a sequence of tokens is key to their scalability, enabling efficient processing of long sequences and reducing computational redundancy.
  • Hybrid Approach is the Way Forward: MTGR demonstrates that a hybrid approach, retaining cross-features while adopting a generative architecture, is the most effective path to achieving both performance and scalability in industrial recommendation systems.
  • Systematic Optimization Matters: Beyond architectural changes, significant performance gains were achieved through careful optimization of the training framework, particularly for handling large-scale distributed training and sparse embeddings.

Key Results

  • Performance Improvement: MTGR-large achieved a 65x FLOPs reduction per sample for forward inference compared to the DLRM baseline.
  • Offline Metrics: MTGR-large showed significant improvements in offline metrics, including a 1.90% increase in PV_CTR and a 1.02% increase in UV_CTCVR compared to the baseline.
  • Online Deployment: MTGR has been successfully deployed on Meituan, handling the main traffic and demonstrating its real-world applicability and effectiveness.
  • Scalability: The paper shows a clear power-law relationship between computational complexity and performance gains, indicating MTGR's strong scalability.
  • Training Efficiency: The optimized training framework improved training throughput by 1.6x–2.4x compared to standard TorchRec.

Limitations and Future Work

  • Limitations: While MTGR shows significant improvements, the paper doesn't explicitly detail limitations beyond the inherent challenges of large-scale model training. The ablation studies suggest that removing GLN or dynamic masking leads to performance drops, indicating their importance and potential areas for further refinement.
  • Future Work: The authors plan to explore extending MTGR to multi-scenario modeling, drawing inspiration from large language models, to create a more generalized recommendation foundation model with extensive knowledge.

Summary updated

BibTeX
@inproceedings{han2025mtgr,
  author = {Ruidong Han and Bin Yin and Shangyu Chen and He Jiang and Fei Jiang and Xiang Li and Chi Ma and Mincong Huang and Xiaoguang Li and Chunzhen Jing and Yueming Han and Menglei Zhou and Lei Yu and Chuan Liu and Wei Lin},
  title = {{MTGR: Industrial-Scale Generative Recommendation Framework in Meituan}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2025},
  doi = {10.1145/3746252.3761565},
}
Figure