PixelDense: Dense Prediction as Representation Alignment for Pixel Diffusion

Lehan Yang, Daiqing Qi, Wenhao Zhang, Avery Li, Yiqing Yang, Yifan Li, Yu Kong, Haitian Zheng, Zhifei Zhang, Zhe Lin, Varun Jampani, Sheng Li

TL;DR

PixelDense is a novel training framework that significantly improves pixel-space diffusion models by aligning their internal representations with "dense" perception teachers like depth and segmentation models. By factoring these teachers into separate semantic and geometric streams and enforcing subspace orthogonality, the authors overcome "gradient interference," leading to faster training and superior compositional fidelity without any added cost at inference time.

What Problem Does This Paper Address?

Training large-scale diffusion transformers (DiTs) is computationally expensive. A popular acceleration technique called REpresentation Alignment (REPA) involves forcing the denoiser’s internal features to match those of a frozen "teacher" model (typically semantic encoders like DINOv2 or CLIP).

However, the authors identify two major gaps in current REPA research:

  1. Spatial Neglect: While global semantics are helpful, recent evidence suggests that spatial structure is the primary driver of the alignment effect. Dense-prediction models (which predict depth, surface normals, or boundaries) seem like ideal teachers, yet they have been largely overlooked.
  2. Gradient Interference: Simply "throwing more teachers at the problem" by summing their losses doesn't work. Semantic teachers (which value viewpoint invariance) and geometric teachers (which value precise metric layout) provide conflicting signals. When these signals compete for the same neural "real estate" within the denoiser, performance actually degrades—a phenomenon the authors call negative transfer.

Methods

The core of the paper is the PixelDense framework, which introduces a structured approach to multi-teacher alignment:

  • Factored Streams: Instead of a single projection head, PixelDense routes denoiser features into two parallel streams:
  • Semantic Stream: Aligns with DINOv2 (object identity) and SAM2 (segmentation boundaries).
  • Geometric Stream: Aligns with Depth Anything v2 (monocular depth) and Metric3D v2 (surface normals).
  • Weight-Space Orthogonality: To prevent the two streams from collapsing into the same feature space, the authors add an orthogonality penalty ($L_{orth}$) on the input projections. This forces the denoiser to allocate disjoint subspaces for semantic and geometric information.
  • Training-Time Only: All four teachers and the projection streams are frozen during training and completely discarded at inference. The final deployed model remains a standard, efficient RGB generator.
Figure 2: PixelDense factors dense-prediction supervision into a semantic stream and a geomet- ric stream. The pixel diffusion denoiser fθ takes the noisy image xt and a Qwen3 text embedding y, and reads its block-8 token state into two parallel projections, a Ds = 768 semantic projection Wsem aligned to frozen DINOv2 and SAM2 features, and a Dg = 1024 geometric projection Wgeo aligned to frozen Depth Anything v2 and Metric3D v2 features. A weight-space orthogonality penalty Lorth on the rows of Wsem and Wgeo keeps the two streams from collapsing into a shared subspace of the denoiser feature. Only the denoiser, the projections, and the per-teacher heads receive gradients. The four dense teachers are frozen during training and dropped at inference, so the deployed model is the original three-channel RGB generator with its original sampler.

Datasets

The authors validated PixelDense across several rigorous benchmarks:

  • Training: Fine-tuned on the BLIP3-o-60K dataset.
  • Text-to-Image Quality: Evaluated using GenEval (for compositional fidelity like object counts and spatial relations), DPG-Bench, and HPS v2.1 (human preference).
  • Geometry Preservation: Tested via partial-noise reconstruction on COCO 2017 val and Flickr30K.
  • Image Editing: Evaluated on PIE-Bench using the SDEdit method to measure how well the model preserves background layout during edits.

Key Insights and Ideas

  • Dense Teachers are Better: The authors found that geometric teachers (Depth Anything, Metric3D) actually outperform the standard DINOv2-only baseline when used individually. This confirms that spatial structure is the "active ingredient" in representation alignment.
  • Routing is Essential: The "aha moment" is that multi-teacher alignment is a representation-routing problem. Without the factored streams and orthogonality constraint, the model suffers from "gradient interference," where different teachers wash out each other's fine-grained details.
  • Faster Convergence: By providing clearer, structured supervision, PixelDense allows models to reach the baseline's peak performance 1.23x faster when training from scratch.
Figure 4: PixelDense converges faster on GenEval from random initialization.

Key Results

  • State-of-the-Art Composition: On the PixelGen-XXL backbone, PixelDense raised the GenEval Overall score from 0.7927 to 0.8093, outperforming all single-teacher and unfactored multi-teacher variants.
  • Structural Fidelity: In reconstruction tasks, PixelDense showed up to a 53.1% gain in Panoptic Quality (PQ) and a 36.0% reduction in depth error (AbsRel) compared to the baseline.
  • Better Editing: When used for image editing (SDEdit), PixelDense preserved source backgrounds more faithfully, improving background PSNR by up to 2.2 dB.
  • Qualitative Excellence: As seen in Figure 1, the model generates samples with high compositional fidelity, correctly handling complex prompts involving specific object counts and spatial relations.
Figure 1: Qualitative text-to-image results of PixelDense. PixelDense generates diverse 512 × 512 samples with strong compositional fidelity, including object count, attribute binding, spatial relations, and geometry-aware scene layout.

Limitations and Future Work

  • Single-Block Tap: Currently, alignment is only applied to a single mid-network block (block 8). The authors suggest that multi-scale or multi-block alignment could yield even further gains.
  • Teacher Biases: Since the model learns from frozen teachers, it may inherit any inherent biases present in those perception models.
  • Editing Scope: The study focused on SDEdit; exploring how PixelDense interacts with other editing techniques like inversion-based or instruction-based editing remains a task for future research.

Summary updated

BibTeX
@inproceedings{yang2026pixeldense,
  author = {Lehan Yang and Daiqing Qi and Wenhao Zhang and Avery Li and Yiqing Yang and Yifan Li and Yu Kong and Haitian Zheng and Zhifei Zhang and Zhe Lin and Varun Jampani and Sheng Li},
  title = {{PixelDense: Dense Prediction as Representation Alignment for Pixel Diffusion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=I1UN3yU3WX},
}
Figure