Abstract
We consider stochastic strongly convex optimization with a complex inequality constraint. This complex inequality constraint may lead to computationally expensive projections in algorithmic iterations of the stochastic gradient descent (SGD) methods. To reduce the computation costs pertaining to the projections, we propose an Epoch-Projection Stochastic Gradient Descent (Epro-SGD) method. The proposed Epro-SGD method consists of a sequence of epochs; it applies SGD to an augmented objective function at each iteration within the epoch, and then performs a projection at the end of each epoch. Given a strongly convex optimization and for a total number of $T$ iterations, Epro-SGD requires only $\log(T)$ projections, and meanwhile attains an optimal convergence rate of $O(1/T)$, both in expectation and with a high probability. To exploit the structure of the optimization problem, we propose a proximal variant of Epro-SGD, namely Epro-ORDA, based on the optimal regularized dual averaging method. We apply the proposed methods on real-world applications; the empirical results demonstrate the effectiveness of our methods.
Introduction
Standard Stochastic Gradient Descent (SGD) is a cornerstone of machine learning, but it faces a significant bottleneck when dealing with complex constraints: the requirement of a "projection" step at every single iteration. For many large-scale problems, these projections are computationally prohibitive, often overshadowing the cost of gradient computations. This paper introduces Epro-SGD, an epoch-based approach that slashes the number of required projections from $T$ (total iterations) to just $\log(T)$, all while maintaining the mathematically optimal $O(1/T)$ convergence rate for strongly convex optimization.
The Computational Bottleneck of Projections
In constrained optimization, we aim to minimize a function $f(x)$ subject to a constraint $c(x) \le 0$. Standard SGD handles this by taking a stochastic gradient step and then projecting the result back into the feasible region.
However, for many real-world applications, this projection is incredibly expensive. For instance, in distance metric learning (e.g., LMNN classification), the constraint might require a matrix to be positive semi-definite (PSD). Projecting onto the PSD cone requires a Singular Value Decomposition (SVD), which has a computational complexity of $O(d^3)$. Performing an SVD at every iteration of a million-step optimization process is practically impossible. Previous methods either sacrificed convergence speed or still required too many projections.
Epro-SGD: Reducing Projections to Logarithmic Scale
The proposed Epro-SGD (Epoch-Projection SGD) addresses this by decoupling the gradient steps from the hard projection steps. Instead of projecting at every iteration, the algorithm operates in "epochs" of geometrically increasing length.
Key Methodological Components:
- Augmented Objective: Within each epoch, Epro-SGD optimizes an "augmented" function: $F(x) = f(x) + \lambda[c(x)]_+$. This adds a penalty for violating the constraint, acting as a soft constraint that keeps the iterates near the feasible region.
- Logarithmic Projections: A hard projection back into the feasible set is performed only once at the end of each epoch. Because the epoch lengths double ($T_{k+1} = 2T_k$), the total number of projections for $T$ iterations is reduced to $\log(T)$.
- Epro-ORDA: For problems with additional structure, such as $L_1$ regularization for sparsity, the authors introduce Epro-ORDA. This proximal variant, based on Optimal Regularized Dual Averaging, maintains structural properties like sparsity while benefiting from reduced projections.
The theoretical foundation of Epro-SGD relies on the property of strong convexity and a Polyhedral Error Bound (Assumption A3), which ensures that the distance to the feasible set is bounded by the constraint function value. These properties allow the algorithm to maintain the optimal $O(1/T)$ convergence rate despite the infrequent projections.
Experimental Evaluation
The researchers evaluated Epro-SGD on two real-world tasks: the Constrained Lasso using the Algebra dataset (KDD Cup 2010), and Large Margin Nearest Neighbor (LMNN) Classification using the Cora dataset.
As shown in the results, while Epro-SGD is competitive in terms of the number of iterations, it offers a massive speedup in terms of actual computation time. On the Cora dataset, Epro-SGD reached a stable objective value much faster than standard SGD and other "one-projection" or "log-projection" baselines. This efficiency is directly attributable to the reduction in SVD-based projections.
Conclusion and Future Work
Epro-SGD provides a principled way to handle complex constraints in stochastic optimization without the heavy computational burden of frequent projections. By leveraging strong convexity and an epoch-based penalty approach, it achieves the theoretical "speed limit" of $O(1/T)$ with only $\log(T)$ projections.
While the current work focuses on strongly convex functions, future research could extend these epoch-based projection strategies to general convex functions or integrate them with variance-reduction techniques like SVRG to further enhance efficiency.
Summary updated