Dimension-Free Adaptive Subgradient Methods with Frequent Directions

Sifan Yang, Yuanyu Wan, Peijia Li, Yibo Wang, Xiao Zhang, Zhewei Wei, Lijun Zhang

TL;DR

Researchers have developed a new family of adaptive subgradient methods that use "Frequent Directions" (FD) sketching to handle high-dimensional data without the usual performance penalties. By switching to a primal-dual framework and using a clever spectral compensation trick, their algorithms (FTSL and FTFSL) achieve regret bounds independent of dimensionality while slashing per-round time complexity from quadratic to linear with respect to the sketch size.

The Curse of Dimensionality in Adaptive Optimization

Adaptive subgradient methods, such as the widely used AdaGrad, are the workhorses of modern machine learning because they automatically tune learning rates for each feature. However, they face a significant "curse of dimensionality."

Standard full-matrix versions require maintaining a $d \times d$ preconditioner matrix (where $d$ is the number of features). This leads to $O(d^2)$ space and $O(d^3)$ time complexity, which is completely impractical for modern models with millions or billions of parameters. While "sketching" techniques like Frequent Directions (FD) have been used to approximate these matrices in a smaller $\tau \times d$ space, existing state-of-the-art methods (like S-ADA) still suffer from two major theoretical and practical flaws:

  1. Dimension Dependence: Their theoretical "regret" (a measure of how much better the optimal model would have been in hindsight) still grows linearly with the dimension $d$.
  2. Computational Bottlenecks: They often suffer from an $O(\tau^2 d)$ time complexity per round, scaling quadratically with the sketch size $\tau$, which remains too slow for massive-scale applications.

Introducing FTSL and FTFSL

To overcome these limitations, the authors introduce Follow-the-Sketchy-Leader (FTSL) and its accelerated sibling, FTFSL. The core innovations driving these algorithms include:

  • The Primal-Dual Framework: Unlike previous sketchy methods that relied on "Mirror Descent," FTSL uses a primal-dual approach. This mathematical shift is the key to decoupling the regret bound from the dimensionality $d$.
  • Spectral Compensation: When sketching a matrix, you inevitably discard some information (the "tail" eigenvalues). FTSL tracks this "escaped mass" and adds it back into the preconditioner. This ensures the algorithm remains stable and mathematically "monotonic," preventing the loss of critical gradient information.
  • Fast Frequent Directions (FFD): To solve the $O(\tau^2 d)$ bottleneck, the authors utilize a trick that avoids performing a full Singular Value Decomposition (SVD) every round. By doubling the sketch space and only computing the SVD periodically, FTFSL achieves $O(\tau d)$ complexity—linear in both sketch size and dimension.
  • FTSL-Shampoo: The authors also extend these ideas to the Shampoo optimizer, which is designed specifically for matrix-structured variables (like layers in a neural network), providing a dimension-free bound tailored for deep learning contexts.

Key Results and Performance

The authors evaluated their methods across distinct domains, including online classification (Gisette, Epsilon), image classification (ResNet on CIFAR), and language modeling (Transformer on WikiText-2).

Performance comparison of FTFSL against baselines across Accuracy, Loss, and Time.

The empirical results strongly validate the theoretical claims:

  • Dimension-Free Regret: Theoretically, the regret of FTSL/FTFSL is bounded by $O(\text{tr}(G_T^{1/2}) + \sqrt{\rho_{1:T}})$, which notably lacks the explicit $d$ term found in previous state-of-the-art methods.
  • Superior Accuracy and Loss: As shown in the performance plots, FTFSL consistently outperforms other sketchy variants (like ADA-FFD and S-ADA) in both minimizing training loss and maximizing testing accuracy.
  • Massive Speedups: In experiments on high-dimensional datasets, FTFSL and Fast S-ADA demonstrated significantly lower runtimes than the standard S-ADA, proving that the $O(\tau d)$ time complexity translates to real-world efficiency.
  • Deep Learning Viability: FTSL-Shampoo achieved comparable performance to the full Shampoo optimizer but with much higher memory efficiency and faster execution, making it a highly practical choice for training large neural networks.

Limitations and Future Work

While FTSL and FTFSL represent a significant leap forward, some challenges remain. The method is theoretically "dimension-free," but it still requires choosing a sketching size $\tau$. Finding the optimal balance between sketch size and accuracy in extremely large models (like LLMs) remains an area for further empirical study. Additionally, while the authors provide a reduction for non-convex stochastic optimization, a direct theoretical analysis of FTSL on non-convex landscapes could yield even deeper insights. Finally, further optimization using specialized hardware kernels for the periodic SVD could push the speed gains even further in production environments.

Summary updated

BibTeX
@inproceedings{yang2025dimension,
  author = {Sifan Yang and Yuanyu Wan and Peijia Li and Yibo Wang and Xiao Zhang and Zhewei Wei and Lijun Zhang},
  title = {{Dimension-Free Adaptive Subgradient Methods with Frequent Directions}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=zpuKPuSYru},
}
Figure