Ensembles average several models whose mistakes differ, and they gain accuracy only to the extent those mistakes are uncorrelated. On datasets too large for memory, the cheapest way to train several models is to read the data once and feed every model from that single stream. The catch is that a shared stream tends to give every model the same examples in the same order, and that pushes the models toward making the same mistakes. Systems for training many jobs at once already show this cost: JOADER, a data loader that coordinates concurrent training jobs so they hit the same cached samples (A Deep Learning Dataloader with Shared Data Preparation), saves training time, but its authors warn that breaking sampling independence "might not be as effective for highly correlated workloads, such as those used for variance reduction in ensemble methods." The opposite choice, where each member gets its own independent shuffled stream, multiplies disk reads by the number of members. On data where reads already take up most of each epoch, that multiplier settles the matter.
We propose a loader that reads the disk once but gives each ensemble member its own statistical experience of the data. All members share the bytes in a resident window of disk blocks. Each member then draws its own random per-example weights, which play the role of its private bootstrap resample, along with its own order of blocks and its own minibatch composition within that window. The claim is that diversity comes from how each model weights and orders examples, not from which bytes leave the disk. If the claim holds, an $M$-member ensemble can be trained at close to the input/output (I/O) cost of a single model while matching the accuracy and error decorrelation of $M$ fully independent loaders. The difference should matter most on disk data that is physically sorted by collection batch, where a shared order would also leave members with the same recent-block bias.
Core Claim
Write $\sigma^2$ for the error variance of a single member and $\rho$ for the average correlation between two members' errors. Uniform averaging of $M$ members then has error variance
$$ \mathrm{Var}_{\text{ens}} = \rho\,\sigma^2 + \frac{(1-\rho)\,\sigma^2}{M}, $$
which is the standard decomposition for an average of equally correlated variables. Out-of-core loading affects $\rho$, not only $\sigma^2$. A fully shared stream lowers I/O and raises $\rho$. Independent streams lower $\rho$ but multiply I/O by $M$. We claim that three cheap, member-specific randomizations applied on top of one shared read stream bring $\rho$ back to the independent-stream level. The first is a Poisson-distributed count per example, which reproduces the bootstrap in expectation. The second is a private permutation of blocks within the resident window. The third is private minibatch assembly. We expect this to hold in particular on non-homogeneous data, where the order of blocks is itself a source of correlated forgetting.
The motivating evidence is that order structure on disk is a major failure mode. In scDataset, a loader for large single-cell data, sequential streaming of Tahoe-100M collapses to near-chance accuracy on drug and mechanism-of-action classification because the data is stored by experimental plate. Quasi-random block sampling with batched fetching restores the accuracy of true random sampling at a 204x speedup over AnnLoader. That paper fixes the problem for one model. It does not ask whether several models sharing its stream end up with correlated plate-recency errors, and that is the question here.
Research Program
The loader builds on scDataset's block sampling and on Redox (Brand: Managing Training Data with Batched Random Access). Redox shows that stochastic gradient descent needs each example once per epoch but not a strict global order, and it uses that fact to turn random reads into batched sequential chunk reads. Both papers supply the I/O mechanism; neither touches ensembles.
On top of this mechanism, the loader keeps a sliding window of $W$ disk blocks in memory. Each block is read exactly once per epoch, in an order drawn so that consecutive windows mix plates. When a block arrives, each member $m$ draws an independent count $c_{m,i} \sim \mathrm{Poisson}(1)$ for every example $i$. Examples with count zero, about 37% of them, are skipped by that member. The others enter its loss with that weight. Each member also samples minibatches from the whole window according to its own permutation over blocks and examples. Blocks are evicted when every member has consumed them, using the reference-counting idea from JOADER's cache policy. The difference from JOADER is that the order of consumption is decorrelated on purpose rather than aligned.
The analysis has three parts. The first is a measurement of how window size $W$ trades memory for decorrelation. The overlap between two members' minibatch sequences shrinks as $W$ grows, and we will measure the resulting $\rho$ empirically rather than assume it. The second is a member-staleness bound: how far apart, in blocks, two members can drift before the window must grow. The third is an accounting of total bytes read and wall-clock time against ensemble gain. The ensemble gain is ensemble accuracy minus mean member accuracy, which directly reflects $1-\rho$.
Baselines
The naive reference point is a single model trained with scDataset's block sampler at the same total compute as the ensemble. This tells us whether ensembling is worth anything here at all. The quality ceiling is $M$ fully independent loaders, each running its own scDataset or Redox stream with its own bootstrap. Its I/O cost is about $M$ times ours, and it shows the accuracy and error decorrelation we are trying to match.
The strongest existing efficiency competitor is JOADER-style dependent sampling with members trained concurrently. Its reported number is a 44.8% saving in training time with 6 jobs on ImageNet versus PyTorch (A Deep Learning Dataloader with Shared Data Preparation). We found no reported result on Lacuna for the ensemble accuracy or diversity of JOADER-trained members. For Tahoe-100M, we found no reported result on Lacuna for ensemble accuracy; scDataset reports only parity with true random sampling for a single model.
The cheapest serious competitor is checkpoint ensembling within one training run, following One Model to Pronounce Them All, which averages checkpoints from a training trajectory to smooth out optimization noise. Its I/O cost is exactly 1x.
All arms use the same architecture, the same total number of gradient steps per member, and the same hyperparameter search budget, with the search run on the single-model baseline and then reused. They also use the same storage device and the same memory cap for the window or cache. Beating the field means two things. Our ensemble must sit within seed-to-seed noise of independent loaders on accuracy and negative log-likelihood. It must also clearly exceed JOADER-style sharing, checkpoint ensembling, and seeds-only sharing, and it must do so while reading no more than about 1.2 times the bytes of a single model.
Two ablations isolate the key ingredient. One keeps Poisson weights but uses a shared block and minibatch order. The other keeps private orders but drops the weights. The seeds-only arm, with an identical stream and only different initializations, is the zero-randomization end of the same ablation.
Why not just…?
Why not just give members different random initializations and share the identical stream? For deep networks this is a real threat, because different initializations alone are often enough to produce useful diversity. If it holds on Tahoe-100M as well, the contribution shrinks to "sharing is fine." Our reason to doubt it on plate-sorted data is that every member would then reach the end of an epoch having seen the same last plates, so the plate-recency errors that scDataset documents would be shared across members. The seeds-only arm tests this directly. We will report $\rho$ and ensemble gain for it, and also break those results down by plate. If its gap to independent loaders is within noise, we will say so.
Why not just use JOADER? JOADER exists to maximize locality by correlating jobs, and its authors flag ensembles as the case where this backfires. Our proposal keeps its reference-counted cache but reverses its scheduling goal. The JOADER arm measures what that reversal buys in accuracy at a matched I/O cost.
Why not just ensemble checkpoints from one run? It costs nothing extra. However, consecutive checkpoints share all their past data order, so we expect high $\rho$ on non-homogeneous data. It is run as a full baseline, and if it matches us, it wins on simplicity.
Why not just subsample into RAM and train ordinary ensembles? Large Linear Classification When Data Cannot Fit in Memory reports that training on the full out-of-memory data gives significantly higher accuracy than an in-memory sample. Tahoe-100M argues that subtle drug effects need very large cell counts. We include a RAM-sized subsample ensemble as a sanity arm, so this claim is checked rather than assumed.
Proposed Experiments
The primary testbed is Tahoe-100M, about 300GB of AnnData, using the drug and mechanism-of-action classification tasks from scDataset. Test sets are drawn both from held-out cells within the training plates and from entirely held-out plates. The held-out plates are the shift condition, where the pruning literature (Ensemble Pruning for Out-of-distribution Generalization) shows that redundant members hurt. ImageNet-1k, which is roughly homogeneous on disk, serves as the control: there, all sharing schemes should look similar.
We vary $M$ over 4, 8, and 16 and window size $W$ over at least three values. Metrics are top-1 accuracy, negative log-likelihood, expected calibration error, pairwise error correlation, ensemble gain, total bytes read, and wall-clock time.
The decisive check is a pattern across the two datasets. On Tahoe-100M, our loader should close most of the gap between seeds-only sharing and independent loaders, both in $\rho$ and in held-out-plate accuracy, at close to 1x bytes read. On ImageNet, the gap between seeds-only and independent loaders should be small to begin with. If the two datasets look the same, block-order correlation is not the mechanism and the proposal fails. A secondary check is the dose-response with $W$: decorrelation should improve monotonically with window size and then plateau, and the plateau point gives the memory guidance practitioners need.
References
- A Deep Learning Dataloader with Shared Data Preparation
- scDataset: Scalable Data Loading for Deep Learning on Large-Scale Single-Cell Omics
- Brand: Managing Training Data with Batched Random Access
- One Model to Pronounce Them All: Multilingual Grapheme-to-Phoneme Conversion With a Transformer Ensemble
- Large linear classification when data cannot fit in memory
- Tahoe-100M : A Giga-Scale Single-Cell Perturbation Atlas for Context-Dependent Gene Function and Cellular Modeling
- Ensemble Pruning for Out-of-distribution Generalization