← Latest papers
🤖 machine learning

Accelerating Inference of Discrete Autoregressive Normalizing Flows by Selective Jacobi Decoding

This paper proposes a selective Jacobi decoding strategy that accelerates the inference of discrete autoregressive normalizing flows by leveraging observed dependency redundancy to enable parallel iterative optimization, achieving up to 4.7 times faster generation without compromising quality.

Original authors: Jiaru Zhang, Juanwu Lu, Xiaoyu Wu, Ziran Wang, Ruqi Zhang

Published 2026-05-06
📖 5 min read🧠 Deep dive

Original authors: Jiaru Zhang, Juanwu Lu, Xiaoyu Wu, Ziran Wang, Ruqi Zhang

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

The Big Picture: The "Slow Writer" Problem

Imagine you have a very talented AI artist (a Discrete Autoregressive Normalizing Flow) that can create beautiful pictures from scratch. This artist is famous for two things:

  1. Precision: It can calculate exactly how likely a specific image is to exist (a mathematical superpower).
  2. Quality: The pictures it makes are sharp and realistic.

However, this artist has a major flaw: they are incredibly slow.

Why? Because this artist works like a strict, old-fashioned writer. To write a sentence, they must write the first word, then the second word, then the third, and so on. They cannot write the second word until the first is finished. They cannot write the third until the second is done.

In the world of AI, this is called sequential inference. If you want to generate an image with 1,000 "words" (pixels or patches), the AI has to do 1,000 steps one after another. It's like waiting for a snail to cross a highway. This slowness makes it hard to use the AI in real-time applications.

The Discovery: "Do We Really Need to Wait?"

The researchers (Zhang, Lu, et al.) asked a simple question: "Does the artist really need to wait for the previous word to be perfectly finished before guessing the next one?"

They found that the answer is no.

  • The Analogy: Imagine you are reading a mystery novel. If you miss the very first sentence, you might be confused. But if you miss the 50th sentence, you can probably guess what happens next based on the general vibe of the story. The story has "redundancy." You don't need 100% perfect information from the past to predict the future; a good guess is often enough.

The researchers discovered that in these AI models, the "dependency" on previous steps is often weaker than we thought, especially as the AI gets deeper into the generation process.

The Solution: The "Group Guessing" Strategy (Jacobi Decoding)

To speed things up, the researchers introduced a technique called Jacobi Decoding.

  • The Old Way (Sequential): One person writes a sentence. Then they pass the pen to the next person. Then the next. It takes a long time.
  • The New Way (Jacobi): Imagine a team of 10 people sitting in a circle. Instead of passing the pen, they all write their part of the sentence at the same time, based on what they think the others wrote in the previous round.
    • Round 1: Everyone guesses their word based on a rough draft.
    • Round 2: They look at everyone's guesses from Round 1, refine their own word, and write again.
    • Round 3: They refine again.

Because they are all working at the same time (parallel processing), this is much faster. Usually, after just a few rounds of "guessing and refining," everyone is writing the exact same sentence the slow, single writer would have produced.

The Twist: "Selective" Decoding

The researchers realized that you can't just use this "Group Guessing" method for everything.

  • The First Step is Critical: The very first part of the image (the seed) is like the foundation of a house. If you guess the foundation wrong, the whole house collapses. The first step needs to be done carefully and sequentially.
  • The Rest is Flexible: Once the foundation is set, the walls and roof can be built using the "Group Guessing" method because the structure is already there to support them.

So, they created a Selective strategy:

  1. Step 1: Do it the slow, careful, sequential way (to get the foundation right).
  2. Steps 2 to End: Switch to the fast, parallel "Group Guessing" method.

The Results: Speed Without Sacrificing Quality

The paper tested this on several datasets (CIFAR-10, CIFAR-100, and AFHQ, which are collections of images).

  • Speed: The new method was up to 4.7 times faster than the old slow method. On some tasks, it was even faster.
  • Quality: The pictures looked almost identical to the ones made by the slow method. The "Group Guessing" was so good that the human eye couldn't tell the difference.
  • Math Proof: The authors didn't just guess; they proved mathematically that this method will always converge (finish correctly) and that it does so very quickly (superlinear convergence).

Summary Analogy

Think of the AI model as a relay race.

  • The Old Way: The runners pass the baton one by one. Runner 1 runs, passes to Runner 2, who runs, passes to Runner 3. It takes a long time.
  • The Paper's Way: The researchers realized that for most of the race, the runners don't need the baton to be perfectly in hand to start sprinting. They can all start running at the same time, adjusting their speed as they see where the others are.
  • The Catch: The first runner still needs to start perfectly (the "Selective" part). But once the race is underway, everyone runs in parallel, finishing the race in a fraction of the time.

In short: The paper found a way to make a very smart but slow AI artist work much faster by letting it "guess and refine" multiple parts of an image simultaneously, without ruining the final picture.

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 →