# Poster 28009

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/28009

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi, I'm Yidan. I'm presenting to you today our ICLEAR paper, A Coefficient Makes SVG Effective. This is joint work with Zhixiu Xu, Zhiyuan Li, Chao Daryl, and Zhuang Liu.
In 2013, Johnson and Zhang proposed a simple approach for reducing gradient variance in SGD, stochastic variance reduced gradient, SVRG. SVRG keeps a snapshot model, denoted as theta path here, and use it to formulate a variance reduction term to address the original stochastic gradient. In this way, SVRG can reduce gradient variance of the SGD and accelerate it to be almost as fast as full -batch gradient descent in strongly convex settings.
Despite the theoretical value of SFG and subsequent work, there seems little practical success in training neural networks. For example, in 2019, researchers find that empirically diverse reduction methods such as SVLG and SGSG do not accelerate the training of neural network very much compared with SGD. In this work, we go step-by-step analysis and quantify the gradient variance in SVLG with three different metrics.
Here is a result when we use SGD as the solver to train a convex model, the zero regression. We can see SGD can reduce gradient variance significantly during the entire training process, and accelerate in the convergence of train loss as well.
However, when we use SGD and SHU to train a slightly more complex model, such a four-layer perceptual, it can only reduce gradient variance initially and then increase thereafter. This surprising empirical observation leads to ask whether SHU may alter the gradient to excessively at certain phases of training. We explore this question start from a more theoretical framework in the next section.
Control variant is a technique initially developed in Monte Carlo method to reduce gradient variance. We aim to estimate the expected value of random variable X. To form a less varied estimate of X star, we can use a control variant Y that correlate with X and a coefficient alpha to regulate the influence of Y and expect of Y. We can derive the optimal coefficient that minimize the variance of this estimate X star by setting the derivative of the variance to zero. The optimal coefficient injects covariance between X and Y over variance Y.
If we take a closer look between control variants and FLG, we can see FLG actually uses control variants to reduce variance in each component of a gradient. The original stochastic gradient nabla F_i theta t is a random variable X. The snapshot stochastic gradient nabla F_i theta past is the control variant Y, and snapshot full gradient F theta past is the expected value of Y.
A key difference between Spherarchy and a control variant is that Spherarchy omits the coefficient alpha default to 0 or 1. Modified this, we introduce a time-dependent coefficient factor alpha t in Spherarchy. In a similar fashion, we can compute the optimal coefficient for Spherarchy, which also has a ratio between coefficient and variance.
If we monitor the evolution of the optimal coefficient of SLRG during training, we can see a deeper model has a smaller optimal coefficient. For logistic regression, the optimal coefficient remains relative stable hovering near 1. For m-MalP4, it decreases sharply reaching approximately 0.4. This optimal coefficient can also help the SLRG to accelerate training. It should be worth noting that even with optimal coefficient, SLRG can only reduce gradient at the early state of training and keep it at same level as SGD later.
However, there is one problem with this optimal coefficient, that is if we want to compute it at each iteration, we need access to all minibatch gradients at every time. This results in a complexity of full batch gradient descent. The solution to this is using a preset schedule to approximate the optimal coefficient. We propose to apply a linear decreasing scalar coefficient for SFG, we name this method as alpha SFG.
We can see alpha -SRG exhibits a gradient variance trend that is not much different from SVRG with optimal coefficient. Similarly, the training loss of alpha-SRG is only marginally larger than that of SVRG with optimal coefficient. We also test the performance of alpha-SRG with AdamW, a widely used optimizer to train modern neural networks. We observe alpha-SRG has a noticeable gradient variance reduction initially and achieve a consistent lower training loss for MLP4 than the baseline.
We also study the effect of AlphaSatGUL with AdamW on real-world neural architecture moving beyond simple MLPs. We here use AlphaSatGUL to train a modern convolutional neural network, ConvNet-Santo, and compare it with vanilla AdamW. AlphaSatGUL can reduce gradient variance during the first 10 epochs and achieve lower training loss throughout the entire training process.
We use Alpha SAG to train various other popular computer vision architectures, such as ConvNex, Vision Transformer, Swing Transformer, and MLP Mixer on ImageNet 1K, and compare it against AtomW. We can see our proposed method, Alpha SAG, can accelerate the training, achieve a lower training loss, and often higher validation accuracy.
We use Alpha -FERG's training neural network on smaller image classification dataset. The improvement of Alpha-FERG over other W is even larger. We can achieve much lower training loss and higher validation accuracy. We also analyze variant component in our Alpha -FERG, such as initial coefficient, batch size, coefficient, decay schedule, and inner loop size, that is how frequently we take a snapshot model. We find that Alpha-FERG is robust across different choices of these component, and often outperform AdamW.
In summary, we introduce a coefficient alpha into SFG and apply linear decreasing schedule to control the coefficient. This makes SFG effective to train modern neural networks and result in faster convergence.
