arXiv:2611.02618cs.DBNov 2026

Manuscript Offprint

arXiv:2611.02618

USDB: Scaling Storage for Next-Generation Recommender Systems at ByteDance

Xiaoran Zhu, Jieming Cai, Weiping Yu, Xi Chen, Shu Cai, Jiahao Li, Yifan Xiao, Yan Deng, Yisha Zhou, Yu Lin, Shiru Ren, Siqiang Luo, Peng Xu, Junjun Chai

ABSTRACT

Recommendation models consume increasingly long, attribute-rich user histories, making small continuous updates and repeated large reads a central storage asymmetry. We present USDB, ByteDance's unified sequence storage practice for streaming and batch workloads. CASCADELSM time-based compaction stages materialize application-specific histories; differentiated replicas share persistent files; partial dumps reconstruct inference inputs from captured recent state and versioned history; and a hybrid columnar format accelerates projected reads. These designs reuse maintenance results across ingestion, inference, and training. Production migration records show 85.8% lower mean write latency, while normalized deployment accounting shows 42.1% lower infrastructure cost. Controlled comparisons with an Optimized RocksDB sequence baseline show faster long-history reads across projections and client loads. Aggregation pushdown sustains 8.5× the throughput of ordinary reads under a constrained receive budget. Production reconstruction and direct-file training results demonstrate how shared sequence maintenance supports fresh serving and repeated historical access.

1 INTRODUCTION

Recommendation systems [3, 55, 56], widely used in online content platforms and e-commerce, personalize billions of user experiences daily. At ByteDance, recommendation powers a diverse portfolio of products including videos in TikTok, Douyin, live streaming, and e-commerce platforms, serving billions of users worldwide. Over the past decade, the field has evolved from traditional collaborative filtering to Deep Learning Recommendation Models (DLRMs) [11, 14, 49, 76], and most recently, to Large Recommendation Models (LRMs) [8, 74, 75] that fundamentally reshape how recommendations are generated. Unlike DLRMs, which rely on heterogeneous feature engineering and do not scale efficiently with additional compute on more feature interactions or deeper layers [65, 74], LRMs adopt sequential transduction architectures that directly model user behavior sequences, exhibiting compelling scaling laws [8, 27, 32, 74]: model quality improves predictably with longer user behavior sequences, denser computation in attention layers, and increased model depth.

These scaling trends increase the history retained and retrieved by recommendation infrastructure. At ByteDance, as shown in Figure 1, the sequence length consumed by recommendation models has increased 2,000-fold from 2023 to 2025 (50 to 100,000), with

Figure

Figure 1: Recommendation-storage evolution through September 2026. Representative history and deployment-scale estimates accompany the storage organizations; traffic factors summarize approximate operational growth.

representative retained-history configurations reaching 800,000 actions in September 2026, while the number of feature columns has grown from dozens to hundreds. Besides this algorithmic shift, the explosive growth in user base and engagement frequency has also amplified data volumes—Figure 1 summarizes the corresponding growth in deployment storage and the transition from separate stores to shared sequence storage. The plotted stages are representative internal estimates across applications; deployment capacity combines historical estimates with later scale anchors.

Supporting these large-scale recommendation workloads requires robust data infrastructure capable of simultaneously serving both streaming (real-time) and batch (historical) data access patterns as shown in Figure 2. For streaming inference, the system must provide low-latency point lookups to retrieve recent user interactions. For batch training, it must deliver high-throughput historical lookups and scans over massive datasets. Feature stores [19, 43, 50] have emerged as an important component in ML infrastructure, providing feature management, discovery, and serving capabilities at the application layer. However, the underlying storage engine that powers these systems remains a critical yet under-explored challenge, particularly when handling petabyte-scale user behavior sequences [29, 36] with the dual access patterns described above. This dual requirement naturally suggests a Lambda architecture [34, 67] that processes real-time and

  • equal contribution.

† corresponding authors, siqiang.luo@ntu.edu.sg and weiping.yu@bytedance.com.

Figure

Figure 2: Recommendation access. Inference reads recent Top-K histories; training repeats sample-time lookups. Both filter by user/time and select columns. Letters mark actions.

batch data through separate pipelines, ultimately merging them for downstream consumption by training and inference systems. On the storage engine side, key-value storage using LSM-trees naturally aligns with our target due to its write-optimized structure [16, 18]. Combining these two techniques yields a promising storage architecture for modern recommendation systems in the large model era.

Challenges. Scaling this architecture to billion-user platforms with petabyte-scale data introduces four fundamental challenges. First, existing approaches aggregate user sequences in memory using a read-before-write pattern; as streaming volumes exceed memory capacity and spill to SSDs, this transforms each small write into an SSD-bound bottleneck with severe amplification (§ 3.1). Second, LSM-tree compaction is CPU-intensive while batch storage demands large disk capacity, and coupling both on the same nodes drives up infrastructure costs and complicates capacity planning (§ 3.2). Third, maintaining consistency between training and inference becomes increasingly difficult at scale: out-of-order arrivals and delayed feedback signals cause the sequences observed during inference to diverge from those used in training, and LRMs are highly sensitive to such skew (§ 3.3). Finally, the conventional row-oriented SST format forces training workloads to deserialize entire records when scanning specific feature columns, wasting I/O bandwidth and yielding suboptimal compression ratios (§ 3.4).

Our System. To address these challenges, we developed USDB, a universal user behavior sequence data backend for ByteDance's entire recommendation system. This paper shares our industrial experience in building and operating a production-level storage system that serves one of the world's largest recommendation platforms, involving billions of users, petabyte-scale retained histories, and large distributed training and serving fleets. Our industrial experience connects storage architecture, consistency mechanisms, and data formats within one sequence lifecycle.

The contributions of this paper are as follows:

Architecture Contribution. We organize streaming ingestion, historical materialization, inference, and training around a shared sequence lifecycle. Application-specific aggregation produces

reusable history; differentiated replicas publish and reuse its persistent files; recorded visibility connects inference inputs to later training reads; and a common indexed columnar format supports both consumers. This coordination turns the four challenges into the four corresponding mechanisms below.

System Design. USDB (§ 4.1) integrates four components:

  • We propose CASCADELSM, a unified time-tiered LSM-tree that organizes streaming and batch data within a single structure. Through time-based data organization and differentiated compaction strategies, CASCADELSM eliminates the read-before-write pattern that plagued previous systems, reducing write latency by 85% while maintaining read latency (§ 4.2).

  • We design a differentiated multi-replica architecture over disaggregated storage-compute architecture, comprising read-write, read-heavy, and read-only replicas each tailored to its workload. Lightweight synchronization ensures replica consistency without redundant compaction, achieving a 42% reduction in total infrastructure cost.

  • We develop a sequence number-based versioning mechanism to maintain consistency between training and inference workloads. Combined with our partial dump mechanism, this reconstructs earlier inference inputs while replacing repeated full-sequence dumps with a captured recent fragment and reusable history (§ 4.4).

  • We design a hybrid columnar encoding format with adaptive encoding selection that serves both access patterns: columnar scans for training throughput and row-level indexing for inference latency. Our approach achieves 4.6–5.5× faster decompression than ZSTD in the codec evaluation, with encoded sizes between LZ4 and ZSTD (§ 4.5).

Production Experience. Deployed since 2024 across Douyin, TikTok, and their live streaming platforms, USDB reduces mean write latency by 85.8%, mean CPU utilization by 72.6%, and normalized infrastructure cost by 42.1%. A 374-run study against Optimized RocksDB complements the production evaluation: repeated 10K/100K reads achieve 1.79×/1.75× throughput, and 100K client-read jobs complete 1.62–2.52× faster (§ 5).

References (20)