Abstract
Deep neural networks (DNN) are typically optimized using stochastic gradient descent (SGD). However, the estimation of the gradient using stochastic samples tends to be noisy and unreliable, resulting in large gradient variance and bad convergence. In this paper, we propose Filter Gradient Decent (FGD), an efficient stochastic optimization algorithm that makes the consistent estimation of the local gradient by solving an adaptive filtering problem with different design of filters. Our method reduces variance in stochastic gradient descent by incorporating the historical states to enhance the current estimation. It is able to correct noisy gradient direction as well as to accelerate the convergence of learning. We demonstrate the effectiveness of the proposed Filter Gradient Descent on numerical optimization and training neural networks, where it achieves superior and robust performance compared with traditional momentum-based methods. (Code: https://github.com/Adamdad/Filter-Gradient-Decent)
Introduction
Stochastic Gradient Descent (SGD) is the engine behind deep learning, but it suffers from a significant "noise" problem. Because SGD estimates the gradient using only a small mini-batch of data, the resulting direction is often jittery and unreliable. This high variance leads to slow convergence, as the optimizer oscillates in ravines, and a tendency to get trapped in sub-optimal local minima. While techniques like Momentum and Adam attempt to smooth these updates, they are often sensitive to hyperparameter tuning and do not always provide a consistent estimation of the true gradient.
Methodology: Optimization as a Filtering Problem
The core insight of Filter Gradient Descent (FGD) is to treat the sequence of stochastic gradients as a noisy time-series signal and apply a filter $F$ to estimate the "true" underlying gradient state. The authors explore several filtering architectures:
- Moving-average (MA): A weighted average of the $q$ most recent gradients.
- Autoregressive (AR): A model where the current estimate depends on previous estimates. Notably, the authors prove that standard Momentum is a specific case of an AR(1) filter.
- Kalman Filter (FGD-K): A state-space model using a "prediction" and "update" cycle. A simplified scalar version is used for computational efficiency.
- Wavelet Filter (FGD-W): This approach uses a Discrete Wavelet Transform (DWT) to decompose the gradient into different frequency bands, "denoising" high-frequency noise while boosting the low-frequency consistent direction.
Experimental Evaluation
FGD was evaluated across three scenarios: a synthetic non-convex 2D function, MNIST (3-layer MLP), and CIFAR-10 (ResNet-18).
Global Optimization and Stability
In the non-convex toy problem, SGD and Adam frequently stalled in local minima. In contrast, FGD-K and FGD-W consistently navigated toward the global solution. As shown in the optimization paths below, FGD variants maintain a more direct and stable trajectory toward the center.
Performance and Robustness
On CIFAR-10, FGD-MA(2) achieved 93.76% accuracy, outperforming Adam (92.50%) and standard SGD (93.33%). A key finding is FGD's robustness to hyperparameters; while Adam's performance plummeted when the learning rate was set too high in MNIST trials, FGD variants remained stable, maintaining accuracies above 80-90%.
Conclusion
By framing optimization as a signal-processing task, FGD provides a robust framework for variance reduction in deep learning. It bridges classic control theory and modern optimization, offering superior stability and global optimization capabilities. Future work will address the computational and memory overhead associated with complex filters like Wavelets and seek formal mathematical proofs for variance reduction bounds.
Summary updated