TL;DR
Diff-2-in-1 is a novel framework that transforms diffusion models from specialized "artists" into versatile systems capable of both high-fidelity image generation and dense visual perception (like depth estimation and segmentation). By using a self-improving loop where the model generates its own synthetic training data and refines it through feedback, it achieves state-of-the-art performance in perception tasks even with limited real-world data.
What Problem Does This Paper Address?
Diffusion models have taken the world by storm with their ability to generate stunning images. Naturally, researchers began wondering: If these models understand images well enough to create them, can they also "perceive" them?
Until now, most attempts to use diffusion models for perception tasks (like identifying object boundaries or estimating surface angles) have treated them as isolated components. They were either used as "black-box" feature extractors or as offline data generators to augment training sets. These approaches are sub-optimal because they ignore the inherent synergy between the generative process (creating data) and the discriminative process (understanding data). Furthermore, synthetic data often suffers from a "domain gap"—it looks different enough from real data that it can actually confuse a model during training.
Methods
The authors introduce Diff-2-in-1, an integrated framework that handles multi-modal generation and dense perception simultaneously. The core of the method is a self-improving learning mechanism that uses two sets of interplaying parameters:
- Data Creation Network ($\theta_C$): This part of the model acts as the "creator." Instead of generating images from pure noise (which leads to the domain gap mentioned above), it uses a "partial noise" strategy. It adds a controlled amount of noise to real images and then denoises them to create new, diverse versions that still mirror the original data distribution.
- Data Exploitation Network ($\theta_E$): This is the "student" or "perceiver." It learns to perform tasks (like surface normal estimation) using a mix of real data and the synthetic data produced by $\theta_C$.
The "Aha!" Moment: The Feedback Loop The framework doesn't just train these two in parallel. It uses an Exponential Moving Average (EMA) update where the weights of the "student" ($\theta_E$) are used to progressively update the "creator" ($\theta_C$). As the model gets better at perceiving the world, it provides better "guidance" for generating more faithful synthetic data, creating a virtuous cycle of self-improvement.
Datasets
The researchers evaluated Diff-2-in-1 across several standard benchmarks for dense visual perception:
- NYUv2: Used primarily for surface normal estimation.
- ADE20K: A challenging dataset for semantic segmentation.
- NYUD-MT & PASCAL-Context: Used for multi-task learning, covering semantic segmentation, depth estimation, human parsing, and saliency detection.
- Tiny-Taskonomy: Used to test the model's ability to generalize to tasks beyond dense pixel prediction, such as scene categorization.
Key Insights and Ideas
- Denoising as a Bridge: The authors argue that the diffusion-denoising process is the natural link between generation and perception. Denoising requires the model to understand the underlying structure of an image, which is exactly what perception tasks require.
- In-Distribution Generation: By adding partial noise to real samples rather than starting from pure Gaussian noise, the model generates "useful" data that is diverse enough to help training but faithful enough to avoid the domain gap.
- Data Efficiency: One of the most striking insights is how well this works with small datasets. On NYUv2, Diff-2-in-1 outperformed models trained on over 30,000 samples while using only 795 real training images.
- Generative Feedback: Unlike standard data augmentation, where the generator is static, the generative capacity here evolves. As the perception head learns what a "good" surface normal looks like, the generator starts producing more accurate synthetic pairs.
Key Results
- Surface Normal Estimation: On the NYUv2 dataset, Diff-2-in-1 significantly boosted the performance of state-of-the-art backbones like iDisc. For instance, it reduced the Mean Angle Error from 17.8 to 12.7—a massive leap in precision.
- Semantic Segmentation: It achieved a new state-of-the-art mIoU of 54.5 on the ADE20K dataset when built on top of the VPD framework.
- Multi-Task Superiority: In multi-task settings (NYUD-MT), the model consistently outperformed specialized baselines across all metrics (Segmentation, Depth, and Normals).
- Synthetic vs. Real: The authors showed that their synthetic data is so high-quality that it performs almost identically to using additional real, unlabeled video frames for training.
Limitations and Future Work
While powerful, the authors acknowledge a few hurdles:
- Computational Speed: Diffusion models are notoriously slow because they require multiple "steps" to denoise an image. Generating data on-the-fly during training is computationally expensive.
- Freezing the U-Net: In most experiments, the core denoising U-Net was kept frozen to save on computation. While unfreezing it yields even better results, it increases the training burden significantly.
- Expanding the Horizon: The current work focuses on "dense" tasks (pixel-level). Future work could explore extending this 2-in-1 logic to "sparse" tasks like 3D object detection or more complex video-based perception.
In summary, Diff-2-in-1 proves that a model doesn't have to choose between being a creator and a perceiver—by doing both, it actually becomes better at each.
Summary updated