Unifying Generative Recall and Multi-Objective Ranking in a Single Decoder-Only Sequence

Ruochen Yang, Shuang Wen, Pengbo Xu, Yusheng Huang, Jiangxia Cao, Shuang Yang, Zhaojie Liu, Jiawei Sheng, Tingwen LiuarXiv 2026

TL;DR

UniR² unifies generative recall and multi-objective ranking into a single decoder-only Transformer sequence, eliminating the traditional architectural gap between these two recommendation stages. By reusing user-context computations and employing task-specific attention masks with LoRA-based gradient isolation, it simultaneously improves recommendation quality and slashes online inference latency by over 54%.

What Problem Does This Paper Address?

Modern industrial recommender systems typically operate as a multi-stage cascade: a recall stage filters billions of items down to a few thousands, and a ranking stage performs fine-grained scoring across multiple business objectives (like clicks, likes, or shares).

While effective, this split introduces a fundamental gap:

  1. Objective Inconsistency: The two stages are optimized independently, leading to misaligned goals.
  2. Information Loss: Rich representation data from the recall stage is compressed into a simple discrete list of candidate IDs before being handed off to the ranker.
  3. Redundant Computation: Both stages independently re-encode the user's long behavioral history, wasting massive amounts of CPU/GPU resources.

As both recall and ranking architectures shift toward Transformer backbones, the authors ask: Can we formulate generative recall and multi-objective ranking into a single Transformer sequence rather than two isolated models?

Architecture comparison between cascaded architecture and UniR².

Methods

The authors introduce UniR² (Unified Generative Recall and Multi-Objective Ranking), a single decoder-only Transformer trunk that processes a heterogeneous sequence composed of three segments: $$\mathcal{S} = [\text{User Segment } (\mathcal{P}) \parallel \text{Generative Segment } (\mathcal{T}_{gen}) \parallel \text{Ranking Segment } (\mathcal{T}_{rank})]$$

To make this single-sequence design work without the two tasks interfering with each other, UniR² introduces two core mechanisms:

  1. Dual-Query Prefix-Causal Attention (DQ-PCA): Generative recall requires strict causal masking (predicting the next token based only on the past), whereas ranking requires bidirectional attention for feature fusion. DQ-PCA uses two independent queries with distinct visibility patterns over the same shared attention weights. Crucially, the ranking query discards the raw, long user history sequence because the user's preferences have already been condensed into the generated recall trajectory.
  2. LoRA-Balanced Ranking Adaptation: Ranking objectives generate dense, frequent gradients that can easily corrupt the structured autoregressive backbone needed for recall. To isolate the optimization paths, the authors apply a stop-gradient boundary before the ranking head and inject ranking-specific Low-Rank Adaptations (LoRA) into the attention projections.
Figure 2: The overall architecture of our model.

Inference Pipeline

During online serving, UniR² caches the Key/Value (KV) states of the user prefix and the generated Semantic ID (SID) trajectory on the GPU during the recall phase. The ranking phase directly reuses this cache, eliminating redundant user context processing and allowing ranking to run in parallel with external strategy filters.

The inference pipeline of UniR².

Datasets

The model was evaluated using large-scale industrial live-streaming logs from the Kuaishou App. The dataset is massive, containing:

  • 400 million users
  • 3 million authors
  • Billions of diverse interactions (exposures, clicks, long-views, and gifts)

Key Insights and Ideas

  • The Trajectory as a Bridge: Instead of treating the recall stage's output as a static list of items, UniR² uses the generated Semantic ID (SID) trajectory as a live representation bridge. The ranker directly attends to the generation path, absorbing the "decision-making process" of the recall stage.
  • Optimization Asymmetry: Simple multi-task learning fails here because ranking gradients dominate. The combination of stop-gradients and task-specific LoRA layers proves that you can couple representations in the forward pass while isolating them during the backward pass.
  • History Discarding works: A surprising finding is that the ranker does not need to re-examine the user's raw historical sequence. Attending to the compact SID trajectory generated by the recall branch provides sufficient context for fine-grained feature fusion, saving massive amounts of FLOPs.

Key Results

Offline Performance

UniR² consistently outperformed strong generative recall baselines (such as OneLive and PROMISE) and production ranking models:

  • Recall: Achieved a +4.54% improvement in Hit Rate (HR@64) and a +4.92% boost in Mean Reciprocal Rank (MRR@128) over the best baseline.
  • Ranking: Improved Area Under the ROC Curve (AUC) across all core metrics, including Click-Through Rate (CTR, +0.75%) and Long-View Through Rate (LVTR, +1.13%).

Online Deployment & Latency

UniR² was evaluated in a production A/B test on Kuaishou serving 5% of live traffic over two weeks:

  • Business Metrics: Increased play volume by +1.177% on the Kuaishou App and total gifting amount by +2.569% on Kuaishou Lite.
  • Inference Speedup: Slashed end-to-end pipeline latency by 54.29% due to KV cache reuse and parallelized execution blocks.

Limitations and Future Work

  • Dependency on Tokenization: The model relies heavily on hierarchical Semantic IDs (SIDs) generated via K-Means. If the item tokenization fails to capture semantic shifts over time, both the recall and ranking performance will degrade.
  • Diminishing Returns on Scaling: While the unified model scales well when increasing layers and hidden dimensions, the authors noted clear diminishing returns at larger sizes, meaning hyperparameter tuning is highly sensitive for production environments.
  • Future Work: The authors suggest extending this single-sequence paradigm even further down the pipeline to encompass the re-ranking stage or integrating multimodal user/item tokens directly into the sequence.

Summary updated

BibTeX
@misc{yang2026unifying,
  author = {Ruochen Yang and Shuang Wen and Pengbo Xu and Yusheng Huang and Jiangxia Cao and Shuang Yang and Zhaojie Liu and Jiawei Sheng and Tingwen Liu},
  title = {{Unifying Generative Recall and Multi-Objective Ranking in a Single Decoder-Only Sequence}},
  year = {2026},
  eprint = {2607.24439},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.24439},
}
Figure