TL;DR
BatchWeave is an object-store-native data plane designed for Large Foundation Model (LFM) training that cleanly decouples heavy data preprocessing from GPU training. By introducing a "Transactional Global Batch" abstraction and a decentralized commit algorithm, it provides strict training consistency, fault isolation, and exact-once recovery without requiring a centralized coordinator.
What Problem Does This Paper Address?
Training modern multimodal foundation models (like video-to-text or robotics models) has fundamentally changed the data pipeline. Preprocessing raw inputs—such as video decoding, resolution rescaling, and token packing—is highly dynamic and content-dependent. This causes massive, unpredictable data expansion, sometimes inflating intermediate data volumes by one to three orders of magnitude (up to 9,000× in some robotics workloads).
Existing data loading architectures are ill-equipped for this reality:
- Colocated Pipelines: Running preprocessing on the same CPU threads as the training process causes severe resource contention with the GPUs and lacks failure isolation (a single preprocessing crash stalls the entire training job).
- Centralized Disaggregated Services: Offloading preprocessing to separate worker pools via RPC delivers batches ephemerally, leaving no persistent history to support deterministic replay during checkpoint rollbacks.
- Message Queues (e.g., Apache Kafka): These systems operate on a record/offset abstraction rather than a batch abstraction. This mismatch leads to either out-of-order batch assembly across data-parallel ranks (corrupting gradient updates) or massive read amplification.
Methods
BatchWeave is implemented entirely as a client-side library with no server-side processes, relying on cloud object storage (like Amazon S3 or Baidu BOS) as the sole shared substrate. Its architecture introduces three core components:
- Transactional Global Batch (TGB): BatchWeave adapts the versioned-manifest architecture commonly found in data lakehouses (e.g., Delta Lake, Iceberg). A TGB treats a training batch as a first-class persistent entity. Data is written as immutable objects, and its visibility is gated by a versioned metadata manifest. This ensures that all data-parallel ranks atomically see a globally consistent batch at every step.
- Decentralized Adaptive Commit (DAC): To allow multiple independent data producers to write to the shared manifest concurrently without a central coordinator, BatchWeave uses Optimistic Concurrency Control (OCC). DAC is an online algorithm that monitors manifest I/O times (the "fragile window") and automatically tunes each producer's commit cadence to maximize throughput while minimizing commit conflicts.
- Checkpoint-Aligned Lifecycle Management: Instead of deleting data based on arbitrary time or capacity thresholds, BatchWeave ties data retention directly to the training framework's distributed checkpoint progress. Data is safely purged only when it is no longer needed for potential fault rollbacks.
Datasets
The authors evaluated BatchWeave across three large-scale foundation model workloads:
- GR00T: An end-to-end humanoid robot training policy workload.
- HoloAssist: A large-scale egocentric video Supervised Fine-Tuning (SFT) dataset training a Qwen3-VL-30B model.
- BEHAVIOR-1K: Multi-camera robot demonstration workloads stored in the LeRobot format for Vision-Language-Action (VLA) training.
- OpenCLIP + WebDataset (WDS): Used to benchmark image-text preprocessing data expansion.
Key Insights and Ideas
- Repurposing the Lakehouse Pattern: The "aha moment" of the paper is realizing that the versioned-manifest pattern used by offline analytical engines to manage table states can be adapted into a high-frequency streaming data plane for deep learning.
- The "Fragile Window" as a Control Signal: Rather than building a complex, stateful coordination service to manage distributed data producers, DAC treats the time it takes to perform manifest I/O as a single, easily measurable proxy for system contention.
- Targeted Range Reads over Broad Streaming: Distributed training requires ranks to consume specific slices of a batch. By storing a lightweight footer index inside each TGB object, BatchWeave allows ranks to perform direct range reads for only their required data, achieving near $1\times$ read amplification and eliminating the straggler effects common in message queues.
Key Results
- End-to-End Speedups: BatchWeave outperformed expert-optimized colocated pipelines by 2.68× to 7.73× in end-to-end training throughput across the evaluated workloads.
- Robust Scalability: Unlike Kafka, which suffered from severe backpressure and failed on large video payloads at scale, BatchWeave's ingestion throughput scaled linearly up to 128 data producers.
- Storage Savings: Tying data reclamation to live checkpoints capped peak storage capacity, resulting in a 72% reduction in object store bytes compared to unmanaged staging.
Limitations and Future Work
- Storage Primitive Dependency: BatchWeave relies heavily on object stores supporting strong consistency and conditional writes (specifically
If-None-Matchsemantics). While common in modern cloud object stores, performance may vary on custom on-premise storage setups. - Prototype Constraints: The current implementation is built on an internal fork of the Lance data format.
- Future Directions: While the paper mentions online experience rollouts (like RLHF/RLVR) as a motivating use case where models generate data dynamically at runtime, the evaluation primarily focuses on heavy offline dataset preprocessing. Fully exploring BatchWeave's performance in highly dynamic RL loops remains an open area for future deployment.
Summary updated