DICEPTION: A Generalist Diffusion Model for Visual Perceptual Tasks

Canyu Zhao, Yanlong Sun, Mingyu Liu, Huanyi Zheng, Muzhi Zhu, Zhiyue Zhao, Hao Chen, Tong He, Chunhua Shen

In the world of Natural Language Processing, we’ve grown used to "one model to rule them all." A single Large Language Model can summarize text, write code, and roleplay a pirate. Computer vision, however, has remained a land of specialists. We have one model for depth, another for segmentation, and a third for pose estimation. Training a "generalist" vision model usually requires massive datasets and astronomical compute.

A new paper from researchers at Zhejiang University and Tsinghua University, titled DICEPTION, suggests we’ve been overthinking it. Instead of training a generalist from scratch, why not repurpose the incredible "priors" already baked into text-to-image diffusion models?

TL;DR

DICEPTION is a multi-task visual perception model built on a pre-trained Stable Diffusion 3 backbone. It achieves performance comparable to state-of-the-art specialists (like SAM) across six diverse tasks while using a fraction of the data—specifically, matching SAM’s performance with just 0.06% of its training images.

DICEPTION Task Overview

What Problem Does This Paper Address?

The "holy grail" of computer vision is a unified foundation model. However, two major hurdles stand in the way:

  1. Visual Disparity: Unlike text, where most tasks look like "next token prediction," vision tasks have wildly different outputs (e.g., a 1D depth map vs. a 2D segmentation mask).
  2. Data & Compute Hunger: Training a model to understand everything from scratch requires billions of annotated images, which are expensive and difficult to collect.

The authors argue that generative diffusion models (like those used to create AI art) already "understand" the 3D structure and semantics of the world. DICEPTION aims to unlock this latent knowledge for perception tasks without breaking the model's original intelligence.

Methods

DICEPTION doesn't reinvent the wheel; it re-aligns it.

DICEPTION Architecture Pipeline
  • Backbone: It uses the Stable Diffusion 3 (SD3) architecture, specifically the Diffusion Transformer (DiT).
  • Unifying the Output: To handle different tasks, the authors map everything into RGB space. Depth maps and segmentation masks are simply treated as three-channel images. For instance, entity segmentation is handled by assigning random colors to different objects.
  • Token-wise Concatenation: Instead of modifying the model's internal layers, they concatenate the input image, the noisy latent, task prompts (e.g., "image to depth"), and point embeddings (for interactive clicks) along the token dimension. This preserves the pre-trained weights' integrity.
  • Flow Matching: The model uses a flow-matching loss, which essentially teaches the model to "push" noise toward the correct perceptual result in a straight line. This allows for incredibly fast inference—sometimes in as little as a single step.

Datasets

The authors used a mix of standard and synthetic datasets to cover six core tasks:

  • Depth & Normal: 500k images from OpenImages, annotated using specialized SOTA models (DepthPro/StableNormal).
  • Interactive Segmentation: 400k images from SA-1B and 200k synthetic images for fine-grained details (like hair).
  • Pose & Semantic Seg: Data from MS COCO and COCO-Rem.
  • Entity Segmentation: EntityV2.
  • Few-shot Adaptation: To test how fast the model learns new things, they used tiny 50-image slices of Chest X-Ray, LOL-v2 (low light), and Brain Tumor datasets.

Key Insights and Ideas

  • DiT > U-Net: The researchers found that Transformer-based diffusion (DiT) is far superior to the traditional U-Net for perception. U-Net’s downsampling layers lose fine spatial details, whereas DiT maintains high-resolution information throughout.
  • The Power of Priors: The "aha moment" is that you don't need a billion images if your model already knows what a "cat" or a "tree" looks like. By keeping the pre-trained weights mostly frozen and using simple prompts, the model "repurposes" its generative knowledge for measurement.
  • Flow Matching for Speed: Unlike standard diffusion which requires 50+ steps to look good, flow matching in perception tasks is robust. Because perception is "pixel-aligned" (the output looks like the input), the denoising trajectory is simpler, allowing for 1-step to 3-step inference with minimal quality loss.
  • Classifier-Free Guidance (CFG): While CFG is vital for making AI art look "pretty," the authors found it only significantly helps continuous tasks like depth and normal estimation. For discrete tasks like segmentation, a high CFG can actually introduce artifacts.

Key Results

  • Data Efficiency: DICEPTION achieved results on par with SAM-vit-h (Segment Anything Model) using only 600K images, compared to SAM’s 1 Billion. That is a 1600x improvement in data efficiency.
  • Zero-Shot Depth: On the KITTI and NYUv2 benchmarks, DICEPTION performed competitively with specialized depth models like MiDaS and DepthPro.
  • Extreme Adaptability: Using LoRA (Low-Rank Adaptation), the model could be trained on a new task (like lung segmentation in X-rays) using just 50 images and tuning less than 1% of its parameters.

Limitations and Future Work

Despite its efficiency, DICEPTION has a few hurdles:

  • Inference Latency: Even with few-step denoising, diffusion models are inherently slower than "one-and-done" feed-forward networks. It takes about 0.8s to 2s per image depending on the GPU.
  • Post-Processing: Because the model outputs RGB masks, it requires a clustering step (like KMeans) to separate individual objects. This can introduce errors, especially with very small objects or crowded scenes.
  • Human-Centric Bias: The current version is primarily optimized for human instances in segmentation and pose tasks.

The authors suggest that future work will focus on scaling to even larger datasets and further reducing inference time to make diffusion-based perception viable for real-time applications.

Summary updated

BibTeX
@inproceedings{zhao2025diception,
  author = {Canyu Zhao and Yanlong Sun and Mingyu Liu and Huanyi Zheng and Muzhi Zhu and Zhiyue Zhao and Hao Chen and Tong He and Chunhua Shen},
  title = {{DICEPTION: A Generalist Diffusion Model for Visual Perceptual Tasks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=hQhAPGCtPo},
}
Figure