NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

OminiControl2: Efficient Conditioning for Diffusion Transformers

Zhenxiong Tan, Qiaochu Xue, Xingyi Yang, Songhua Liu, Xinchao Wang

TL;DR

OminiControl2 introduces an ultra-efficient framework for adding fine-grained image conditioning (such as depth maps, edges, or inpainting masks) to Diffusion Transformers (DiTs). By combining spatial token compression with a novel asymmetric attention caching mechanism, it slashes conditional processing overhead by over 90% and delivers up to a 5.9× overall speedup in multi-conditional generation without sacrificing image quality.

What Problem Does This Paper Address?

Controlling text-to-image models with additional spatial guidance (e.g., Canny edges or depth maps) is well-studied for UNet architectures via frameworks like ControlNet. However, adapting these control mechanisms to state-of-the-art Diffusion Transformers (DiTs, like FLUX.1) introduces severe computational challenges.

Prior native DiT control frameworks, such as the original OminiControl, handle image conditions by flattening and concatenating them directly into the main token sequence. Because self-attention scales quadratically with sequence length, adding multiple conditions or high-resolution inputs causes the token count to skyrocket. This creates a massive computational bottleneck, making real-time, multi-conditional generation prohibitively expensive.

Methods

OminiControl2 solves the sequence-length bottleneck through two primary innovations:

  1. Compact Token Representation: Instead of feeding full-resolution condition tokens into the transformer, the authors implement a spatial compression strategy that reduces the token count by a factor of $a^2:1$. To prevent structural misalignment between the compressed condition space and the target image space, they introduce a position correcting function to map compressed tokens back to their proper spatial regions (see Figure 1). Additionally, they use token pruning to discard non-informative tokens (e.g., blank areas in an edge map) and a token integration technique for inpainting that merges condition and noisy tokens rather than doubling the sequence length (see Figure 2).
Figure 1. Illustration of the compression and position correcting of compact token representation for condition images.
Figure 2. Illustration of token integration processing for inpaint- ing. By combining noisy and condition tokens based on the mask, we reduce token count from 2N to N.
  1. Conditional Feature Reuse via Asymmetric Masking: The authors observed that condition features remain highly static across denoising steps (Figure 3). However, a naive feature cache fails because standard multi-modal attention allows the changing noisy image tokens to dynamically alter the condition tokens at each step. To fix this training-inference discrepancy, they introduce asymmetric attention masking: noisy image tokens can attend to condition tokens, but condition tokens are strictly blocked from attending to noisy image tokens (see Figure 5). This decouples the condition features from the evolving denoising state, allowing them to be computed exactly once during the first step and cached for all subsequent steps.
Feature similarity across denoising steps

Datasets

  • Training: The model was fine-tuned using LoRA on the Text-to-Image-2M dataset.
  • Evaluation: Performance was benchmarked using 5,000 images from the COCO 2017 validation set (resized to $512\times512$) across four distinct tasks: Canny-to-image, depth-to-image, mask inpainting, and image deblurring.

Key Insights and Ideas

  • The Asymmetry of Denoising: While the noisy image tokens change drastically at every step of the diffusion process, the underlying conditioning signal (e.g., a depth map) is completely static. Recalculating its features at every step is pure redundant waste.
  • Why Naive Caching Fails: In bidirectional attention layers (like FLUX's MM-Attention), information flows both ways. Even if the input condition is static, the changing image tokens "pollute" the condition tokens over time. Breaking this bidirectional flow via asymmetric masking is the secret to successful caching.
  • Token-Independent Bottlenecks: Complexity analysis revealed that for typical use cases (1-4 conditions), token-independent operations (like MLPs and projections) actually dominate the overhead rather than the quadratic attention itself (Figure 6). This highlights why reducing the absolute token count via compression and pruning yields such massive practical speedups.
Computational time breakdown

Key Results

  • Massive Speedups: OminiControl2 achieves a 3.8× to 5.9× overall inference speedup compared to the original OminiControl framework, with the highest efficiency gains observed at higher resolutions ($1024\times1024$) and multi-condition settings.
  • Overhead Reduction: The framework reduces conditional processing overhead by over 90% across the board, and up to 96.2% in multi-condition tasks (dropping from 24.38 seconds down to just 0.93 seconds).
  • Quality Preservation: Unlike alternative acceleration methods like token-merging or naive caching—which introduce severe visual artifacts—OminiControl2 maintains high visual fidelity, achieving competitive FID, CLIP, and MUSIQ scores while preserving parameter efficiency (requiring only 14.5M additional parameters).

Limitations and Future Work

  • Training Dependency: The asymmetric attention mask must be incorporated during model training or fine-tuning. As a result, it cannot be applied as a purely plug-and-play, post-hoc acceleration technique to existing, pre-trained vanilla DiT control models without some fine-tuning.
  • Future Directions: The authors suggest that extending this efficient conditioning framework to video diffusion transformers is a promising next step, as video generation suffers from even longer token sequences and more severe computational bottlenecks.

Summary updated

BibTeX
@inproceedings{tan2026ominicontrol,
  author = {Zhenxiong Tan and Qiaochu Xue and Xingyi Yang and Songhua Liu and Xinchao Wang},
  title = {{OminiControl2: Efficient Conditioning for Diffusion Transformers}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=wmlnPxhln6},
}
Figure