Abstract
Training massive AI models typically requires a mountain of memory for backpropagation, creating a bottleneck for researchers with limited hardware. This paper introduces VS2P, a zeroth-order (ZO) optimization method that updates models using only forward passes and a novel clipping strategy. By operating under relaxed smoothness conditions, VS2P achieves significantly faster convergence and greater stability than previous gradient-free techniques like MeZO. Our results across vision and language tasks demonstrate that VS2P can achieve substantial training speedups while maintaining a minimal memory footprint.
Introduction
Fine-tuning Large Language Models (LLMs) and massive vision transformers is often prohibitive due to the memory requirements of standard backpropagation, which must store all intermediate activations. Zeroth-order optimization is a promising alternative as it only requires function values (forward passes). However, existing ZO methods often assume "global L-smoothness," an assumption frequently violated by the complex, "spiky" loss landscapes of deep neural networks.
This paper addresses these challenges by proposing the Stochastic Two-Point (S2P) method and its practical evolution, VS2P. These methods are designed to be robust in high-curvature regions where traditional ZO approaches fail.
Methodology
The core of VS2P lies in its theoretical foundation and practical efficiency tricks:
- Relaxed Smoothness Analysis: The authors move beyond global smoothness, analyzing the algorithm under $(L_0, L_1)$-smoothness. This framework more accurately captures the landscape of deep models.
- $γ$-clipping: A key theoretical insight is that in non-smooth regions, the optimal step size should have a non-linear dependence on the estimated gradient. This leads to a natural "clipping" mechanism, preventing the optimizer from taking destabilizing steps in spiky regions.
- The Sign Trick: To maintain computational efficiency, VS2P reuses information to assign update directions, effectively halving the cost per iteration compared to naive two-point implementations.
The theoretical query complexity under these relaxed conditions is summarized below:
Experimental Results
The researchers evaluated VS2P against baselines like MeZO and STP' across several architectures (DenseNet121, ResNet18, ViT-B/16, VGG11) on both image (MNIST, CIFAR-10) and language (GLUE) benchmarks.
Accuracy and Stability
VS2P consistently outperformed or matched baselines in accuracy. For instance, on MNIST with DenseNet121, VS2P achieved 86.6% accuracy, compared to MeZO’s 72.7%. Crucially, VS2P remained stable on architectures where MeZO failed entirely, such as VGG11 on MNIST.
Training Efficiency
VS2P demonstrated significant efficiency gains. As shown in Figure 1, the method achieves faster convergence in both training loss and evaluation accuracy across multiple architectures on CIFAR-10, often reaching a 1.5x training acceleration ratio over standard zeroth-order methods.
Memory Footprint
By avoiding backpropagation, VS2P maintains a tiny memory footprint. Language tasks using GPT-2 were completed using less than 3GB of GPU memory on an NVIDIA RTX A5000, making it accessible for consumer-grade hardware.
Conclusion
VS2P proves that gradient clipping is not just a heuristic but a theoretical necessity for zeroth-order optimization in deep learning. By accounting for relaxed smoothness, VS2P offers a reliable and efficient path for fine-tuning massive models. Future work will focus on automating hyperparameter selection and further refining performance on language tasks.
Summary updated