← Latest papers
💻 computer science

Bernini: Latent Semantic Planning for Video Diffusion

Bernini is a unified video generation and editing framework that leverages a division of labor where an MLLM-based planner performs semantic reasoning in ViT embedding space to guide a DiT-based renderer, achieving state-of-the-art performance through efficient, separate training and novel components like Segment-Aware 3D Rotary Positional Embedding.

Original authors: Bernini Team, Chenchen Liu, Junyi Chen, Lei Li, Lu Chi, Mingzhen Sun, Zhuoying Li, Yi Fu, Ruoyu Guo, Yiheng Wu, Ge Bai, Zehuan Yuan

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

Original authors: Bernini Team, Chenchen Liu, Junyi Chen, Lei Li, Lu Chi, Mingzhen Sun, Zhuoying Li, Yi Fu, Ruoyu Guo, Yiheng Wu, Ge Bai, Zehuan Yuan

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 Idea: The Architect and the Builder

Imagine you want to build a custom house. You have two experts:

  1. The Architect (The MLLM): This person is brilliant at understanding your vague ideas, reading complex blueprints, and figuring out what the house should look like. They are great at reasoning but terrible at actually laying bricks.
  2. The Builder (The Diffusion Model): This person is a master craftsman. They can lay bricks, paint walls, and install windows with photorealistic perfection. However, if you just say "make it nice," they might build a castle when you wanted a cottage. They need very specific instructions.

Bernini is a system that unites these two experts. Instead of trying to force the Architect to lay bricks or the Builder to do complex reasoning, Bernini gives them a specialized language to talk to each other.

How It Works: The "Secret Blueprint"

In the past, trying to combine these two types of AI was messy. Bernini solves this by creating a "division of labor":

  1. The Planning Phase (The Architect):
    When you give Bernini a command (like "Change the weather to a stormy night and make the dog happy"), the MLLM Planner doesn't try to draw the video. Instead, it acts like an architect sketching a high-level blueprint.

    • The Secret Sauce: This blueprint isn't a picture or a sentence. It's a set of mathematical codes (called "ViT embeddings") that represent the meaning of the scene. It's like the Architect handing the Builder a list of coordinates and emotional tones rather than a drawing.
  2. The Rendering Phase (The Builder):
    The DiT Renderer (the Builder) receives this blueprint. It also looks at the original video (if you are editing) to keep the background consistent. Using the blueprint as a guide, it generates the actual pixels, frame by frame, creating a photorealistic video.

Why is this cool? Because the Architect and Builder can be trained separately. The Architect keeps getting smarter at understanding human language, and the Builder keeps getting better at making pretty pictures. They only need to learn how to read each other's "secret blueprint" language, which is much easier than retraining the whole system from scratch.

The New Tools: "Name Tags" and "Thinking Steps"

To make this work perfectly, the researchers added two clever tricks:

  • The "Name Tag" System (SA-3D RoPE):
    Imagine you are in a crowded room where everyone is wearing the same outfit. If you shout "Look at the person in the red hat," it's confusing if there are three people in red hats.
    In video editing, the AI often has to look at the original video, a reference image, and the new video all at once. Sometimes, a pixel in the original video is in the exact same spot as a pixel in the new video.
    Bernini gives every piece of the puzzle a "Name Tag" (a segment index). This tells the AI, "This red hat belongs to the original video, and that red hat belongs to the new video." This prevents the AI from getting confused and mixing up the source with the result.

  • The "Thinking Aloud" Step (Chain-of-Thought):
    Sometimes, a simple command isn't enough. If you say "Make it look like a cartoon," the AI might just change the colors.
    Bernini's planner is taught to think out loud before it draws the blueprint. It breaks the task down: "First, I need to understand the lighting. Second, I need to change the texture of the skin. Third, I need to adjust the motion." This step-by-step reasoning helps the AI handle complex tasks, like changing the weather so that a fire in the video naturally goes out (causal reasoning).

What Can It Do?

The paper shows Bernini is a "Swiss Army Knife" for video. It can:

  • Text-to-Video: Create a video from scratch based on a description.
  • Video-to-Video Editing: Change the style, add or remove objects, or change the weather in an existing video.
  • Reference-Guided Editing: "Make the person in this video look like the person in this photo."
  • Motion Transfer: "Make the person in this photo dance like the person in this video."

The Results: Winning the Race

The researchers tested Bernini against other top-tier video AI models (like Kling, Wan, and others) on a new benchmark they created called Bernini-Bench.

  • The Score: Bernini won the "Video Editing Leaderboard," beating the competition in consistency and following instructions.
  • The Key Win: It was particularly good at keeping the video consistent. When you edit one part of a video, the rest of the video doesn't warp or glitch. It stays true to the original scene while changing only what you asked for.

Summary

Bernini is like hiring a genius architect to write a perfect set of instructions for a master builder. By letting them speak a specialized "blueprint language" and giving them tools to keep track of which part of the video is which, Bernini creates videos that are not only beautiful but also smart enough to understand complex, logical changes.

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 →