mlsanityData to 7 Oct 2026

Zero-th Order Algorithm for Softmax Attention Optimization

arXiv 2307.08352 ↗First posted 17 Jul 2023cs.LG stat.MLcited by 16

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have brought about significant transformations in human society. Among the crucial computations in LLMs, the softmax unit holds great importance. Its helps the model generating a probability distribution on potential subsequent words or phrases, considering a series of input words. By utilizing this distribution, the model selects the most probable next word or phrase, based on the assigned probabilities. The softmax unit assumes a vital function in LLM training as it facilitates learning from data through the adjustment of neural network weights and biases. With the development of the size of LLMs, computing the gradient becomes expensive. However, Zero-th Order method can approximately compute the gradient with only forward passes. In this paper, we present a Zero-th Order algorithm specifically tailored for Softmax optimization. We demonstrate the convergence of our algorithm, highlighting its effectiveness in efficiently computing gradients for large-scale LLMs. By leveraging the Zeroth-Order method, our work contributes to the advancement of optimization techniques in the context of complex language models.

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 36 of its 52 references that are in the map. First posted on arXiv 17 Jul 2023.

Builds on

36 of 52 references.

References · 36

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  6. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  7. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  8. 2020Reformer: The Efficient Transformercited by 1,658
  9. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  10. 2013Stochastic First- and Zeroth-order Methods for Nonconvex Stochastic Programmingcited by 716
  11. 2017ZOO: Zeroth Order Optimization based Black-box Attacks to Deep Neural Networks without Training Substitute Modelscited by 656
  12. 2017Evolution Strategies as a Scalable Alternative to Reinforcement Learningcited by 555
24 more
  1. 2016Linear Convergence of Gradient and Proximal-Gradient Methods Under the Polyak-Lojasiewicz Conditioncited by 526
  2. 2019CamemBERT: a Tasty French Language Modelcited by 368
  3. 2023Fine-Tuning Language Models with Just Forward Passescited by 337
  4. 2022The Forward-Forward Algorithm: Some Preliminary Investigationscited by 262
  5. 2013Optimal rates for zero-order convex optimization: the power of two function evaluationscited by 190
  6. 2023Fast Attention Requires Bounded Entriescited by 102
  7. 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
  8. 2023KDEformer: Accelerating Transformers via Kernel Density Estimationcited by 58
  9. 2023Attention Scheme Inspired Softmax Regressioncited by 49
  10. 2019An ADMM Based Framework for AutoML Pipeline Configurationcited by 47
  11. 2023An Over-parameterized Exponential Regressioncited by 45
  12. 2023Solving Regularized Exp, Cosh and Sinh Regression Problemscited by 44
  13. 2019Gradientless Descent: High-Dimensional Zeroth-Order Optimizationcited by 42
  14. 2023The Closeness of In-Context Learning and Weight Shifting for Softmax Regressioncited by 41
  15. 2021Approximating How Single Head Attention Learnscited by 38
  16. 2015Optimal approximate matrix product in terms of stable rankcited by 37
  17. 2023Algorithm and Hardness for Dynamic Attention Maintenance in Large Language Modelscited by 37
  18. 2023Randomized and Deterministic Attention Sparsification Algorithms for Over-parameterized Feature Dimensioncited by 37
  19. 2023An Iterative Algorithm for Rescaled Hyperbolic Functions Regressioncited by 35
  20. 2023In-Context Learning for Attention Scheme: from Single Softmax Regression to Multiple Softmax Regression via a Tensor Trickcited by 32
  21. 2023A Mathematical Abstraction for Balancing the Trade-off Between Creativity and Reality in Large Language Modelscited by 29
  22. 2023InfoPrompt: Information-Theoretic Soft Prompt Tuning for Natural Language Understandingcited by 29
  23. 2023Differentially Private Attention Computationcited by 25
  24. 2023Just One Byte (per gradient): A Note on Low-Bandwidth Decentralized Language Model Finetuning Using Shared Randomnesscited by 18

Built on by

Cited by year

Citing papers per year: 2023: 5; 2024: 6; 2025: 5.

16 papers.

Sort:

By area:

  1. 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformerscited by 32
  2. 2023A Fast Optimization View: Reformulating Single Layer Attention in LLM Based on Tensor and SVM Trick, and Solving It in Matrix Multiplication Timecited by 30
  3. 2024The Fine-Grained Complexity of Gradient Computation for Training Large Language Modelscited by 30
  4. 2023How to Protect Copyright Data in Optimization of Large Language Models?cited by 26
  5. 2024The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexitycited by 21
  6. 2023Why Softmax Attention Outperforms Linear Attentioncited by 15
  7. 2024Exploring the Frontiers of Softmax: Provable Optimization, Applications in Diffusion Model, and Beyondcited by 15
  8. 2023Unmasking Transformers: A Theoretical Approach to Data Recovery via Attention Weightscited by 11
  9. 2025Do LLMs trust AI regulation? Emerging behaviour of game-theoretic LLM agentscited by 11
  10. 2023Convergence of Two-Layer Regression with Nonlinear Unitscited by 6
  11. 2025Bilevel ZOFO: Efficient LLM Fine-Tuning and Meta-Trainingcited by 5
  12. 2025Scaling Law Phenomena Across Regression Paradigms: Multiple and Kernel Approachescited by 4
4 more
  1. 2025Time and Memory Trade-off of KV-Cache Compression in Tensor Transformer Decodingcited by 2
  2. 2024Binary Hypothesis Testing for Softmax Models and Leverage Score Modelscited by 1
  3. 2025Towards Sampling Data Structures for Tensor Products in Turnstile Streamscited by 1
  4. 2024Enhancing Stochastic Gradient Descent: A Unified Framework and Novel Acceleration Methods for Faster Convergencecited by 0