Abstract
Bilinear models, where observations are characterized by the interaction of two hidden factors (e.g., $y = Ax$), are foundational to many computer vision tasks. However, standard gradient descent often suffers from "gradient vanishing" due to asynchronous convergence of these coupled variables, particularly under sparsity constraints. We present Cogradient Descent (CoGD), a novel optimization framework that uses a projection function to synchronize updates. CoGD effectively addresses the gradient vanishing problem in tasks such as Convolutional Sparse Coding (CSC) and neural network pruning. Experimental results on benchmarks like CIFAR-10 and ImageNet demonstrate that CoGD achieves superior performance and faster convergence compared to state-of-the-art methods.
Introduction
Many computer vision problems rely on bilinear models, where an observation is characterized by the interaction of two hidden factors. Examples include image deblurring, 3D reconstruction, and feature interaction in neural networks. The primary challenge lies in optimization: standard gradient descent treats these two factors as independent, despite their intrinsic coupling. When one variable (like $x$) becomes sparse, the gradient for the other variable ($A$) can vanish or become highly unstable. This leads to asynchronous convergence, where variables do not learn at the same pace, often trapping the model in poor local minima.
Methods
The authors propose Cogradient Descent (CoGD) to bridge this gap. Instead of updating variables in isolation, CoGD coordinates their gradients through a mathematical projection function.
- Gradient Coordination: Based on the chain rule, a relationship is derived showing how the update of one variable should be influenced by the state of the other.
- The Projection Function: A logic-based projection step is introduced. If the algorithm detects asynchronous convergence—for instance, if one variable becomes sparse much faster than the other can adapt—the projection function adjusts the update to re-synchronize them.
- Application to Pruning: CNN channel pruning is reformulated as a bilinear problem using a "soft mask" ($m$) interacting with convolutional filters ($W$). Applying CoGD to this mask-filter pair allows for more effective pruning of redundant channels compared to traditional methods.
Key Results and Evaluation
The researchers evaluated CoGD across several domains, including image reconstruction (Fruit and City datasets) and network pruning (CIFAR-10 and ImageNet).
Performance in Sparse Coding and Pruning
- Sparse Coding: In image inpainting tasks, CoGD improved the Peak Signal-to-Noise Ratio (PSNR) by an average of 1.47 dB and Structural Similarity (SSIM) by 0.016 over previous methods like FFCSC.
- CNN Pruning: On ResNet-110 (CIFAR-10), CoGD reduced FLOPs by ~50% with a negligible 0.2% drop in accuracy. For ResNet-50 (ImageNet), it achieved a 0.35x FLOPs reduction while maintaining a top-1 accuracy of 75.15%, outperforming established methods like GAL and ThiNet.
Optimization Efficiency
Qualitative visualizations of the loss landscape demonstrate that CoGD finds much smoother and more direct paths to the optimum compared to standard SGD, Momentum, or Adam. By treating sparsity as a signal for coordination rather than a hurdle, CoGD ensures both factors move toward the optimum in sync.
Discussion and Future Work
CoGD is a fundamental optimization framework applicable to any bilinear problem with coupled variables under sparsity constraints. While highly effective, it introduces a hyperparameter ($\alpha$) for asynchrony detection that may require tuning for new architectures. Additionally, the projection step adds a small computational overhead per iteration, though this is often offset by faster overall convergence. Future work could extend CoGD to other bilinear-heavy tasks such as Visual Question Answering (VQA) or Person Re-identification.
Summary updated