Doubly Stochastic Primal-Dual Coordinate Method for Regularized Empirical Risk Minimization with Factorized Data

Adams Wei Yu, Qihang Lin, Tianbao YangarXiv 2015

Introduction

Empirical Risk Minimization (ERM) is the cornerstone of modern machine learning, providing a framework to balance model fidelity with regularization. However, as datasets grow in both the number of samples ($n$) and the number of features ($p$), traditional optimization methods struggle with the computational burden. While Stochastic Gradient Descent (SGD) addresses large $n$ by sampling instances, and Coordinate Descent (CD) addresses large $p$ by sampling features, most existing primal-dual methods still face a bottleneck: they typically update all features for a subset of samples, or all samples for a subset of features.

This paper introduces the Doubly Stochastic Primal-Dual Coordinate (DSPDC) method, a novel optimization algorithm designed to overcome these limitations. By simultaneously sampling both primal (features) and dual (samples) coordinates, DSPDC achieves significantly lower per-iteration complexity, particularly in settings involving factorized data matrices or complex matrix-based regularization.

The DSPDC Framework

The core innovation of DSPDC lies in its "doubly stochastic" nature. The algorithm reformulates the ERM problem as a bilinear saddle-point problem. In each iteration, instead of performing a full update on one side of the duality, DSPDC randomly selects a small block of primal coordinates and a small block of dual coordinates to update.

To maintain high performance despite this double randomness, the method incorporates several key technical components:

  • Saddle-Point Optimization: By optimizing the model and its dual representation simultaneously, the algorithm can exploit the structure of both the loss function and the regularizer.
  • Accelerated Momentum: DSPDC utilizes acceleration techniques inspired by Nesterov’s momentum. This ensures that the algorithm maintains fast convergence rates even with the increased variance introduced by double sampling.
  • Block-Coordinate Extensions: The framework is naturally extensible to matrix-valued variables. In multi-task learning scenarios, where parameters are often matrices, DSPDC allows for updates that only require eigenvalue decompositions on the sampled blocks rather than the entire parameter matrix.

Efficiency through Factorization

A primary strength of DSPDC is its ability to exploit "factorized" data structures. In many real-world applications, a large data matrix $A$ can be represented as the product of two smaller matrices, $U \in \mathbb{R}^{n \times d}$ and $V \in \mathbb{R}^{d \times p}$. Traditional methods often require reconstructing $A$ or performing operations proportional to $O(np)$ or $O(pd)$.

DSPDC provides a specialized implementation for these cases that avoids ever reconstructing the full matrix $A$. By working directly with $U$ and $V$, the cost per iteration is reduced from $O(pd)$ to $O(d)$, where $d$ is the latent dimension. This reduction leads to massive wall-clock time savings when $d \ll p$, making it feasible to train models on high-dimensional data that were previously computationally prohibitive.

Theoretical Convergence and Complexity

Despite the stochasticity in both primal and dual spaces, the authors provide a rigorous proof of linear convergence. For problems that are strongly convex and strongly concave in the saddle-point formulation, DSPDC reaches an $\epsilon$-accurate solution with a complexity of:

$$O((n + p\sqrt{\kappa}) \log(1/\epsilon))$$

Here, $\kappa$ represents the condition number of the problem. This theoretical bound matches the optimal rates of more computationally expensive primal-dual methods (like SPDC), but achieves them using significantly cheaper individual steps. This suggests that DSPDC offers a "best of both worlds" scenario: the iteration efficiency of coordinate methods with the convergence guarantees of accelerated batch methods.

Empirical Evaluation

The authors validated DSPDC across several high-dimensional benchmarks, comparing it against state-of-the-art methods like SPDC and Stochastic Dual Coordinate Ascent (SDCA).

Sparse Recovery and Classification

Using datasets such as Covtype, RCV1, and Real-sim, the researchers demonstrated that DSPDC reaches optimal solutions in a fraction of the time required by its competitors. The speedup was particularly evident in high-dimensional binary classification tasks where the dual updates could be computed extremely efficiently.

Multi-Task Learning

The algorithm was also tested on the ALOI (Amsterdam Library of Objects) dataset, which contains 108,000 images across 1,000 categories. The task involved a Multi-Task Large Margin Nearest Neighbor (MT-LMNN) problem. In this context, DSPDC outperformed other methods because it only required one small eigenvalue decomposition per step. Other methods were forced to perform full-rank or high-rank decompositions, which became a significant bottleneck as the number of tasks increased.

Conclusion and Future Directions

DSPDC represents a paradigm shift in how we approach structured ERM problems. By breaking the $O(n)$ or $O(p)$ per-iteration bottleneck, it opens the door for more efficient training of complex models on factorized or matrix-structured data.

While the current iteration of DSPDC requires strong convexity and careful hyperparameter tuning (specifically the step-size and momentum parameters), its performance gains are undeniable. Future research may explore the integration of importance sampling—prioritizing specific features or samples based on their gradient magnitude—to further accelerate convergence. Additionally, extending these doubly stochastic principles to non-convex regimes, such as deep learning, remains a compelling frontier.

Summary updated

BibTeX
@misc{yu2015doubly,
  author = {Adams Wei Yu and Qihang Lin and Tianbao Yang},
  title = {{Doubly Stochastic Primal-Dual Coordinate Method for Regularized Empirical Risk Minimization with Factorized Data}},
  year = {2015},
  eprint = {1508.03390},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1508.03390},
}
Figure