Manuscript Offprint

arXiv:2609.08443

SequenceO1: End-to-End Ultra-Long (100K) Sequence Modeling in Recommendation with Low-Rank Caching

Lin Guan, Jia-Qi Yang, Zhishan Zhao, Jiaqi Huang, Hangyu Wang, Longbin Li, Beichuan Zhang, Haonan Jiang, Jinan Ni, Xiangyu Fan, Xiaowen Li, Ziyao Ren, Yuhang Qi, Xiaolong Zhu, Xuanyuan Luo, Qiwei Chen, Yi Cheng, Lele Yu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Lin Guan ∗^{*}

guanlin.13@gmail.com

ByteDance

Beijing, China

Jiaqi Huang ∗^{*}

jiaqihuang.0612@gmail.com

ByteDance

Beijing, China

Beichuan Zhang

zhangbeichuan.123@bytedance.com

ByteDance

Beijing, China

Xiangyu Fan

xiangyufan.ptr@bytedance.com

ByteDance

Shanghai, China

Yuhang Qi

qiyuhang@bytedance.com

ByteDance

Hangzhou, Zhejiang, China

Qiwei Chen †^{\dagger}

chenqiwei05@gmail.com

ByteDance

Shanghai, China

Jia-Qi Yang ∗^{*}

yangjiaqi.yjq@bytedance.com

ByteDance

Shanghai, China

Hangyu Wang

wanghangyu.123@bytedance.com

ByteDance

Shanghai, China

Haonan Jiang

jianghaonan.1004@bytedance.com

ByteDance

Shanghai, China

Xiaowen Li

lixiaowen.911@bytedance.com

ByteDance

Beijing, China

Xiaolong Zhu

zhuxiaolong.auto@bytedance.com

ByteDance

Beijing, China

Yi Cheng

chengyi.23@bytedance.com

ByteDance

Beijing, China

Zhishan Zhao ∗^{*}

zhaozhishan@bytedance.com

ByteDance

Beijing, China

Longbin Li

mengxinghe@bytedance.com

ByteDance

Beijing, China

Jinan Ni

nijinan@bytedance.com

ByteDance

Shanghai, China

Ziyao Ren

renziyao.99@bytedance.com

ByteDance

Beijing, China

Xuanyuan Luo

xuanyuanluo@bytedance.com

ByteDance

Hangzhou, Zhejiang, China

Lele Yu

yulele@bytedance.com

ByteDance

San Jose, CA, USA

Abstract

Modern short-video recommenders must exploit ultra-long user histories—which can reach hundreds of thousands or even millions of interactions per user—but are constrained by strict latency and training-throughput budgets. At the 100K scale, the bottleneck is systemic, spanning feature storage, communication, and computation in both training and serving. Existing solutions based on truncation, multi-stage retrieval, or length extrapolation either sacrifice end-to-end modeling or retain substantial length-dependent system cost.

We present SequenceO1, an end-to-end framework deployed at full traffic on Douyin at the 100K scale and designed to extend to

million-scale histories. The name reflects its cache-hit path, whose cost is O(1)O(1) with respect to the raw ultra-long sequence length once the fixed-size sketch is available. At the model level, we propose Sketch Attention (SA), which compresses an ultra-long history into a fixed-size, user-only sketch using learnable prototypes and prototype-wise normalization (each token distributes mass over prototypes). We then perform target-conditioned reasoning at two time scales: STCA over a recent 10K suffix for recency and STCA over the fixed-size sketch for ultra-long signals, followed by lightweight fusion.

At the system level, a training-side local key-value cache reuses user-only sketches across repeated instances of the same user, and the same cacheable state is reused across consecutive serving requests. We further improve efficiency with multi-request user-level batching in training and a fused FlashSA kernel for sketching under ragged batching. Together, these model and system optimizations make end-to-end 100K sequence modeling practical in production and provide a scalable path toward million-scale histories.

∗^{*}Contributed equally.

†^{†}Corresponding author.

Figure

This work is licensed under a Creative Commons Attribution 4.0 International License. RecSys '26, Minneapolis, MN, USA

© 2026 Copyright held by the owner/author(s).

ACM ISBN 979-8-4007-2284-4/2026/09

https://doi.org/10.1145/3773078.3831864

Guan et al.

CCS Concepts

• Information systems → Recommender systems.

References (10)