Abstract
First-order methods for stochastic optimization have undeniable relevance, in part due to their pivotal role in machine learning. Variance reduction for these algorithms has become an important research topic. In contrast to common approaches, which rarely leverage global models of the objective function, we exploit convexity and L-smoothness to improve the noisy estimates outputted by the stochastic gradient oracle. Our method, named COCO denoiser, is the joint maximum likelihood estimator of multiple function gradients from their noisy observations, subject to co-coercivity constraints between them. The resulting estimate is the solution of a convex Quadratically Constrained Quadratic Problem. Although this problem is expensive to solve by interior point methods, we exploit its structure to apply an accelerated first-order algorithm, the Fast Dual Proximal Gradient method. Besides analytically characterizing the proposed estimator, we show empirically that increasing the number and proximity of the queried points leads to better gradient estimates. We also apply COCO in stochastic settings by plugging it in existing algorithms, such as SGD, Adam or STRSAGA, outperforming their vanilla versions, even in scenarios where our modelling assumptions are mismatched.
Introduction
In machine learning, optimization often relies on stochastic gradients—noisy estimates of the true gradient computed from small data batches. While computationally efficient, this noise introduces variance that can cause optimization to stall in a "ball of uncertainty" around the optimum. Traditional variance reduction techniques, such as SVRG or SAGA, typically require access to the full dataset or specific finite-sum structures.
The COCO Denoiser addresses this challenge by leveraging the global geometric properties of the objective function itself. Specifically, it exploits co-coercivity, a property derived from convexity and $L$-smoothness that dictates how gradients at different points must relate. By treating denoising as a constrained optimization problem, COCO serves as a modular "plug-and-play" component to enhance standard algorithms like SGD and Adam, particularly in the late-stage "variance regime" of training.
Methodology: The COCO Denoiser
Instead of processing noisy gradient estimates in isolation, the COCO denoiser considers a window of $K$ recently visited points and their corresponding noisy gradients.
Core Formulation
The denoiser formulates the task as a Maximum Likelihood Estimation (MLE) problem. It seeks the "cleanest" gradients that are most likely given the noisy observations, subject to the constraint that these gradients must satisfy pairwise co-coercivity. This results in a convex Quadratically Constrained Quadratic Problem (QCQP). While a closed-form solution exists for the simplest case ($K=2$), larger windows require more sophisticated approaches.
Scaling with FDPG
To handle larger windows where standard interior-point methods are too slow, the authors utilize the Fast Dual Proximal Gradient (FDPG) method. This accelerated first-order algorithm exploits the problem's structure, making the denoiser computationally feasible for higher-dimensional applications.
As illustrated above, the COCO denoiser is designed to be modular. It can be inserted between a noisy oracle and a baseline algorithm, filtering gradients before they are used for parameter updates.
Experimental Evaluation
The authors evaluated COCO using both synthetic quadratic functions and real-world datasets ("fourclass" and "mushrooms" for logistic regression).
Key Insights
- Geometric Constraints: Convexity and smoothness imply that the gradient at one point constrains the possible values of gradients at nearby points. COCO uses these geometric "rules" to filter out noise that violates the laws of convexity.
- The Power of Proximity: The denoiser is most effective when queried points are close together, as co-coercivity constraints become tighter, leading to more aggressive and accurate denoising.
- Variance Reduction: Empirical results show consistent reduction in the Mean Squared Error (MSE) of gradient estimates.
As shown in the figure above, the benefit of COCO increases monotonically with the window size $K$. While the error rate (slope) for standard SGD remains constant, COCO's slope decreases as it leverages more historical information to refine its estimates.
Robustness and Convergence
On real-world logistic regression tasks, COCO consistently outperformed vanilla versions of SGD and STRSAGA. Notably, the method proved robust even when modeling assumptions (like Gaussian noise) were mismatched, as the "projection" onto the feasible set of co-coercive gradients still provided a beneficial denoising effect.
Conclusion and Future Work
The COCO Denoiser provides a novel way to reduce variance by exploiting the inherent geometry of convex functions. While effective, the method's computational cost grows quadratically with the window size $K$, and it requires an estimate of the Lipschitz constant $L$. Future research may focus on extending these principles to non-convex landscapes, such as those found in deep learning, by leveraging $L$-smoothness alone for denoising.
Summary updated