← Latest papers
💻 computer science

Compositional Video Generation via Inference-Time Guidance

This paper proposes CVG, an inference-time guidance method that leverages a lightweight compositional classifier trained on cross-attention maps to steer the denoising process of frozen text-to-video models, thereby improving compositional faithfulness without requiring retraining, architectural changes, or user-supplied controls.

Original authors: Ariel Shaulov, Eitan Shaar, Amit Edenzon, Gal Chechik, Lior Wolf

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

Original authors: Ariel Shaulov, Eitan Shaar, Amit Edenzon, Gal Chechik, Lior Wolf

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 have a very talented, but slightly stubborn, video-making robot. You give it a script, like "A rabbit jumps on top of a turtle," and it tries its best to create the video. Usually, the result looks amazing—the rabbit and turtle look realistic, and the movement is smooth. But sometimes, the robot gets the story wrong. It might make the rabbit jump next to the turtle, or under it, even though you specifically asked for "on top of."

This happens because the robot is great at drawing pretty pictures but struggles with the fine details of how things relate to each other in space and time.

The paper introduces a clever trick called CVG (Compositional Video Guidance) to fix this without having to retrain the robot or teach it new skills from scratch. Here is how it works, using some everyday analogies:

1. The "Internal GPS" (Cross-Attention Maps)

Deep inside the video-making robot, there is a hidden layer of data called cross-attention maps. Think of these as the robot's internal "GPS" or "spotlight." Every time the robot thinks about the word "rabbit," this spotlight shines on the part of the video where the rabbit is supposed to be. When it thinks about "turtle," the spotlight moves to the turtle.

The authors realized that these spotlights already contain all the information needed to know if the rabbit is actually on top of the turtle. The robot knows the relationship; it just doesn't always follow the instructions perfectly when it's making the final video.

2. The "Smart Coach" (The Lightweight Classifier)

Instead of trying to fix the robot's brain (which would be expensive and slow), the authors built a Smart Coach.

  • How it learns: They showed the coach thousands of videos and their "spotlight" maps. The coach learned to look at the spotlights and say, "Ah, I see the rabbit's spotlight is above the turtle's spotlight. That means the video matches the script 'rabbit on top of turtle'."
  • The Secret Sauce: The coach is built on top of a pre-trained "Vision-Language Model" (a super-smart AI that already understands how the world works). This means the coach doesn't just memorize specific phrases; it understands the concept of "above," "behind," or "moving left," even if it hasn't seen that exact sentence before.

3. The "Steering Wheel" (Inference-Time Guidance)

Now, here is the magic part. When you ask the robot to make a new video, the Smart Coach sits in the passenger seat.

  • As the robot starts drawing the video (a process called "denoising," which is like sculpting a statue out of fog), the Coach watches the robot's internal spotlights.
  • If the robot starts to drift and put the rabbit next to the turtle instead of on top, the Coach gently nudges the robot back on track.
  • It does this by calculating a tiny "correction" (a gradient) and pushing the video's hidden data in the right direction.

Crucially, this only happens at the very beginning of the video creation. Think of it like steering a car: you need to steer hard when you are just starting to move to get on the right road. Once the car is moving (the video structure is set), you don't want to keep jerking the wheel, or you'll ruin the smooth ride. The authors found that steering only during the first few steps fixes the relationship without ruining the visual quality.

4. The "Dual Inversion" Trick (Preventing Cheating)

There was a risk the Coach might cheat. It might look at the text prompt inside the robot's mind and just guess, "Oh, the word 'behind' is in the text, so I'll say the video is 'behind'." That wouldn't be learning; that would be cheating.

To stop this, the authors used a trick called Dual Inversion. They took a real video and asked the robot to recreate it twice:

  1. Once with the correct description (e.g., "rabbit behind turtle").
  2. Once with a wrong description (e.g., "rabbit in front of turtle").

They then taught the Coach to look at the visual spotlights of both attempts and realize: "Even though the text said 'in front,' the spotlights clearly show the rabbit is behind." This forced the Coach to learn from the actual visual movement, not just the text.

The Results

When they tested this on popular video generators (like Wan2.2 and CogVideoX):

  • Better Stories: The videos followed the instructions much better. If you asked for a crab crawling from under a log, the robot actually did it, instead of putting the crab on top.
  • No Quality Loss: The videos still looked just as beautiful and realistic as before. The Coach didn't mess up the art; it just fixed the story.
  • No Re-training: They didn't have to spend months teaching the robot new things. They just added this "Coach" that guides it while it works.

In short, CVG is like giving a talented but occasionally confused artist a helpful guide who whispers, "Hey, remember, the rabbit needs to be on top," right as the artist starts sketching, ensuring the final masterpiece tells the right story.

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 →