Make It Long, Keep It Fast: End-to-End 10k-Sequence Modeling at Billion Scale on Douyin

Lin Guan, Jia-Qi Yang, Zhishan Zhao, Beichuan Zhang, Bo Sun +10 more
11/8/2025
cs.LGcs.IR

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Short-video recommenders such as Douyin must exploit extremely long user histories without breaking latency or cost budgets. We present an end-to-end system that scales long-sequence modeling to 10k-length histories in production. First, we introduce Stacked Target-to-History Cross Attention (STCA), which replaces history self-attention with stacked cross-attention from the target to the history, reducing complexity from quadratic to linear in sequence length and enabling efficient end-to-end training. Second, we propose Request Level Batching (RLB), a user-centric batching scheme that aggregates multiple targets for the same user/request to share the user-side encoding, substantially lowering sequence-related storage, communication, and compute without changing the learning objective. Third, we design a length-extrapolative training strategy -- train on shorter windows, infer on much longer ones -- so the model generalizes to 10k histories without additional training cost. Across offline and online experiments, we observe predictable, monotonic gains as we scale history length and model capacity, mirroring the scaling law behavior observed in large language models. Deployed at full traffic on Douyin, our system delivers significant improvements on key engagement metrics while meeting production latency, demonstrating a practical path to scaling end-to-end long-sequence recommendation to the 10k regime.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{guan2025make,
  title  = {Make It Long, Keep It Fast: End-to-End 10k-Sequence Modeling at Billion Scale on Douyin},
  author = {Lin Guan and Jia-Qi Yang and Zhishan Zhao and Beichuan Zhang and Bo Sun and Xuanyuan Luo and Jinan Ni and Xiaowen Li and Yuhang Qi and Zhifang Fan and Hangyu Wang and Qiwei Chen and Yi Cheng and Feng Zhang and Xiao Yang},
  year   = {2025},
  eprint = {2511.06077},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.06077v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.06077.svg)](https://codeofpaper.com/paper/2511.06077)

Discussion