TL;DR
OneLive is a novel, end-to-end generative recommendation framework designed specifically for the highly dynamic, time-constrained world of live-streaming. By replacing traditional multi-stage cascade pipelines with a unified decoder-only architecture, it successfully handles evolving content and complex multi-objective user interactions. Deployed at scale on Kuaishou, OneLive serves 400 million daily users, delivering substantial gains in both recommendation quality and inference efficiency.
What Problem Does This Problem Address?
Traditional industrial recommender systems rely on a funnel-like cascade architecture: Retrieval $\rightarrow$ Pre-Ranking $\rightarrow$ Ranking. While this handles large-scale concurrency well, it introduces severe information bottlenecks and misaligned objectives across stages.
Recently, Generative Recommendation (GR) models have emerged to unify these stages into a single Transformer that directly predicts an item's semantic ID. However, existing GR frameworks assume items are static (like movies or products). They break down in live-streaming scenarios due to four unique challenges:
- Dynamic Content: Streamers constantly change activities (e.g., switching from chatting to singing or dancing), rendering static item tokenization useless.
- Limited Lifecycles: Live streams are ephemeral. Recommendations are only valid while the stream is actively broadcasting.
- Strict Real-Time Constraints: High user concurrency requires ultra-low latency responses.
- Multiple Objectives: User feedback is highly heterogeneous, spanning clicks, watch time, comments, follows, and gifting.
Methods
To tackle these challenges, the authors introduce OneLive, which unifies item tokenization, sequence modeling, and multi-objective optimization into a single framework.
1. Dynamic Interaction-Aware (IA) Tokenizer
Instead of static indexing, OneLive uses a two-stage paradigm. First, a lightweight Multimodal Large Language Model (MLLM) processes 30-second sliding windows of the live stream to capture real-time content. Second, a dual-tower architecture fuses these content embeddings with instant user behavioral feedback. The resulting aligned embeddings are quantized via Res-Kmeans into multi-level, real-time Semantic IDs (SIDs).
2. Lazy Decoder-Only Architecture
Traditional encoder-decoder structures waste massive compute encoding long user history sequences. OneLive adopts a "lazy" decoder-only setup that projects historical sequences directly into key-value contexts, preserving model capacity while minimizing computation.
3. Time-Aware Gated Attention
To respect the strict temporal constraints of live broadcasts, the model injects multi-granular time biases (hour, day, week) into both historical sequences and the query anchor. It uses an adaptive gated attention mechanism to dynamically emphasize temporally relevant contexts.
4. Sequential Multi-Token Prediction (MTP) & QK Norm
Autoregressively predicting a multi-token SID is slow. OneLive accelerates this by using a full-sized main decoder to predict the first token ($q^0$), and lightweight, single-layer parallel decoders to predict the subsequent residual tokens ($q^1, q^2$) while sharing the KV cache. To prevent training instability and logit explosion in deep layers, QK Normalization (RMSNorm applied to Query and Key vectors) is integrated.
5. Reinforcement Learning Alignment
To break through the performance ceiling of standard behavior cloning, OneLive incorporates on-policy reinforcement learning using Group Relative Policy Optimization (GRPO) or Direct Preference Optimization (DPO). It utilizes an ensemble ranking reward model (Pantheon) to adaptively balance multiple engagement objectives based on user preferences.
Datasets
The framework was trained and evaluated using massive, real-world industrial logs from the Kuaishou App:
- Scale: Over 400 million users, 3 million authors, and billions of interaction records (clicks and long-views).
- Duration: Data was collected over nearly two months, using the final day's logs for testing and the preceding period for training.
Key Insights and Ideas
- Static IDs Fail for Live Content: Fusing real-time content embeddings with collaborative user signals dynamically is essential. This approach drastically reduces codebook collisions and allows the system to adapt instantly when a streamer shifts content types.
- The Encoder is a Bottleneck in GR: In generative recommendation, processing long user interaction histories inside an encoder is computationally inefficient. Shifting to a lazy decoder-only architecture with shared KV caches dramatically boosts Model FLOPS Utilization (MFU).
- Inference Acceleration via Residuals: Because hierarchical SIDs represent coarse-to-fine residuals, predicting the finer-grained tokens using lightweight, single-layer "lite" decoders avoids the overhead of multiple full-model autoregressive passes.
Key Results
Offline Performance
OneLive significantly outperformed both traditional sequential models (SASRec, KuaiFormer, GNN) and state-of-the-art generative models (OneRec, TIGER). For click records, it achieved a 16.70% improvement in Hit Rate (HR@128) and a 14.26% boost in MRR@128 over the best baseline.
Inference Efficiency
The Sequential MTP mechanism delivered a 62.0% increase in single-machine QPS and a 55.45% reduction in computational graph execution latency for a 6-layer model configuration. It achieved an impressive MFU of 22.78% on NVIDIA L20 GPUs (compared to just 2.56% for standard online ranking models).
Online A/B Tests
When deployed in production on Kuaishou and Kuaishou Lite, OneLive demonstrated strong page-level improvements across core metrics:
- Exposure: +1.32% (Kuaishou) / +1.96% (Kuaishou Lite)
- Click Count: +1.73% / +2.70%
- Follows: +1.36% / +2.07%
Limitations and Future Work
While the model follows scaling law trends (larger parameter sizes yield lower loss), the authors noted diminishing marginal returns when scaling beyond 0.08B parameters due to strict online deployment and latency constraints.
For future work, the team plans to explore even more efficient generative recommendation paradigms to push past these hardware-imposed scaling ceilings without sacrificing real-time responsiveness.
Summary updated