背景与挑战
Generative re-ranking conditions each decision on previously selected items, enabling context-aware list modeling. Industrial deployment faces two barriers: business controls require explicit candidate-level scores, and scoring hundreds of candidates at every round makes projection and attention a latency bottleneck.
框架概述
We propose a business-controllable, mask-driven discriminative auto-regressive (AR) re-ranking framework. It preserves explicit scores and represents business coefficients and online controls as model inputs. Dynamic attention and feasibility masks encode AR dependencies and business-compatible candidate selection.
Multi-round prediction, rule execution, and selection run in a unified static serving graph, enabling graph-level optimization. Cross-round caching reuses round-invariant projections.
技术优化
For deeper layers, the Off-Diagonal Transformer (ODT) mitigates Self-Loop Dominance by removing candidate-side key-value projections and attention self-loops. It focuses attention on candidate-context interactions while preserving point-wise information through residual pathways, reducing per-round KV-projection and attention complexities from $O(ND^2)$ and $O(N(N+L)D)$ to $O(D^2)$ and $O(NLD)$, where $N$, $L$, and $D$ are candidate count, list length, and hidden size.
实验结果与部署
On Shopee's Product Detail Page, the framework improves CTR/CVR GAUC by 0.53/0.79 percentage points, with TensorFlow graph execution latency below 7.5 ms on an NVIDIA L40S GPU. Online A/B tests across six regions show Order gains of 2.58%-4.66% and GMV gains of 2.38%-5.80%.
It is fully deployed across all PDP regions and in Daily Discover in Indonesia, Shopee's largest market, with rollout to other regions planned.