Introduction
In machine learning, we frequently encounter the problem of Empirical Risk Minimization: minimizing an objective function that is the sum of many individual loss terms, typically one per data point.
Standard optimization tools for this task have significant drawbacks:
- Stochastic Gradient Descent (SGD): While fast per iteration, SGD requires laborious tuning of learning rates and lacks linear convergence, slowing down significantly as it nears the optimum.
- Batch Methods (like LBFGS): These are highly accurate but prohibitively slow on massive datasets because they require a full pass over the entire dataset for every single update.
- Incremental Methods (like SAG): These methods bridge the gap by storing historical gradient information to achieve linear convergence. However, they often exhibit theoretical gaps between predicted and actual performance and do not always benefit from the common practitioner trick of shuffling data (sampling without replacement).
To address these issues, researchers have introduced Finito, a new incremental gradient method designed for large-scale optimization. Finito achieves a theoretical convergence rate four times faster than previous state-of-the-art methods like SAG. Crucially, it thrives on data shuffling and requires virtually no hyperparameter tuning, making it both theoretically robust and practically efficient for "big data" problems.
The Finito Algorithm
Finito's core innovation lies in how it manages historical data during optimization.
- Storage: Finito maintains a table of "points" ($\phi_i$) and their corresponding gradients ($f'_i(\phi_i)$) for every data point in the training set.
- The Update Rule: Instead of taking a simple gradient step, Finito updates the model parameters ($w$) by moving toward the average of the stored points, while subtracting a scaled version of the average gradient.
- The "Big Data Condition": The method is specifically designed for scenarios where the number of data points ($n$) is at least as large as the "condition number" of the problem (the ratio of the smoothness constant $L$ to the strong convexity constant $s$).
- Permutable Sampling: Most optimization theory relies on picking data points at random with replacement. Finito is uniquely designed to work—and actually run faster—when data is cycled in a shuffled, permuted order (sampling without replacement).
- Memory Trick: To avoid doubling memory requirements by storing both points and gradients, the authors introduce a mathematical trick to store a single combined vector $p_i$ for each data point.
Key Insights
- Tight Theoretical Bounds: Unlike many algorithms where theoretical guarantees are overly pessimistic, Finito’s practical performance is usually within a factor of two of its theoretical prediction.
- Fixed Step Size: If the strong convexity constant (which is often just the known L2 regularization parameter) is available, Finito can use a fixed step size ($\alpha = 2$) without any manual tuning. This eliminates one of the biggest headaches in training machine learning models.
- The Power of Shuffling: The paper highlights a curious gap in optimization theory: practitioners almost always shuffle their data, but most proofs assume random sampling with replacement. Finito is one of the few methods where shuffling (the "permuted" case) provides a clear, empirical speedup over pure randomness.
- Linear Convergence: Finito achieves "linear convergence," meaning the error drops exponentially. Specifically, it reduces the error bound by more than 148x in just 10 passes (epochs) over the data.
Empirical Results
The authors evaluated Finito on several standard machine learning benchmarks for classification and regression, including MNIST (digit recognition), ijcnn1, Covtype (forest cover prediction), the Million Song Dataset, and Slice-localization. Training sets ranged from approximately $5.0 \times 10^4$ to $5.3 \times 10^5$ samples.
Finito establishes a theoretical convergence rate of $(1 - 1/2n)$ per step, which is significantly faster than the $(1 - 1/8n)$ rate of the Stochastic Average Gradient (SAG) method.
In head-to-head tests, Finito—especially the permuted version—consistently outperformed or matched SAG and SDCA across all datasets. It was also vastly superior to LBFGS in terms of the number of data passes required to reach convergence.
Furthermore, the "permuted" version of Finito produced very stable, flat convergence lines in empirical plots, indicating that it is highly stable and less sensitive to the specific order of data than competing methods.
Limitations and Future Work
While highly effective, Finito does have limitations:
- Memory Usage: Even with the memory trick, Finito requires storing one dense vector per data point. This makes it less suitable for extremely high-dimensional problems where gradients are sparse, as the stored vectors $\phi_i$ might lose that sparsity.
- Strong Convexity Requirement: The current theory relies on the problem being strongly convex (e.g., using L2 regularization). While the authors propose a "Proximal" variant for non-smooth problems (like L1 regularization), the theoretical guarantees for this variant are not yet fully developed.
- Theoretical Gap for Shuffling: While Finito works spectacularly well with sampling without replacement in practice, the authors note that they do not yet have a formal proof for why this specific scheme is faster, highlighting it as a major open challenge in optimization theory.
Summary updated