← Latest papers
🤖 machine learning

Improving Neural Network Training by Decoupling the Magnitude and Direction of Weight Vectors

This paper introduces Magnitude–Direction (MD) Decoupling, an optimizer modification that factorizes weight matrices into fixed-norm directions and learnable magnitudes updated at separate rates, thereby stabilizing training dynamics and eliminating the need for weight decay and warmup across various model architectures and optimizers.

Original authors: Alexander Hägele, Alejandro Hernández-Cano, Atli Kosson, Martin Jaggi

Published 2026-06-25
📖 4 min read☕ Coffee break read

Original authors: Alexander Hägele, Alejandro Hernández-Cano, Atli Kosson, Martin Jaggi

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

Imagine you are trying to teach a giant, complex robot (a neural network) to speak a new language. The robot's brain is made of billions of tiny switches called weights. To teach the robot, you use a teacher called an optimizer (like Adam or Muon) that nudges these switches to make the robot smarter.

For a long time, these teachers treated every switch as a single, solid block. They would push the whole block in a specific direction. But the authors of this paper realized there's a problem: every weight actually has two distinct parts:

  1. Direction: Which way the switch is pointing (like the needle on a compass).
  2. Magnitude: How strong or loud that switch is (like the volume knob).

The Problem: The "Volume" and "Direction" Tangle

In standard training, the teacher tries to move the whole block at once. This creates a messy tangle:

  • The Volume Drifts: When the teacher tries to rotate the direction of the switch, the "volume" (magnitude) accidentally gets louder or quieter as a side effect, even if the teacher didn't mean to change it.
  • The Direction Gets Confused: If the volume is too high, a small push doesn't change the direction much. If the volume is too low, the same push spins the direction wildly.
  • The Fix-It Kit: Because of this mess, engineers have to use complicated "band-aids" like weight decay (a rule that constantly tries to shrink the volume) and warmup (starting very slowly to avoid chaos) to keep the training stable.

The Solution: Magnitude-Direction (MD) Decoupling

The authors propose a new way to teach the robot. Instead of treating the weight as one solid block, they split it into two separate parts inside the optimizer:

  1. The Compass (Direction): They force the direction to stay on a fixed "sphere" (like a globe). The teacher can rotate the compass needle around this globe, but the needle's length never changes.
  2. The Volume Knobs (Magnitude): They add separate, learnable "volume knobs" (gains) for each row and column of the switches. These knobs control the loudness independently.

The Analogy:
Imagine you are steering a ship.

  • Old Way: You have one giant lever that controls both the rudder (direction) and the engine power (magnitude). If you try to turn the rudder, the engine power accidentally revs up or down, making the ship hard to steer. You have to constantly fight the engine to keep it steady.
  • New Way (MD Decoupling): You have a dedicated steering wheel for the rudder and a separate throttle for the engine. You can turn the wheel exactly as much as you want without the engine revving. You can also adjust the throttle independently to go faster or slower.

What Happens When You Use This?

The paper shows that this simple separation leads to some surprising benefits:

  1. No More "Band-Aids": Because the direction is locked to a fixed size and the volume is controlled separately, the robot doesn't need weight decay or warmup anymore. The training is naturally stable.
  2. Predictable Scaling: Usually, if you make the robot bigger (more switches), you have to re-tune the teacher's settings from scratch. With this new method, the "steering sensitivity" (learning rate) stays the same whether the robot is small or huge. You can tune a small model and use those exact settings for a massive one.
  3. Faster Learning: The robot learns better and faster. In tests with huge models (Mixture-of-Experts), this method reached the same performance level as the best existing methods but used half the computing power.

The Bottom Line

The paper argues that by treating the "direction" and "loudness" of the neural network's weights as two separate things that can be controlled independently, we can train AI models more efficiently, with fewer rules, and with better results. It's like realizing that to drive a car well, you need to control the steering and the gas pedal separately, rather than trying to do both with one hand.

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 →