JointNet: Extending Text-to-Image Diffusion for Dense Distribution Modeling

Jingyang Zhang, Shiwei Li, Yuanxun Lu, Tian Fang, David Neil McKinnon, Yanghai Tsin, Long Quan, Yao Yao

Introduction

While modern text-to-image (T2I) diffusion models like Stable Diffusion are masters of 2D aesthetics, they lack an inherent understanding of 3D structure. To unlock advanced applications like AR/VR content creation or precise 3D scene generation, models must understand the joint distribution of RGB pixels and dense labels (such as depth maps or surface normals).

Achieving this presents a two-fold challenge:

  1. Data Scarcity: High-quality labeled RGB-D (Red, Green, Blue, Depth) datasets contain only millions of pairs, a stark contrast to the billions of pairs used to train foundational T2I models.
  2. Catastrophic Forgetting: Simply fine-tuning a T2I model on a small RGB-D dataset often causes it to "forget" how to generate diverse, high-quality images, leading to a collapse in visual fidelity.

To address this, researchers introduce JointNet, a dual-branch diffusion architecture that enables pre-trained text-to-image models to learn the joint distribution of images and dense labels. By freezing the original image-generation weights and training a parallel "modality branch" with dense cross-connections, JointNet maintains high-quality image synthesis while gaining powerful 3D-aware capabilities.

Methodology: The Dual-Branch Architecture

JointNet extends a pre-trained UNet—the core of most diffusion models—into a specialized two-branch structure:

  • The RGB Branch: This is the original pre-trained model. Crucially, its weights are locked (frozen) during training to preserve its generative "knowledge" acquired from billions of images.
  • The Modality Branch: A trainable copy of the original UNet dedicated entirely to the new dense modality (e.g., depth).
  • Dense Connections: Inspired by architectures like ControlNet, intermediate features from the RGB branch are sent to the modality branch and vice-versa. These connections use "zero-initialized convolutions," ensuring that at the start of training, the model behaves exactly like the original T2I model.

This design adheres to the "output preserving principle." The model doesn't experience a sudden shock or loss of quality when training begins. Because information flows bidirectionally, JointNet can perform joint generation (creating an image and depth map simultaneously from scratch) or channel-wise inpainting (generating depth for an existing image, or vice-versa).

Training and Data

The model was trained on a filtered subset of the COYO-700M dataset, yielding roughly 65 million high-quality samples based on aesthetic scores and resolution. Because COYO lacks native depth maps, the researchers used "teacher" models—MiDaS v2 for depth and Omnidata for surface normals—to generate pseudo-ground truth labels for training.

Key Results and Capabilities

By treating depth estimation (Image $\to$ Depth) and depth-conditioned generation (Depth $\to$ Image) as the same mathematical inpainting problem, JointNet proves to be highly versatile.

JointNet capabilities including depth-conditioned generation and 3D panoramas
  • Preserved Image Quality: JointNet achieves a Fréchet Inception Distance (FID) of 14.38, slightly outperforming the base Stable Diffusion v2.1 (16.15). This confirms that adding the depth branch does not degrade the model's original image generation quality.
  • Superior Consistency: Compared to baseline methods that simply add a 4th channel to the input, JointNet produces highly coherent depth maps that align perfectly with the generated RGB objects.
  • 3D Panoramas: Using a tile-based generation strategy, JointNet can create seamless 360-degree RGB-D panoramas. It achieves top-tier content coherence while being significantly faster than competing synchronization methods.

Limitations and Future Work

While powerful, JointNet's dual-branch nature means inference time and memory usage are roughly doubled compared to a standard T2I model. Furthermore, scaling to multiple simultaneous modalities (e.g., depth + normals + semantic segmentation) would lead to a "branch explosion," making the model too heavy for standard consumer hardware.

Future work will likely explore model distillation—compressing the robust knowledge of the dual-branch JointNet back into a single, efficient multi-channel network to retain these advanced capabilities with a smaller computational footprint.

Summary updated

BibTeX
@inproceedings{zhang2024jointnet,
  author = {Jingyang Zhang and Shiwei Li and Yuanxun Lu and Tian Fang and David Neil McKinnon and Yanghai Tsin and Long Quan and Yao Yao},
  title = {{JointNet: Extending Text-to-Image Diffusion for Dense Distribution Modeling}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=kv5xE1p3jz},
}
Figure