LionVote: Per-Layer Learning Rate Adaptation for Lion
This paper introduces LionVote, a per-layer learning rate adaptation mechanism that utilizes gradient stability and momentum diagnostics to dynamically adjust learning rates, achieving statistically significant accuracy improvements over standard Lion and AdamW on ViT-Tiny/CIFAR-100 by addressing the inherent cross-layer learning rate disparities in Transformer architectures.
Original paper dedicated to the public domain under CC0 1.0 (http://creativecommons.org/publicdomain/zero/1.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 training a giant digital brain to recognize cats, dogs, and cars. This brain is made of many different layers, like a multi-story building. Usually, when we teach this brain, we give every single floor the exact same amount of "study time" (a learning rate) at the same speed. It's like a teacher telling the math class, the art class, and the gym class to all run at the exact same pace, regardless of what they are doing.
But what if the math students need to sprint, while the art students need to stroll?
That's the problem LionVote solves. It's a new way to train a specific type of digital brain called "Lion." The researchers found that if you treat every part of the brain the same, some parts get overwhelmed and others get bored.
The Big Discovery: The Brain's "Effective Scale" is Off
The authors measured how the Lion brain learns and found something surprising. On a specific test (using a model called ViT-Tiny on the CIFAR-100 dataset), the brain's "effective scale" was 2.6 to 2.8 times too high for the parts that handle attention and complex thinking (MLP parameters). For the parts that keep everything organized (normalization layers), it was about 2 times too high.
Think of it like this: The attention parts of the brain are trying to drink from a firehose, while the organization parts are drinking from a garden hose. The attention and MLP parts are actually receiving a 32% higher effective scale than the normalization parts, even though the teacher (the global learning rate) is turning the faucet to the same setting for both. This mismatch makes it hard for the brain to learn efficiently.
The Solution: A Voting System for Every Layer
To fix this, the researchers invented LionVote. Instead of one teacher shouting instructions to the whole building, they gave every single layer of the brain its own tiny, persistent "level counter."
Here is how the voting works:
- The Compound Level: Every layer has a score (an integer) that starts at zero. This score acts like a volume knob, turning the learning rate up or down.
- The Two Votes: Every few epochs (training cycles), the layer checks its own health using two specific tests:
- Vote 1 (Direction Check): Is the layer moving in a steady direction, or is it wobbling back and forth? If the gradient (the direction of learning) is stable, it gets a "thumbs up." If it's flipping wildly, it gets a "thumbs down."
- Vote 2 (Momentum Health): Is the layer's momentum (its speed and inertia) too strong compared to its current progress? If it's spinning out of control, it gets a "thumbs down."
- The Tiebreaker: Sometimes the two votes disagree (one says "go faster," the other says "slow down"). When this happens, the system looks at the validation loss (a score of how well the brain is doing on a practice test). If the practice test score improved, it votes to keep going; if it got worse, it votes to slow down.
Based on these votes, the layer's "volume knob" (the compound level) turns up or down. If a layer is stable, it might get a boost. If it's chaotic, it gets a timeout.
The Results: A Small but Real Win
When they tested this on the ViT-Tiny model:
- LionVote achieved 69.71% accuracy.
- The standard Lion optimizer got 68.95%.
- The popular AdamW optimizer got 68.75%.
The difference between LionVote and standard Lion is statistically significant (meaning it's likely a real improvement and not just luck), with a probability of less than 2% that this happened by chance. On the ViT-Tiny/CIFAR-100 test, LionVote also beat AdamW, though on the ViT-Tiny/CIFAR-10 test, LionVote tied with AdamW rather than beating it.
What This Does NOT Mean
It's important to know what this method doesn't do, because the paper is very clear about that:
- It's not a magic bullet for everything. On simpler, uniform networks (like WideResNet), the old-school method of tuning the learning rate manually (using SGD with cosine annealing) still wins. LionVote didn't help there; in fact, on some tests, it made things slightly worse.
- It's not a permanent fix for all tasks. The benefit depends heavily on how different the layers are. The more "heterogeneous" (different) the architecture is, the more LionVote helps. On the uniform WideResNet, the layers were too similar for the voting system to find much to fix.
- It's not a "set it and forget it" for all optimizers. The specific rules for the "Momentum Health" vote were derived specifically for the Lion optimizer. If you tried to use these exact rules on a different optimizer like Adam, they might not work because the math behind the momentum is different.
The Takeaway
The paper suggests that per-layer adaptation is a powerful tool, but only when the brain's architecture is complex enough to have different needs. LionVote proves that by letting each layer vote on its own learning speed, we can squeeze out a little extra performance (about 0.7 percentage points on this specific test) without needing to guess the perfect settings by hand.
It's like realizing that in a busy school, the math teacher, the art teacher, and the gym teacher shouldn't all be shouting the same instructions at the same volume. Sometimes, the math class needs a whisper, and the gym class needs a megaphone. LionVote is the system that lets each class decide for itself.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.