Out-of-Core Processing for Massive Datasets

135 concepts131 papers5 proposals

Traditional data analysis algorithms operate under a comfortable assumption: the entire dataset can reside within a computer's Random Access Memory (RAM). This allows for $O(1)$ random access to any data point or feature matrix. However, as datasets scale to the exascale level, this assumption shatters. When a dataset's size exceeds physical RAM, standard in-memory estimation techniques fail, often resulting in catastrophic system crashes or severe performance degradation due to disk swapping, as detailed in Randomized Algorithms for Computation of Tucker decomposition and Higher Order SVD (HOSVD).

The root of the problem lies in the iterative nature of modern machine learning and statistical modeling. Algorithms like tree-building, matrix decompositions, and clustering frequently require multiple non-sequential passes over the data (QUIC-SVD: Fast SVD Using Cosine Trees). If the data lives on secondary storage (like an SSD or hard drive), treating it as if it were in RAM forces the operating system to constantly move data blocks back and forth—a phenomenon known as disk thrashing. Out-of-core data processing solves this by redesigning algorithms to explicitly manage memory constraints, ensuring high performance even when data must remain on disk.

Streaming and Online Learning

The most intuitive way to handle a dataset that is too large for RAM is to never load it all at once. Instead of batch processing, we can stream the data, processing one example or a small mini-batch at a time, and then immediately discarding it from memory.

In their foundational work, Leon Bottou et al. in Large Scale Online Learning argue that when data is virtually infinite but time and memory are constrained, striving for exact optimization over a massive batch is computationally foolish. Instead, online learning algorithms update model parameters incrementally. This paradigm shifts the computational burden from memory capacity to time. For example, Online Nonnegative Matrix Factorization With Outliers by Renbo Zhao et al. demonstrates how complex matrix factorizations can be maintained continuously over large-scale data streams without requiring the full matrix to be resident in memory.

Block Minimization and Disk Partitioning

Streaming works beautifully when an algorithm can learn in a single pass. But what if the model inherently requires multiple passes over the data, such as training a Support Vector Machine or growing a Random Forest?

To solve this without crashing the system, out-of-core frameworks use structured disk partitioning combined with localized optimization. Instead of letting the operating system blindly swap memory pages, the algorithm itself controls when and how data blocks are read from disk.

In Large Linear Classification When Data Cannot Fit in Memory, Hsiang-Fu Yu et al. propose a Block Minimization framework. The algorithm partitions a massive dataset into distinct, disk-resident blocks. It loads a single block into RAM, performs intensive, iterative local updates to optimize the model parameters for just that block, and then saves the progress back to disk before loading the next block. This drastically minimizes disk I/O overhead.

A similar intuition drives the Woody framework proposed by Fabian Gieseke et al. in Training Big Random Forests with Little Resources. Traditional random forests require the entire dataset to be in memory to evaluate optimal splits recursively. Woody bypasses this "memory wall" by utilizing a multi-level tree construction strategy that reads data in structured disk-based partitions, enabling the training of fully grown random forests on a single commodity desktop.

Sketching and Model Aggregation

Rather than managing how raw data moves in and out of memory, another strategy is to compress the data or the models themselves so that the core computation can fit entirely within RAM.

One approach is data sketching, where a massive dataset is mathematically compressed into a low-dimensional representation that preserves its essential geometric properties. Panagiotis A. Traganitis et al. implement this in Sketch and Validate for Big Data Clustering. Their SkeVa framework creates a random sketch of the dataset to find candidate cluster centers in memory, and then uses a highly efficient validation phase to confirm the model against the full dataset, avoiding the need to hold the entire high-dimensional matrix in RAM.

Alternatively, a "divide-and-conquer" approach can be applied to the models themselves via Model Aggregation. In Streaming statistical models via Merge & Reduce, Leo N. Geppert et al. demonstrate that instead of merging raw data, one can train independent statistical models on small, memory-compliant chunks of data and subsequently merge the models themselves. This achieves frequentist and Bayesian regression with only logarithmic memory overhead. Similarly, Nan Lin in Aggregated estimating equation estimation introduces a method that compresses raw data into low-dimensional summary statistics at the local level, allowing global nonlinear estimation without requiring simultaneous memory access to the entire dataset.

Hardware-Aware Out-of-Core Architectures

The memory wall is exacerbated when shifting computation to hardware accelerators like GPUs. While GPUs offer massive parallel processing power, their onboard memory (VRAM) is significantly smaller than system RAM, making them highly susceptible to out-of-memory errors on large datasets.

To unlock GPU acceleration for massive datasets, systems must implement hardware-aware out-of-core streaming. In SaberLDA: Sparsity-Aware Learning of Topic Models on GPUs, Kaiwei Li designs a system that streams topic modeling data directly from high-speed NVMe SSDs to the GPU. By bypassing the host's main memory bottlenecks and optimizing data layouts, the system can process billions of tokens on limited hardware.

As Jakob Rødsgaard Jørgensen et al. emphasize in GPU-FAST-PROCLUS: A Fast GPU-parallelized Approach to Projected Clustering, the ultimate challenge for modern out-of-core processing is balancing the data swapping pipeline. If the time spent moving data between disk, host RAM, and device VRAM exceeds the time saved by parallel computation, the hardware's benefits are lost. The success of out-of-core processing relies entirely on overlapping I/O operations with computation, ensuring that the processor is never left waiting for the next block of data.

History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_out_of_core_data_processing_0a41437c,
  title = {out-of-core data processing},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/out-of-core-data-processing/rdr_0a41437cf6a54a15a77b27ddb8fa52b7},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_out_of_core_data_processing_0a41437c_v1,
  title = {out-of-core data processing},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/out-of-core-data-processing/rdr_0a41437cf6a54a15a77b27ddb8fa52b7/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake