OneRank: Unified Transformer-Native Ranking Architecture for Multi-Task Recommendation

Jiakai Tang, Sunhao Dai, Kun Wang, Zhiluohan Guo, Yu Zhao, Cong Fu, Kangle Wu, Yabo Ni, Anxiang Zeng, Xu Chen, Jun XuarXiv 2026

TL;DR

OneRank is a novel, Transformer-native multi-task recommendation framework that eliminates the traditional separation between feature encoders and task predictors. By internalizing multi-task reasoning directly within the Transformer stack using task-private channels and strategic gradient detachment, it successfully mitigates information bottlenecks and inter-task gradient conflicts while enabling dynamic, context-aware ranking.

What Problem Does This Paper Address?

Modern recommendation systems must simultaneously predict multiple user actions, such as clicks, adding items to a cart, and final purchases. To handle this, the industry has largely shifted toward powerful Transformer-centric architectures to model complex user histories.

However, existing approaches still rely on a decoupled encoder-predictor paradigm. They treat the Transformer as a task-agnostic encoder that squashes all features into a single shared representation, which is then fed into separate, static Multi-Layer Perceptron (MLP) prediction heads for each task. The authors identify three fundamental limitations with this design:

  1. Information Bottleneck: Task-specific signals get entangled within the shared representation, forcing downstream predictors to struggle with disentanglement late in the pipeline.
  2. The Seesaw Phenomenon: Conflicting gradients from different task objectives interfere with shared parameters during backpropagation, meaning improvements in one task often degrade the performance of another.
  3. Mismatched Dataflow: The dynamic, context-adaptive attention mechanism of the Transformer is abruptly handed off to static, global MLP decision boundaries, disrupting end-to-end reasoning and scaling.
Architectural comparison between traditional MTL and OneRank

Methods

OneRank introduces a unified, Transformer-native architecture that builds task-private channels alongside task-shared pathways from the bottom up.

Figure 2: Overall architecture of OneRank. The input is organized into a unified token sequence with structured tokenization, including interaction history (IH), preference anchoring (PA), and candidate-task token groups. Task-specific token injection with mutual invisibility enables early task specialization. Candidate-aware contextualization aggregates cross-candidate signals via situational descriptors, while flexible cross-task relational attention facilitates controlled knowledge transfer across tasks. OneRank adopts a matching-based scoring formulation for dynamic context-aware personalized ranking.

Its key architectural innovations include:

  • Structured Tokenization & Task-Specific Encoding: The model combines user interaction history, preference anchors (retrieved via a RAG-like mechanism), and candidate items into a single sequence. Crucially, it injects dedicated task tokens into the sequence. A structured attention mask enforces mutual invisibility among different task tokens, allowing early, independent task specialization.
  • Candidate-Aware Contextualization: Instead of evaluating items in isolation, OneRank uses situational descriptors (e.g., user demographics, query, time, location) and Multi-Head Cross-Attention (MHCA) to aggregate signals across the entire candidate pool. This allows the model to capture real-time competitive dynamics between items.
  • Strategic Gradient Detachment: To allow tasks to share knowledge without interfering with each other, OneRank customizes its backward pass. It blocks off-diagonal gradient flows during cross-task relational attention, effectively turning cross-task attention into a "read-only memory" that prevents negative transfer.
  • Dynamic Matching-Based Scoring: The authors replace static MLP heads with a dynamic matching formulation. Final task-relevance scores are computed via the inner product of task-aware global context representations and context-conditioned candidate embeddings, keeping the entire pipeline within a consistent representation space.

Datasets

The framework was evaluated using a massive, real-world proprietary dataset from Shopee, a leading e-commerce platform:

  • Shopee Dataset: Comprises 30 consecutive days of user interaction logs (December 2025), encompassing over 33 million users, 118 million items, and 26.6 billion impressions. It explicitly tracks click, add-to-cart, and order feedback loops.

Key Insights and Ideas

  • Prediction Belongs Inside the Encoder: Moving multi-task reasoning inside the Transformer stack preserves the unique identity of task signals from the very beginning, rather than forcing a constrained downstream predictor to disentangle them later.
  • Read-Only Knowledge Transfer: While sparse downstream tasks (like purchases) benefit immensely from the data-rich representations of upstream tasks (like clicks), backpropagating gradients across tasks causes optimization instability. Gradient detachment elegantly solves this by allowing forward-pass sharing while isolating backward-pass updates.
  • Bridging the Training-Serving Gap: Traditional point-wise models evaluate user-item pairs in isolation, ignoring the fact that items compete against each other at serving time. OneRank's candidate-aware contextualization directly models this pool-wide competition.

Key Results

  • Offline Performance: OneRank consistently outperformed state-of-the-art baselines (including MMoE, PLE, MTGR, and OneTrans) across click, add-to-cart, and order prediction tasks, achieving significant gains in both AUC and GAUC metrics.
  • Online A/B Testing: Deployed in production at Shopee, OneRank achieved substantial business and user-experience improvements over a 7-day testing period:
  • +1.01% lift in Gross Merchandise Value per user (GMV/UU)
  • +1.17% increase in paid GMV per user
  • +0.81% gain in advertising revenue
  • -2.29% reduction in the Bad Query Rate (improving search relevance)
  • Computational Efficiency: Despite its unified complexity, OneRank maintains low serving latency and high GPU utilization through efficient KV-caching of user-specific components.

Limitations and Future Work

The authors do not explicitly detail limitations or specific future work directions in the paper. However, because OneRank relies heavily on custom attention masking and structured token sequences, adapting it to non-sequential features or hybrid model architectures that do not natively use Transformers could present engineering challenges.

Summary updated

Abstract

Multi-task learning (MTL) is essential in recommender systems to enable complementary learning among diverse user feedback. While modern industrial practices have shifted from DNNs to Transformer-centric architectures to strengthen sequence modeling and scaling capacity, they still decouple feature encoding from multi-task prediction, treating the Transformer as a task-agnostic encoder. This design fundamentally limits the performance and scalability by (1) creating an information bottleneck under heterogeneous task objectives, (2) inducing gradient interference that leads to the seesaw phenomenon, and (3) forcing a dataflow transition in which attention-based, context-adaptive representation learning is converted to static feed-forward task prediction with incompatible information read-write dynamics. We propose OneRank, a Transformer-native multi-task ranking framework that eliminates encoder-predictor separation and introduces task-private channels for forward representation learning and backward optimization, enabling task-specialized learning while reducing inter-task interference. In the forward pass, OneRank learns task-specific representations bottom-up through task-conditioned information selection, candidate-aware contextualization, and controlled cross-task interaction. In the backward pass, cross-task gradient detachment isolates task-private parameter updates from shared knowledge extraction modules, preventing negative transfer. We further replace static task-specific MLP scorers with dynamic matching-based scoring for context-aware personalized ranking. By internalizing multi-task reasoning within the Transformer stack, OneRank establishes a unified and scalable architectural paradigm. Offline and online experiments on large-scale industrial datasets show that OneRank significantly outperforms state-of-the-art baselines while maintaining computational efficiency.
BibTeX
@misc{tang2026onerank,
  author = {Jiakai Tang and Sunhao Dai and Kun Wang and Zhiluohan Guo and Yu Zhao and Cong Fu and Kangle Wu and Yabo Ni and Anxiang Zeng and Xu Chen and Jun Xu},
  title = {{OneRank: Unified Transformer-Native Ranking Architecture for Multi-Task Recommendation}},
  year = {2026},
  eprint = {2606.16838},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.16838},
}

Loading related content...

Figure