Manuscript Offprint

arXiv:2610.33079

Rethinking Video Storage for AI Training: Breaking Cross-Frame Dependencies for Efficient Random Access

Zetian Song, Qize Yu, Yue Chen, Bohan Zhou, Bowen Ping, Yuqi Ye, Haocheng Tang, Haotian Zhang, Qizhe Wang, Shiyu Huang, Jiaqi Zhang, Siwei Ma, Wen Gao

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

Zetian Song1,†^{1,\dagger}, Qize Yu1,†^{1,\dagger}, Yue Chen1^{1}, Bohan Zhou1^{1}, Bowen Ping1^{1}, Yuqi Ye1^{1}, Haocheng Tang1^{1}, Haotian Zhang1^{1}, Qizhe Wang1^{1}, Shiyu Huang2^{2}, Jiaqi Zhang1,∗^{1,*}, Siwei Ma1^{1}, Wen Gao1^{1}

1^{1}Peking University, 2^{2}Tsinghua University

†^{\dagger}Equal contribution. ∗^{*}Corresponding authors.

Large-scale AI training increasingly relies on massive video datasets with random temporal sampling patterns. However, existing video storage paradigms are optimized for sequential playback and employ sophisticated inter-frame reference structures to maximize compression efficiency. When applied to the random-sampling workloads of AI training, these paradigms face substantial decoding-efficiency bottlenecks. Workarounds such as independent JPEG frames and short groups of pictures (GOPs) reduce decoding work at the cost of larger storage and transfer volumes. In this paper, we identify two sources of decode amplification: sequential reconstruction of unrelated frames and reconstruction of the reference chains required by sampled targets. We address both sources by co-designing the decoding schedule and video reference structure. Dependency-aware sparse decoding reconstructs only requested frames and their required references, skipping unrelated reconstruction without transcoding the source videos. Optional offline Dependency-Decoupled Random Access (DDRA) encoding further reduces reference reconstruction by restricting each interior frame to two bounding intra-coded anchors. Together, sparse decoding and DDRA retain inter-frame prediction while bounding reconstruction to at most three frames per requested target, independent of the intra period. Experiments on a large-scale robotics corpus show that, at comparable reconstruction quality, our method achieves 1.45×1.45\times the loading throughput of LeRobot v3 with 58.7% less media payload.

Date: October 21, 2026

Project Page: https://skywalker-yqz.github.io/codec4AI/

Code: https://github.com/kaname-madoka18/codec4AI

Figure

1 Introduction

Video-based learning systems are increasingly used in autonomous driving, robotics [2, 9, 29, 32], and multimodal understanding [4, 30, 31]. Instead of sequential playback, the training workloads repeatedly sample short windows or sparse frames from long recordings, shuffle requests across videos, and revisit the corpus over many epochs. An effective storage path must therefore combine compact representation with fine-grained temporal access and sustained data delivery to accelerators; sequential throughput alone is insufficient.

Conventional video storage exposes a compression–random-access tension under these workloads. General-purpose video codecs exploit inter-frame redundancy to reduce storage and transfer volume [24, 26], but their playback-oriented designs introduce two sources of decode amplification. First, container-level seeking locates a synchronization point but does not make decoding frame-selective: conventional pipelines decode every intervening frame sequentially until the target is produced, even though many of these frames are not requested by the training workload. Second, hierarchical reference structures allow B frames to depend on other B frames, so producing one target may additionally require reconstructing a transitive chain of reference frames. Together, redundant sequential decoding and mandatory reference reconstruction consume CPU time without directly producing requested training samples.

Materializing every frame as an independently compressed image avoids temporal decode dependencies, and row- or shard-based formats can then expose individual images to a sampler [13, 21]. A more storage-efficient compromise uses mini-GOP video coding to shorten reference dependency chains, as in our LeRobot [3] baseline. Both representations better match sparse access, but they sacrifice inter-frame redundancy—either entirely or through frequent intra-coded anchors—and thereby increase persistent-storage use and network-bandwidth demand during training.

We address this tension by co-designing the online decoding schedule and the offline video representation around training requests. First, dependency-aware sparse decoding reconstructs only the requested frames and their direct and transitive references in dependency-respecting order, skipping unrelated frames that a sequential decoder would otherwise process. This removes redundant decoding, but leaves the required reference chains intact. To shorten these chains, we introduce Dependency-Decoupled Random Access (DDRA), an offline encoding configuration that removes B-to-B reference edges and restricts each interior B frame to the two intra-coded anchors that bound its intra period. The resulting dependency closure contains only the target and its two anchors. Together, sparse decoding and DDRA reduce both sources of decode amplification while retaining inter-frame prediction, standards-compliant bitstreams, and the decoded-frame interface expected by existing training pipelines.

We evaluate two settings on three robotics datasets comprising 3,000 episodes and 8,908 camera streams (Table 1). Without offline transcoding, our sparse loader is 1.81×1.81\times, 1.34×1.34\times, and 1.25×1.25\times faster than PyAV, Decord, and TorchCodec, respectively, based on average loading time across four access patterns. With offline transcoding at comparable reconstruction quality, our H.265 variant achieves 1.45×1.45\times the throughput of LeRobot v3 and 2.02×2.02\times that of JPEG, while reducing media payload by 58.7% and 90.0%, respectively. Figure 1 summarizes this storage-throughput trade-off using the same average loading times.

Figure

Figure 1 Storage-throughput trade-off for different storage methods. The ratio of p95 to mean loading time.

Our contributions are threefold:

  • We analyze the video-storage requirements of AI training and identify two sources of decode amplification: sequential decoding of unrelated frames and transitive frame dependencies.

  • We combine dependency-aware sparse decoding with DDRA encoding, eliminating unrelated frame reconstruction and bounding each interior target's dependency closure while retaining inter-frame prediction.

• Experiments across three datasets and four access patterns demonstrate faster native video loading and, after quality-aligned transcoding, higher throughput with less media payload than LeRobot v3 and JPEG.

References (30)