H. Dilpriya's Momentum (HDM) : A Multi-Strategy Gradient-Aligned Optimizer with Adaptive Per-Parameter Corrections, Cosine-Annealed Scheduling, and Convergence Guarantees for Deep Neural Networks
This paper introduces H. Dilpriya's Momentum (HDM), a novel multi-strategy optimizer that combines adaptive per-parameter corrections with cosine-annealed scheduling to achieve rigorous convergence guarantees and state-of-the-art gradient alignment, demonstrating superior performance on both ill-conditioned synthetic problems and deep learning benchmarks like MNIST and CIFAR-10.
Original paper licensed under CC BY 4.0 (https://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
Imagine you are trying to roll a heavy boulder down a mountain to the very bottom of a valley. This is what computers do when they "train" deep neural networks: they try to find the lowest point of a complex, bumpy landscape called a "loss function."
For a long time, the standard way to do this was Gradient Descent. Think of this as a hiker who looks at the slope right under their feet and takes a step downhill. It works, but it's slow. If the valley is narrow and twisty (what mathematicians call "ill-conditioned"), the hiker bounces back and forth, taking forever to get to the bottom.
Then came Momentum. This is like giving the hiker a skateboard. Instead of just looking at the current slope, the hiker remembers their previous speed. If they were rolling downhill, they keep rolling, which helps them power through small bumps and narrow valleys. But there's a catch: if the terrain suddenly changes direction, the hiker might be too heavy to stop, crashing into the wrong side of the valley.
Enter H. Dilpriya's Momentum (HDM), the new method proposed in this paper. The authors, led by Janaka Ishan Senarathna, suggest that HDM is like a hiker with a super-smart, adaptive compass.
The Magic Compass: Gradient Alignment
Most momentum methods just keep rolling. HDM, however, constantly checks if the direction it's rolling matches the direction it should be going. It measures something called gradient alignment—basically, how much the current step agrees with the previous step.
- When the path is clear: If the compass says, "Hey, we're still heading the same way!" HDM gives the hiker a little extra boost (acceleration).
- When the path gets tricky: If the compass says, "Wait, the direction just flipped!" HDM hits the brakes (stabilization) to prevent a crash.
The paper proves mathematically that this smart checking doesn't just feel good; it actually guarantees the hiker will reach the bottom. The authors call this H. Dilpriya's Convergence Theorem. They showed that for certain types of smooth, bowl-shaped valleys (strongly convex problems), HDM is mathematically guaranteed to find the bottom in a specific number of steps, specifically O(κ log(1/ε)) steps, where κ is how twisty the valley is. This is a big deal because other smart compass methods (like YellowFin and DEAM) didn't have this mathematical proof; they just worked well in practice.
The "H. Dilpriya's Lemma"
Before proving the hiker reaches the bottom, the authors had to prove the compass wouldn't go crazy. They established H. Dilpriya's Lemma, which acts like a safety leash. It proves that the "correction" the compass applies (the extra boost or the brake) can never get too huge. It's always tied to how steep the hill is. This ensures the hiker never gets launched into space or stopped dead in their tracks.
The Race: How Did HDM Do?
The authors didn't just talk theory; they put HDM to the test in a race against seven other famous optimizers (including the classics SGD, Momentum, and the modern favorites Adam and YellowFin).
1. The Twisty Valley Test (Synthetic Problems)
They created artificial, super-twisty valleys with a "condition number" (a measure of how hard the path is) of 10, 100, and a brutal 1000.
- The Result: On the easy paths (10 and 100), everyone was fast. But on the brutal 1000 path, the classic methods (SGD, Momentum, YellowFin) got stuck or bounced around for 10,000 steps and still hadn't finished.
- HDM's Performance: HDM finished in just 140 steps. It was the only one, besides a method called DEAM, that didn't give up.
2. The Image Recognition Test (MNIST & CIFAR-10)
They trained computer brains to recognize handwritten numbers (MNIST) and colored images (CIFAR-10).
- MNIST: HDM got 98.22% accuracy. It came in second place, just 0.08% behind the winner (YellowFin). It was faster than the heavyweights like Adam.
- CIFAR-10: HDM got 83.94% accuracy, again taking second place behind Adam (which got 85.69%).
- The Catch: While HDM didn't win the accuracy race, it was the fastest among the "gradient-alignment" specialists, beating YellowFin and DEAM significantly.
3. The "Compass" Test (Gradient Alignment)
This is where HDM truly shines. The authors measured how well the hiker stayed on a straight path (gradient alignment).
- The Result: HDM achieved an average alignment of 8.22%.
- The Comparison: This was the best of all. YellowFin only managed 2.98%, and DEAM got 3.18%.
- The Trend: As the training went on, HDM's alignment actually got better (rising to 11.11% in the final stages), while everyone else's alignment got worse. It's like the hiker getting more confident the closer they get to the finish line, while others started to wobble.
What HDM is NOT
The paper is very clear about what HDM is not and what it doesn't do:
- It is not a magic bullet for everything: On the easy, non-twisty problems, HDM was actually slower (taking 77 iterations vs. Momentum's 25 on a condition number of 10). The extra "compass checking" adds a tiny bit of overhead that isn't needed on easy paths.
- It is not fully automatic yet: Unlike YellowFin, which tunes its own settings, HDM still needs a human to pick a specific "correction coefficient" (called γ). The authors suggest 2.0 for accuracy-focused tasks and 1.5 for alignment-focused tasks, but it's not a "set it and forget it" button yet.
- It is not proven for every problem: The mathematical guarantee (Theorem 2) only works for "strongly convex" problems (smooth, bowl-shaped valleys). Real-world deep learning often involves "non-convex" landscapes (bumpy, multi-peaked mountains). The authors suspect HDM works there too (and their experiments on CIFAR-10 suggest it does), but they haven't mathematically proven it yet.
The Bottom Line
H. Dilpriya's Momentum is a new way to train AI that adds a "smart compass" to the standard momentum method. It is the first gradient-alignment method to come with a mathematical guarantee that it will reach the bottom of the valley.
In the races run so far, it didn't always win the accuracy prize (coming in second on both MNIST and CIFAR-10), but it was the most consistent and stable runner. It kept its balance on the hardest, twistiest paths where others fell, and it kept its compass pointing straight even when everyone else started to wobble. It's a tool for when you need a method that is not just fast, but reliable and provably safe.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.