First-Order Adaptive Sample Size Methods to Reduce Complexity of Empirical Risk Minimization

Aryan Mokhtari, Alejandro Ribeiro

Introduction

In large-scale machine learning, the standard approach to Empirical Risk Minimization (ERM) involves optimizing a model over a fixed, often massive, dataset. Traditional first-order methods like Gradient Descent (GD) or Accelerated Gradient Descent (AGD) typically aim to reach an arbitrary optimization precision $\epsilon$. However, this approach often ignores the inherent statistical properties of the data. This paper argues that treating the dataset as a monolith is computationally inefficient. Instead, by adaptively increasing the sample size and leveraging the solutions of smaller subproblems, we can reach the statistical limit of the full dataset significantly faster.

The Problem: The Precision-Accuracy Gap

The goal of ERM is to find a model that minimizes risk on a training set as a proxy for the true underlying distribution. A fundamental insight of this work is the distinction between optimization error and statistical accuracy.

If a dataset of size $n$ only represents the true distribution within a margin of $V_n \approx 1/\sqrt{n}$, there is no practical benefit to optimizing the model on that training set to a precision much higher than $V_n$. Standard algorithms often spend excessive computational resources reaching a precision of $1/n^2$, which yields no improvement in generalization. Furthermore, the "condition number"—a metric defining the difficulty of the optimization problem—often worsens as the dataset grows, making direct optimization on the full $N$ samples slow and costly.

Proposed Method: Adaptive Sample Size Mechanism

The authors introduce an Adaptive Sample Size Mechanism (Algorithm 1) designed to bridge this gap. The method operates through an iterative, "bottom-up" approach:

  1. Initial Subsampling: The process begins with a small subset of $m_0$ samples.
  2. Solving to Statistical Accuracy: The ERM problem is solved for the current subset, but only until the optimization error is within the subset's own statistical accuracy ($V_n$). This prevents "over-solving" on limited data.
  3. Adaptive Regularization: To improve convergence, the authors add a regularization term $(cV_n/2)\|w\|^2$. This term scales with the sample size, ensuring that subproblems remain strongly convex. This effectively "shapes" the optimization landscape, improving the condition number when the sample size is small.
  4. Geometric Growth and Warm Starts: Once the subproblem is solved, the sample size is doubled ($n = 2m$). The solution from the previous iteration serves as a "warm start" for the new, larger problem.
  5. Iteration: This cycle repeats until the entire dataset $N$ is utilized.

By the time the algorithm reaches the full dataset, the warm start provides a high-quality initial point, drastically reducing the number of iterations required on the most expensive, full-scale gradient evaluations.

Theoretical Complexity

The theoretical analysis demonstrates that this adaptive scheme provides significant complexity gains for major classes of first-order algorithms:

  • Ada AGD: Reaches statistical accuracy in $O(N^{(1+\alpha/2)})$ operations, whereas standard AGD requires $O(N^{(1+\alpha/2)} \log(N^\alpha))$.
  • Ada SVRG: Achieves a complexity of $O(N)$, reaching the theoretical "gold standard" for ERM problems and outperforming the standard SVRG's $O(N \log(N^\alpha))$.

These results suggest that the "Ada" variants reduce total complexity by a factor of $\log(N^\alpha)$, where $\alpha$ represents the statistical accuracy rate.

Empirical Performance

The authors validated their approach using the RCV1 (newswire stories) and MNIST (handwritten digits) datasets.

  • RCV1: In a classification task with 10,000 training samples and 47,000 features, Ada AGD reached a target test error of 8% in approximately 55 effective passes. In contrast, standard GD failed to reach this accuracy even after 100 passes.
  • MNIST: For a binary classification task (distinguishing 0s from 8s), Ada GD reached the target accuracy nearly 6 times faster than standard Gradient Descent.

Limitations and Future Directions

While the adaptive sample size method shows great promise, several areas remain for future exploration:

  • Convexity Assumptions: The current theoretical framework assumes objective functions are convex (e.g., Logistic Regression). The applicability to non-convex landscapes, such as deep neural networks, is not yet established.
  • Parameter Sensitivity: The method relies on an estimate of the statistical accuracy rate ($\alpha$). While $\alpha=0.5$ is a standard benchmark, performance may vary if the true rate of the data distribution differs.
  • Sublinear Methods: The authors noted that extending this logic to methods with sublinear convergence rates remains an open research question.

Conclusion

By aligning optimization precision with statistical accuracy and using an adaptive growth strategy, the proposed methods significantly reduce the complexity of ERM. This approach demonstrates that the path to the optimal solution is often faster when we stop treating the dataset as a fixed monolith and instead treat it as an evolving resource.

Summary updated

BibTeX
@inproceedings{mokhtari2017first,
  author = {Aryan Mokhtari and Alejandro Ribeiro},
  title = {{First-Order Adaptive Sample Size Methods to Reduce Complexity of Empirical Risk Minimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=Hk-rUObOZB},
}
Figure