← Latest papers
🤖 machine learning

Learning Dynamics of Zeroth-Order Optimization: A Kernel Perspective

This paper resolves the paradox of zeroth-order optimization's success in fine-tuning large language models by demonstrating that its learning dynamics are governed by an empirical Neural Tangent Kernel whose approximation error depends on the model output size rather than the massive parameter dimension, thereby explaining its scalability.

Original authors: Zhe Li, Bicheng Ying, Zidong Liu, Haibo Yang

Published 2026-05-06
📖 5 min read🧠 Deep dive

Original authors: Zhe Li, Bicheng Ying, Zidong Liu, Haibo Yang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Mystery: The "Blind" vs. The "Sighted"

Imagine you are trying to find the lowest point in a vast, foggy valley (this is the goal of training an AI model).

  • First-Order (FO) Methods: These are like a hiker with a compass and a map. They can see exactly which way is "down" (the gradient) and walk straight there. This is fast and efficient, but it requires carrying a heavy map (computing gradients), which is impossible if the valley is too huge or if you are in a "black box" where you can't see the map.
  • Zeroth-Order (ZO) Methods: These are like a blind hiker. They don't have a compass. Instead, they take a small step forward, check if they are lower, take a step backward, and check again. By comparing these two points, they guess which way is down. This is "memory-efficient" because they don't need the heavy map, but traditional math says this should be incredibly slow, especially if the valley is huge (high-dimensional).

The Paradox:
For years, math textbooks told us that the "blind hiker" (ZO) would take forever to find the bottom if the valley was massive (like modern Large Language Models with billions of parameters). Yet, in the real world, researchers have successfully used this "blind" method to fine-tune these massive models. How is this possible?

The Paper's Solution: The "Shadow" Analogy

The authors solve this mystery by looking at the problem not through the lens of "steps taken," but through the lens of "learning dynamics" (how the model's confidence changes).

They use a tool called the Neural Tangent Kernel (eNTK). Think of the eNTK as a shadow cast by the model's learning process.

  • The "Sighted" hiker (FO) casts a perfect, detailed shadow of the terrain.
  • The "Blind" hiker (ZO) casts a shadow that is a projected, slightly blurry version of the perfect one.

The paper argues that the "blind" method works because it doesn't need to see the entire massive valley to cast a useful shadow. It only needs to project the shadow onto a random, low-dimensional slice of the world.

The Magic Trick: The "Johnson-Lindenstrauss" Lemma

The paper relies on a mathematical concept called the Johnson-Lindenstrauss (JL) Lemma. Here is the analogy:

Imagine you have a giant, complex 3D sculpture (the model with billions of parameters). You want to take a photo of it, but your camera can only take 2D pictures.

  • Old Theory: You thought you needed a camera with a sensor as big as the sculpture to get a good picture. If the sculpture is huge, the photo would be blurry and useless.
  • The Paper's Insight: The JL Lemma says that if you take a photo from a random angle, you can actually capture the essential relationships of the sculpture perfectly, even if the photo is much smaller than the sculpture.

The Key Discovery:
The quality of this "blind" photo (the ZO learning) depends on how many random angles (perturbations) you take, not on how big the sculpture is.

  • The "Perturbations" (P): These are the number of times the blind hiker pokes the ground to guess the direction.
  • The "Output Size" (V): This is the size of the final answer the model gives (e.g., the vocabulary size of a language model).

The paper proves that as long as you poke the ground enough times (increase P), the "blind" hiker's path will look almost identical to the "sighted" hiker's path. Crucially, the number of pokes needed depends on the size of the answer (V), not the size of the model (d).

Three Main Takeaways

  1. Count the Pokes, Not the Size:
    The success of the "blind" method isn't about the massive size of the AI model (which could be billions of parameters). It's about the number of random guesses (perturbations) you make. If you make enough guesses, the model learns just as well as if it had a map.

  2. The Shape of the Guess Doesn't Matter:
    Does it matter if the "blind hiker" pokes the ground in a smooth, continuous circle (Gaussian distribution) or in sharp, binary jumps (Rademacher distribution)? The paper shows it doesn't matter much. Both work almost equally well. The "blind" method is robust; it doesn't care about the specific shape of the noise, as long as there is enough of it.

  3. Why It Works on Huge Models:
    This explains why ZO works on Large Language Models (LLMs). Even though the model has billions of parameters (a huge d), the output vocabulary is relatively small (a moderate V). Because the "blind" method's accuracy depends on V and not d, it remains efficient and effective even for the biggest models.

The Bottom Line

This paper changes the story. It says the "curse of dimensionality" (the idea that big models are too hard for blind methods) is a myth when you look at the learning process correctly.

By viewing the learning process as a geometric projection, the authors show that a "blind" optimizer can learn just as effectively as a "sighted" one, provided you give it enough random samples. It's not about the size of the mountain; it's about how many times you look at it from different angles.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →