Semi-stochastic coordinate descent

Jakub Konecný, Zheng Qu, Peter RichtárikOptimization Methods and Software 2014

TL;DR

This paper introduces Semi-Stochastic Coordinate Descent (S2CD), a new optimization algorithm for minimizing large sums of convex functions. S2CD combines the fast convergence of deterministic methods with the scalability of stochastic approaches by intelligently mixing full gradient computations with single-coordinate updates, achieving a competitive theoretical complexity.

What Problem Does This Paper Address?

Many real-world problems, particularly in machine learning, involve minimizing a function that is the average of a vast number of simpler, smooth, convex functions. Think of training a model on millions of data points, where each data point contributes a small loss function. Traditional methods like full Gradient Descent (GD) are too slow because they require computing the gradient of the entire average function in each step, which means processing all data points. Stochastic Gradient Descent (SGD) is faster per iteration as it uses only one data point, but it converges much slower. The challenge is to develop methods that achieve the fast convergence rates of GD while keeping the per-iteration cost low, ideally independent of the total number of functions (data points).

Methods

The core innovation is the Semi-Stochastic Coordinate Descent (S2CD) algorithm. It operates in epochs, with each epoch consisting of:

  1. A Deterministic Step: Compute the full gradient of the average function $f$ at the current point $x_k$. This is a one-time cost per epoch.
  2. A Stochastic Inner Loop: Perform a random number of "stochastic coordinate steps." In each such step:
  3. A function $f_i$ and a coordinate $j$ are sampled using carefully chosen non-uniform probabilities.
  4. A single coordinate of the current iterate is updated. This update uses the pre-computed gradient from step 1 and a difference of partial derivatives of $f_i$ at two points.

The key idea is that these stochastic steps are designed to progressively improve the estimate of the gradient of $f$. The number of stochastic steps within an epoch is itself random, following a geometric distribution. This hybrid approach aims to balance the cost of full gradient computations with the efficiency of single-coordinate updates.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and algorithm design for a general class of objective functions, rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • The Power of Non-Uniform Sampling: The paper emphasizes that carefully chosen non-uniform probabilities for sampling functions and coordinates are crucial for achieving good theoretical performance. This is a departure from simpler methods that might use uniform sampling.
  • Gradient Estimate Improvement: A critical insight is that the stochastic steps in S2CD produce gradient estimates whose squared norm decreases in expectation as the algorithm progresses. This is a hallmark of modern fast optimization methods and ensures that the algorithm doesn't get stuck with noisy updates near the optimum.
  • Hybrid Approach Pays Off: S2CD demonstrates that combining a full gradient computation with a series of stochastic coordinate updates within an epoch can lead to a favorable trade-off between convergence speed and computational cost.
  • Novel Condition Number: The analysis introduces a new condition number, $\hat{\kappa}$, which captures the interplay between the number of functions, their Lipschitz constants, and the dimensionality of the problem. This number appears in the complexity of the partial derivative evaluations.

Key Results

The paper provides a theoretical complexity analysis for S2CD. For minimizing a strongly convex function $f(x) = \frac{1}{n}\sum_{i=1}^n f_i(x)$ to an accuracy of $\epsilon$, S2CD achieves:

  • $O(n \log(1/\epsilon))$ evaluations of individual function gradients $\nabla f_i$. This is equivalent to $O(\log(1/\epsilon))$ full gradient evaluations of $f$.
  • $O(\hat{\kappa} \log(1/\epsilon))$ evaluations of partial derivatives $\nabla_j f_i$.

The paper highlights that while $\hat{\kappa}$ can be larger than condition numbers in some existing methods, the cost of partial derivative evaluations ($C_{pd}$) is typically much lower than full gradient evaluations ($C_{grad}$). This leads to a total work complexity of $O((nC_{grad} + \hat{\kappa}C_{pd})\log(1/\epsilon))$, which can be competitive or even superior to existing methods depending on the problem structure.

Limitations and Future Work

  • Knowledge of $\mu$ and $L_{ij}$: The current analysis assumes knowledge of the strong convexity parameter $\mu$ and Lipschitz constants $L_{ij}$. The authors note that the method can be adapted to work with lower bounds or even without $\mu$ (by setting it to 0), though this might slightly affect complexity.
  • Empirical Validation: The paper is primarily theoretical. While it compares its complexity to existing methods, it doesn't present empirical results on real-world datasets to demonstrate practical performance.
  • Block Coordinate Descent: The paper mentions that the framework can be extended to block coordinate descent, which could be a direction for future work to handle structured sparsity more effectively.
  • Non-Strongly Convex Case: The paper briefly mentions that an $O(1/\epsilon)$ complexity can be achieved for the non-strongly convex case using standard regularization arguments, suggesting this as a potential area for further investigation.

Summary updated

BibTeX
@inproceedings{konecny2014semi,
  author = {Jakub Konecný and Zheng Qu and Peter Richtárik},
  title = {{Semi-stochastic coordinate descent}},
  booktitle = {Optimization Methods and Software},
  year = {2014},
  url = {https://openreview.net/forum?id=LbByin59iSt},
}
Figure