AGG: Jacobian-Aggregated Group Gradient for Efficient GRPO Training of Diffusion Models
This paper introduces JAGG (Jacobian-Aggregated Group Gradient), a method that leverages the near-linear variation of diffusion model trajectories to approximate intermediate Jacobians and aggregate group gradients, thereby reducing the computational cost of Group Relative Policy Optimization (GRPO) training for Diffusion Transformers by approximately 2 without significant quality loss.
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 digital artist to paint better pictures. This artist isn't a human; it's a complex computer program called a "diffusion model." Think of this model as a sculptor who starts with a block of noisy, static-filled clay and slowly chips away the noise, step by step, until a perfect statue emerges. To teach this sculptor to make art that humans actually like, we use a technique called "Reinforcement Learning." It's like a game where the sculptor tries a few different chiseling moves, gets a score from a judge (a reward model), and then learns from that score to do better next time.
The problem is that this learning process is incredibly expensive. Every time the sculptor makes a tiny chip (a "step" in the process), the computer has to run a massive, energy-hungry calculation to figure out exactly how to adjust the sculptor's brain. If the statue takes 20 steps to finish, the computer has to do this heavy math 20 times for every single lesson. It's like trying to learn a new dance by stopping after every single move to ask a coach for a full critique, rewriting your entire muscle memory, and then starting over. For high-resolution images, this takes so much time and electricity that it's almost impossible to train these models effectively.
This is where a new idea called JAGG comes in. The researchers behind this paper asked a clever question: "Do we really need to stop and re-calculate everything after every single move?" They noticed that in the early, messy stages of the sculpting process, the changes happen in a very smooth, predictable way—almost like a straight line. If you know where the sculpture starts and where it ends up after a few moves, you can actually guess what happened in the middle without doing the heavy math for every single step.
The paper introduces a method called JAGG (Jacobian-Aggregated Group Gradient). Instead of stopping to calculate the lesson after every single step, JAGG lets the model take a group of steps (say, four moves in a row) and only does the heavy "brain update" math twice: once at the very beginning of the group and once at the very end. For the steps in the middle, it uses a smart shortcut. It assumes the path between the start and end is a straight line and fills in the gaps.
The researchers proved mathematically that if the sculpting process is perfectly smooth and linear, this shortcut is actually perfect—it gives the exact same answer as doing the hard work every time. In the real world, where things aren't perfectly straight, they found that this shortcut works incredibly well during the "noisy" early stages of image creation. By using this method, they were able to cut the time it takes to train these models by about 17% to 18% per step.
The best part? The quality of the images didn't suffer. When they tested JAGG on different models (like Flux and QwenImage), the pictures generated were just as good as the ones made by the slow, traditional method. In fact, in some cases, the shortcut even helped the model learn more stably. The paper shows that by being a little bit clever about when to do the heavy lifting, we can make training these powerful AI artists much faster and cheaper, without sacrificing the beauty of the final artwork.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.