How an Overlooked Inequality Explains Fast ML Training

Image for Hamed Karimi wins ECML PKDD Test-of-Time Award

Step-by-Step Teaching

Step 1: The Core Problem — Training a Machine Learning Model

Before understanding the solution, you need to understand what problem is being solved.

What is training?

When a machine learning model learns, it adjusts millions (or billions) of internal numbers called parameters. The goal is to make the model's outputs match the correct answers in training data as closely as possible.

How do we measure "closeness"?

We use a loss function — a mathematical formula that outputs a single number representing how wrong the model currently is.

📌 Key idea: Training = finding parameter values that minimize the loss function


Step 2: Visualizing the Optimization Landscape

To understand how training works, use this mental model:

Imagine a topographic map:

        Peak
       /    \
      /      \
-----          -----  ← Plateau
         |
       Valley (minimum loss)
Map FeatureMachine Learning Meaning
Your current locationCurrent parameter values
AltitudeCurrent loss value
Lowest point (valley)Best possible parameters
Walking downhillAdjusting parameters to reduce loss

Gradient descent is the algorithm that always takes a step in the downhill direction — following the slope of the loss function.


Step 3: What is "Linear Convergence" and Why Does It Matter?

Linear convergence means the error shrinks by a constant fraction at every step.

Example:

Step 0: Error = 1000
Step 1: Error = 500   (halved)
Step 2: Error = 250   (halved again)
Step 3: Error = 125   (halved again)
...

This is fast and predictable. Researchers want a mathematical guarantee that training will converge this quickly.

📌 Why it matters: Without a convergence guarantee, you cannot predict whether training will finish in hours or never reach a good solution.


Step 4: The Classical Guarantee — Strong Convexity

Mathematically, linear convergence was already proven — but only under one specific condition called strong convexity.

What does strong convexity look like?

        |
        |    ← Steep bowl shape
       / \
      /   \
     /     \
    *        ← Single lowest point

Properties of a strongly convex landscape:

  • Exactly one lowest point (one best solution)
  • Slopes steeply and uniformly upward in all directions
  • From anywhere, there is a clear, single best direction to move

The mathematical guarantee: If the loss function is strongly convex, gradient descent is proven to converge at a linear rate.


Step 5: Why Strong Convexity Fails for Modern Models

Here is the critical problem:

Modern machine learning models — especially large language models — do NOT have strongly convex loss landscapes.

Why not?

  • These models have far more parameters than training data points
  • This means many different combinations of parameters can produce equally good results
  • The landscape has a flat valley floor instead of a single lowest point
Strongly Convex:          Real Modern Models:
        |                       |
       / \                ______|______
      /   \              /             \
     /     \            /               \
    *                  *  *  *  *  *  *   ← Many equally good solutions
  (one best)          (flat valley floor)

The gap this creates:

Gradient descent works well in practice on these models, but before 2016, theory could not explain why or guarantee how fast it would converge.

This was a major unsolved problem in machine learning theory.


Step 6: The Scattered Landscape of Solutions (Pre-2016)

By 2016, researchers had developed approximately 25 years' worth of partial solutions to this problem. Each solution:

  • Had its own name
  • Used its own notation
  • Made different assumptions
  • Was published in separate papers

Nobody had mapped how these solutions related to each other.

This was like having 25 different maps of the same city, each drawn in a different language, with no way to compare them.


Step 7: The Polyak-Łojasiewicz (PL) Condition — The Key Insight

Historical background:

In 1963, two mathematicians independently published the same mathematical inequality:

  • Boris Polyak (Russian paper) — studying optimization
  • Stanisław Łojasiewicz (French paper) — studying analytic geometry

They were working on completely unrelated problems. The condition sat largely unused in machine learning for 50 years.

What does the PL condition say?

In plain language:

No matter where you are in the landscape, the slope is steep enough that you are making meaningful progress toward the minimum.

More precisely, the PL condition states:

The gradient (slope) at any point must be large enough 
relative to how far you are from the minimum loss value.

Crucially: This does NOT require a single lowest point. The flat valley floor is allowed — as long as the slopes leading into the valley are steep enough.

PL Condition Satisfied:
        |
       / \
      /   \
_____/     \_____
   *  *  *  *      ← Flat floor is OK, 
                      as long as slopes are steep enough

Step 8: Why the PL Condition is Powerful — The Three-Line Proof

Here is the remarkable result:

If the PL condition holds → linear convergence is guaranteed

And the proof of this is only three lines long.

This matters because:

  1. Many existing proofs for strongly convex functions only used one consequence of strong convexity — that the slope is always steep enough to make real progress
  2. The PL condition directly guarantees exactly that property
  3. Therefore, all those existing proofs still work when you swap in the PL condition instead of strong convexity

Analogy:

Old requirement: "Must be a steep bowl shape" (strong convexity)
                          ↓
What proofs actually needed: "Slopes must be steep enough"
                          ↓
PL condition provides: "Slopes are steep enough" ✓

The PL condition is the weakest known condition that still guarantees linear convergence.


Step 9: The Three Contributions of the 2016 Paper

Contribution 1: The Map

Karimi et al. organized all existing weaker-than-convex conditions into a clear hierarchy, from strongest to weakest assumptions.

Strong Convexity (strongest)
        ↓
    Condition A
        ↓
    Condition B
        ↓
Polyak-Łojasiewicz (weakest that still guarantees linear convergence)
        ↓
    Weaker conditions (no linear convergence guarantee)

Impact: Researchers could now see exactly which results implied which others, eliminating decades of confusion.


Contribution 2: Extension to Non-Smooth Functions

Real machine learning models often combine:

Function TypeDescriptionExample
SmoothGradual, predictable slopes everywhereSquared error loss
Non-smoothHas corners, kinks, or undefined slopesAbsolute value, ReLU

The paper introduced a variant of the PL condition that works for combinations of smooth and non-smooth functions, extending the linear convergence guarantee to a much wider class of models.


Contribution 3: Reanalysis of Standard Algorithms

The paper applied the PL condition framework to every major optimization algorithm used in machine learning:

AlgorithmWhat It Does
Gradient DescentStandard downhill steps
Coordinate DescentOptimizes one parameter at a time
Stochastic Gradient Descent (SGD)Uses random subsets of data
Sign Gradient DescentUses only the direction of the gradient

Result: For each algorithm, the same short PL-based argument recovered the convergence rates previously known only for strongly convex functions.

📌 Practical value: This gave researchers a ready-made template — a reusable analytical tool for proving convergence of new optimization methods as they are invented.


Step 10: Why This Matters — Closing the Theory-Practice Gap

Before this paper:

Practice:  "Gradient descent trains large models successfully" ✓
Theory:    "We can only prove this for idealized bowl-shaped problems" ✗
           ↑
           GAP

After this paper:

Practice:  "Gradient descent trains large models successfully" ✓
Theory:    "If PL condition holds, linear convergence is guaranteed" ✓
           ↑
           GAP CLOSED

Step 11: The Broader Impact

The PL condition has since spread far beyond the original paper's scope:

Original paper (2016)
        ↓
Reinforcement Learning ← convergence proofs
        ↓
Riemannian Optimization ← curved parameter spaces
        ↓
Diffusion Models ← sampling methods
        ↓
Graduate Textbooks ← standard curriculum

The paper has been cited over 2,000 times and is now considered a foundational reference in machine learning optimization theory.


Summary Table

ConceptPlain Meaning
Loss functionMeasures how wrong the model is
Gradient descentAlgorithm that minimizes loss by following the slope
Linear convergenceError shrinks by a constant fraction each step
Strong convexityIdealized bowl shape — one best solution, guaranteed fast convergence
PL conditionWeaker requirement: slopes are steep enough to guarantee fast convergence even with many equally good solutions
Karimi et al.'s contributionUnified scattered theory, extended to non-smooth functions, provided reusable proof template

Self-Check Questions

  1. Why does strong convexity fail to describe modern large language models?
  2. What does the PL condition require, and why is it weaker than strong convexity?
  3. What are the three contributions of the 2016 paper?
  4. Why was the PL condition easy to adopt into existing proofs?
  5. What does "linear convergence" mean, and why do researchers care about it?

More to study