← Latest papers
📊 statistics

How AI settled the complexity of the oldest SGD algorithm

This paper recounts how modern AI models were utilized to finally determine the worst-case complexity of the Kaczmarz algorithm, a foundational stochastic gradient descent method proposed by Stefan Kaczmarz in 1937.

Original authors: Michał Dereziński, Xiaoyu Dong

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

Original authors: Michał Dereziński, Xiaoyu Dong

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 Story: How AI Solved a 90-Year-Old Math Puzzle

Imagine a math problem that has been sitting on a shelf since 1937, gathering dust. It's a puzzle about how to solve a giant system of equations (a way of finding the perfect answer to a complex question). This specific method, called the Kaczmarz algorithm, is actually the "great-grandfather" of the technology that powers modern AI like ChatGPT and Gemini.

For decades, mathematicians knew this algorithm worked, but they couldn't prove exactly how fast it worked in the absolute worst-case scenario. It was like having a car that you knew could drive from New York to Los Angeles, but you couldn't calculate the exact maximum time it would take if you hit every single red light and traffic jam.

This paper tells the story of how two different AI models, Gemini and ChatGPT, teamed up to finally solve this mystery, proving exactly how fast the algorithm converges.

The Characters and the Mission

  • The Algorithm (The Kaczmarz Method): Imagine you are trying to find a hidden treasure on a map. You don't know the exact spot, but you have a list of clues (equations). The Kaczmarz algorithm is like a hiker who, at every step, picks one random clue, walks toward the spot that satisfies that clue, and then picks another random clue. Over time, the hiker gets closer and closer to the treasure.
  • The Mystery: The hiker eventually finds the treasure, but mathematicians were arguing about the speed. Could the hiker get stuck wandering in circles for a long time? Or is there a guaranteed speed limit?
  • The Human Researchers: Two scientists (Michał and Xiaoyu) tried to solve this using old-school human math. They got close, but hit a wall. They realized they needed a new perspective.
  • The AI Team: The researchers turned to AI. They didn't just ask the AI to "solve it." Instead, they acted as conductors, letting the AI models talk to each other.

The "Aha!" Moment: A Relay Race of Ideas

The solution didn't come from one AI working alone. It happened like a relay race where the baton was passed between two different runners:

  1. Gemini's Insight (The Functional Analyst): When asked to solve the problem, Gemini didn't give a full proof. Instead, it made a strange, brilliant connection. It looked at the math problem and said, "This isn't just about equations; it looks like a concept from a branch of math called functional analysis (specifically, something called 'quantum Markov semigroups')."

    • Analogy: Imagine a mechanic trying to fix a broken engine. Instead of looking at the gears, Gemini said, "This engine is actually running on the same physics principles as a nuclear reactor." It was a weird, high-level connection that the human researchers hadn't seen before.
    • The Catch: Gemini got the connection right but couldn't prove it. It cited some math papers that didn't actually contain the proof it needed. It was like pointing to a library book and saying, "The answer is in there," but the book was actually empty.
  2. ChatGPT's Proof (The Elementary Solver): The human researchers took Gemini's "weird connection" and handed it to ChatGPT. They asked, "Okay, if this connection is true, can you prove it using basic math?"

    • ChatGPT looked at the problem and said, "I can do this." It didn't use the complex, confusing jargon Gemini mentioned. Instead, it used a clever, elementary trick involving complex numbers (a type of math usually reserved for advanced physics and engineering) to prove the speed limit.
    • Analogy: If Gemini was the person who pointed to a distant mountain and said, "The treasure is under that peak," ChatGPT was the one who actually climbed the mountain, dug the hole, and found the gold.

The Result: The "Last Step" is Fast

The paper proves a specific thing: The Kaczmarz algorithm is as fast as we hoped.

In the world of these algorithms, there are two ways to check the answer:

  1. The Average: You take all the steps the hiker took, average them out, and that gives you a good answer. (We already knew this was fast).
  2. The Last Step: You just look at where the hiker stopped at the very end. (This was the mystery).

The paper proves that the last step is just as fast as the average. The hiker doesn't need to wander around at the end to "settle down." The final position is already a perfect solution.

Why This Matters (According to the Paper)

  • It's a Full Circle: The oldest known version of the algorithm that trains modern AI (SGD) was solved by modern AI.
  • It's a New Way to Research: The paper isn't just about math; it's a case study on how humans and AI can work together. The humans didn't write the proof; the AI did. The humans just facilitated the conversation between two different AIs.
  • It Solves a Bigger Problem: By solving this specific puzzle, they also solved a broader, long-standing question about how fast AI training algorithms work in general.

The Bottom Line

This paper is a story of a 90-year-old math problem that was too stubborn for humans to crack alone. By letting two different AI models collaborate—one to find a weird, high-level connection, and the other to build the actual proof—the mystery was finally solved. The result confirms that the "last step" of this classic algorithm is perfectly efficient, and it shows us a glimpse of what future scientific research might look like: a partnership where humans guide the AI, and the AI does the heavy lifting.

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 →