MPFormer: Adaptive Framework for Industrial Multi-Task Personalized Sequential Retriever

Yijia Sun, Shanshan Huang, Linxiao Che, Haitao Lu, Qiang Luo, Kun Gai, Guorui Zhou

Abstract

Industrial recommendation systems often face a "multi-stage optimization misalignment" where the ranking stage optimizes for multiple objectives while the retrieval stage remains limited to single-objective models. We present MPFormer, a unified Transformer-based framework that bridges this gap. By utilizing an objective-conditioned architecture and a novel dynamic quota allocation mechanism, MPFormer enables efficient multi-task retrieval. Deployed at Kuaishou, the system serves over 400 million daily active users, achieving significant recall improvements and reducing serving resource requirements by over 66% compared to traditional multi-model approaches.

Introduction

Modern recommendation pipelines typically consist of a retrieval stage followed by a ranking stage. While ranking models have evolved to simultaneously optimize for diverse signals such as clicks, watch time, and conversions, retrieval models often lag behind. Existing industrial solutions typically rely on either single-objective models, which fail to capture diverse user interests, or multiple independent models, which are computationally expensive and fail to model inter-task relationships.

MPFormer addresses these challenges by introducing a single, efficient multi-task retriever capable of handling industrial-scale traffic. It focuses on three key areas: unified task encoding, personalized model capacity, and adaptive serving strategies.

Methods

The MPFormer architecture integrates several innovations to balance multi-task performance with industrial efficiency.

Objective-Conditioned Transformer

Instead of maintaining separate models for different objectives, MPFormer uses a single Transformer stack. The model appends learnable "objective embeddings" (e.g., for "click" or "long view" tasks) to the user's behavior sequence. This allows the shared Transformer layers to jointly encode temporal patterns and task-specific semantics within a unified representation space. To maintain efficiency, Query (Q), Key (K), and Value (V) projection matrices are shared across all tasks, reducing parameter complexity with negligible impact on accuracy.

The MPFormer architecture featuring the objective-conditioned Transformer and personalized decoder units.

Personalized Decoder Units (P-FFN)

To incorporate user-specific nuances without the prohibitive cost of full Mixture-of-Experts (MoE) layers, MPFormer employs a gated expert module specifically in the third decoder layer. This Task-specific Personalized Decoder Unit uses user IDs and device types to gate expert Feed-Forward Networks (FFNs), providing fine-grained capacity tailored to individual users.

Dynamic Quota Allocation

Recognizing that user preferences for different objectives (e.g., clicking vs. watching) vary, MPFormer learns to predict the importance of each objective in real-time. The L_quota Unit calculates a union score to determine the optimal number of items to retrieve from each task-specific index (e.g., the "click" index vs. the "watch time" index).

The training and online serving workflow for the Dynamic Quota Allocation mechanism.

Experiments and Results

MPFormer was evaluated using production logs from Kuaishou, encompassing 5 billion training interactions and 1 billion test interactions.

Offline Performance

The model demonstrated substantial gains in Recall@10 across various objectives. Notably, it achieved a 44% relative improvement in the pro_lvr (long view rate) category compared to the KuaiFormer baseline.

Online Impact and Efficiency

In live A/B testing with over 400 million DAU, MPFormer delivered a +0.426% increase in Total Watch Time and a +0.195% increase in Total App Usage Time. System efficiency gains were equally significant:

  • 60% reduction in training resource consumption.
  • 66.7% reduction in serving GPU memory and computation.
  • Stable P99 latency of 80ms at 1.2 million QPS.

Key Insights

  • The "ID Homogenization" Trap: The authors found that including User/Device IDs in the main attention layers can cause task embeddings to collapse into a generic representation. Restricting these IDs to the gated P-FFN preserves task discrimination.
  • Adaptive Retrieval: Dynamic quota allocation outperformed fixed ratios, showing that objectives like view-through rate (VTR) often require a larger "quota" of retrieved items to optimize the final candidate pool, leading to a 12.7% increase in multi-objective exposure.

Conclusion

MPFormer successfully bridges the semantic gap between retrieval and ranking in large-scale recommendation systems. By unifying multi-task learning within a single Transformer architecture and adaptively managing retrieval quotas, it provides a scalable and efficient solution for modern industrial needs. Future work will explore deeper interactions between user behaviors and item features within the retrieval stage.

Summary updated

BibTeX
@inproceedings{sun2025mpformer,
  author = {Yijia Sun and Shanshan Huang and Linxiao Che and Haitao Lu and Qiang Luo and Kun Gai and Guorui Zhou},
  title = {{MPFormer: Adaptive Framework for Industrial Multi-Task Personalized Sequential Retriever}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2025},
}
Figure