← Latest papers
💻 computer science

UniGP: Taming Diffusion Transformer for Prior-Preserved Unified Generation and Perception

UniGP is a unified framework built on MMDiT that jointly learns controllable image generation and dense prediction through a simple training strategy, effectively capturing image-geometry distributions to achieve performance comparable to specialized methods while enhancing both generative and perceptual capabilities.

Original authors: Qin Guo, Hao Luo, Dongxu Yue, Weixuan Jin, Xiao Fu, Fan Wang, Dan Xu

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

Original authors: Qin Guo, Hao Luo, Dongxu Yue, Weixuan Jin, Xiao Fu, Fan Wang, Dan Xu

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 super-talented artist who is amazing at two very different jobs: painting beautiful pictures from a description (Generation) and measuring the exact shape and distance of objects in a photo (Perception).

Usually, if you hire an artist to paint, they might get bad at measuring. If you hire a surveyor to measure, they might forget how to paint. Most AI models today are like this: they are either great painters or great surveyors, but rarely both.

UNIGP is a new framework that teaches one single AI model to be a master of both painting and measuring at the same time, without losing its original talent.

Here is how it works, broken down into simple concepts:

1. The Problem: The "Two-Headed" Dilemma

  • The Painter (Generation): These models create images from text (e.g., "A castle on an island"). They are creative but often don't understand the exact 3D shape of the castle.
  • The Surveyor (Perception): These models look at a photo and tell you how deep or flat things are. They are precise but often produce boring, flat-looking images if you try to use them to create art.
  • The Old Way: Previous attempts to combine them were like trying to force a painter and a surveyor to share one brain. It either made the model too heavy and slow, or it made the painter forget how to be creative.

2. The Solution: The "Ghost Branch" (DUGP)

The authors of UNIGP used a clever trick based on Occam's Razor (the idea that the simplest solution is usually the best).

  • The Main Brain (The Backbone): They started with a powerful, pre-trained "Painter" AI (called MMDiT). This brain is already excellent at understanding how to make images.
  • The Ghost Branch: Instead of building a whole new brain for the "Surveyor" job, they simply copied the Painter's image-handling part and gave it a new name: DUGP.
  • How it works:
    • The Main Brain keeps doing what it does best: creating the colorful, artistic image. It stays "frozen" (untouched) so it doesn't forget its artistic skills.
    • The Ghost Branch (DUGP) acts like a specialized assistant. It looks at the same information but focuses only on the "shape" details (Depth and Surface Normals).
    • The Magic: The two parts talk to each other. The Painter tells the Ghost Branch, "Here is the scene," and the Ghost Branch tells the Painter, "Make sure the castle wall is actually 3D and not flat."

3. The Training: The "Mixed Salad" Strategy

Usually, you train a painter with art books and a surveyor with blueprints. UNIGP mixes them all into one giant salad.

  • The Strategy: They feed the model a random mix of data. Sometimes it gets a text prompt to paint a picture. Sometimes it gets a photo and has to guess the depth.
  • The Switch: The model has a simple "light switch" (a binary loss weight).
    • If the data is for painting, the switch turns on the "Painting Loss" and turns off the "Measuring Loss."
    • If the data is for measuring, the switch turns on the "Measuring Loss" and turns off the "Painting Loss."
  • The Result: The model learns to be a painter and a surveyor simultaneously, without getting confused.

4. The Superpowers (What it can do)

Because this model understands both the art and the geometry of the world, it can do three cool things in one go:

  1. Paint with Rules: You can give it a sketch or a depth map (a rough outline of shapes), and it will paint a beautiful image that perfectly fits those shapes.
  2. Measure with Detail: You can give it a photo, and it will output a 3D depth map and surface angles that are incredibly detailed, thanks to the "artistic" knowledge it learned.
  3. Create from Nothing: You can just give it a text prompt (e.g., "A girl in a suit"), and it will generate the image, the depth map, and the surface angles all at the same time, perfectly aligned.

5. Why It's Better (The "Complementary" Effect)

The paper found a beautiful synergy between the two tasks:

  • Art helps Math: The "Painter" side helps the "Surveyor" side see tiny details (like the texture of a brick wall) that a standard surveyor might smooth over.
  • Math helps Art: The "Surveyor" side forces the "Painter" to be structurally correct. The castle doesn't just look like a castle; it is a castle with correct 3D proportions.

Summary

Think of UNIGP as a Swiss Army Knife for AI vision. Instead of carrying a separate knife, screwdriver, and scissors, you have one tool that does all three perfectly. It achieves this by keeping the main "artist" brain safe and untouched, while adding a lightweight "assistant" branch to handle the geometry, all trained on a mixed diet of art and science.

The Trade-off: The paper admits this makes the model slightly bigger and a bit slower to run than the original artist, but the authors argue that getting one model to do the work of three specialized models is a fair price to pay.

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 →