Abstract
Incremental Gradient (IG) methods are classical strategies in solving finite sum minimization problems. Deterministic IG methods are particularly favorable in handling massive scale problem due to their sequential data access patterns, which minimize disk I/O overhead compared to the random access patterns of stochastic methods. This paper introduces Snapshot-based Incremental Gradient (SIG), a deterministic optimization method that achieves linear convergence with only $O(1)$ extra storage. By utilizing a snapshot-based gradient approximation and cyclic data processing, SIG avoids the high memory requirements of previous deterministic methods while maintaining superior performance in memory-constrained environments.
Introduction
In the era of "Big Data," machine learning models are frequently trained on datasets that exceed the physical memory (RAM) of a single machine. Most modern optimization algorithms, such as Stochastic Gradient Descent (SGD) and variance-reduced variants like SVRG or SAGA, rely on random sampling of data points. While theoretically sound, random access patterns are highly inefficient when data must be fetched from disk or SSDs. Each random jump can trigger a "major page fault," forcing the processor to wait for slow I/O operations.
The I/O Bottleneck in Large-Scale Optimization
The primary challenge in out-of-core optimization is the "I/O tax." Random data access leads to a massive surge in major page faults as the dataset size exceeds available RAM. In contrast, sequential access patterns—typical of deterministic incremental methods—maintain nearly zero page faults, resulting in significantly lower execution times.
Furthermore, many existing deterministic methods like Incremental Aggregate Gradient (IAG) require $O(N)$ storage to keep track of individual gradients for all $N$ data points. This not only consumes massive amounts of memory but also necessitates frequent WRITE operations to storage. The authors demonstrate that READ+WRITE operations can be up to 3.4x slower than READ-only operations when memory is swapped to disk. SIG is designed as a READ-only incremental method to avoid this overhead.
Snapshot-based Incremental Gradient (SIG)
To address these issues, the authors propose Snapshot-based Incremental Gradient (SIG). SIG combines the benefits of deterministic sequential access with the low storage requirements of stochastic methods.
Key Components:
- Snapshots: Periodically, the algorithm computes a full gradient of the entire dataset at a stable point $w_0^s$.
- Cyclic Updates: Data is processed in a fixed, sequential order. This maximizes spatial locality and ensures the operating system can effectively pre-fetch data from disk.
-
Gradient Approximation: SIG uses a "mix approximation" scheme: $$g_t^s = \nabla f_{t+1}(w_t^s) - \nabla f_{t+1}(w_0^s) + \nabla F(w_0^s)$$ This formula allows for linear convergence by using the snapshot to correct the noise of incremental steps, requiring only $O(1)$ additional storage beyond the model parameters.
-
Acceleration: An accelerated version, SIG-M, incorporates Nesterov-style momentum to further enhance convergence speed.
Experimental Evaluation
The researchers evaluated SIG and SIG-M against state-of-the-art methods on various datasets, including large-scale datasets like Criteo (27GB) under restricted RAM conditions (8GB).
As illustrated in the performance plots, SIG and SIG-M demonstrate competitive or superior convergence rates when measured against execution time. While stochastic methods like SVRG may have better theoretical iteration complexity, their real-world performance is hampered by I/O overhead. On the Criteo dataset, SVRG was found to spend up to 50% of its time on data movement, whereas SIG's I/O overhead remained negligible.
Conclusion
SIG represents a significant step toward memory-friendly optimization for massive datasets. By proving that deterministic, sequential access can achieve linear convergence with minimal storage, the authors provide a practical alternative to stochastic methods for disk-bound problems. Future work includes extending SIG to non-differentiable proximal problems and exploring its application in non-convex settings like deep learning.
Summary updated