RelaCtrl: Relevance-Guided Efficient Control for Diffusion Transformers

Ke Cao, Jing Wang, Ao Ma, Jiasong Feng, Xuanhua He, Run Ling, Haowei Liu, Jian Lu, Wei Feng, Haozhe Wang, Hongjuan Pei, Yihua Shao, Zhanjie Zhang, Jie Zhang

TL;DR

RelaCtrl introduces a highly efficient framework for adding spatial control (like Canny edges or depth maps) to Diffusion Transformers (DiTs). By dynamically placing control blocks based on layer relevance and introducing a lightweight Two-Dimensional Shuffle Mixer (TDSM), it achieves state-of-the-art controllable generation using only 15% of the parameters and computational complexity of previous methods like PixArt-$\delta$.

What Problem Does This Paper Address?

Controllable generation allows users to guide AI image synthesis using structural inputs like edge maps, depth profiles, or segmentation masks. While standard in U-Net-based diffusion models (via ControlNet), adapting this to modern Diffusion Transformers (DiTs) has proven computationally expensive.

Existing DiT control methods typically duplicate large portions of the main network or double the token count during attention blocks. For instance, PixArt-$\delta$ copies the first 13 blocks of the network, causing a massive 50% spike in parameters and computational overhead. Crucially, these approaches treat every transformer layer equally. They overlook a fundamental reality: different layers in a network care about control information to vastly different degrees. This uniform treatment leads to massive resource waste in layers where control signals have minimal impact.

Varying impact of skipping control blocks across different layers

Methods

The authors introduce RelaCtrl (Relevance-Guided Efficient Control), which optimizes both where control is applied and how it is computed:

  1. ControlNet Relevance Score (CRS): To find the most critical layers, the authors systematically skipped individual control blocks during inference and measured the degradation in image quality (via FID) and control accuracy (via Hausdorff Distance). They discovered that relevance follows an "increase-then-decrease" curve, peaking sharply in the early-to-middle layers.
  2. Relevance-Guided Allocation: Instead of blindly copying half the network, RelaCtrl places control blocks only at the top 11 most relevant layer positions, completely omitting them where relevance is weak.
  3. Two-Dimensional Shuffle Mixer (TDSM): In standard control blocks, the Self-Attention layer acts as a token mixer, and the Feed-Forward Network (FFN) acts as a channel mixer. TDSM replaces both with a single, lightweight operation. It randomly groups features across both the token and channel dimensions, performs local attention within these groups, and then applies an inverse shuffle to restore the original structure. This enables efficient non-local modeling without the heavy parameter footprint of standard FFNs.

Datasets

  • Training: The authors curated a high-quality dataset of 1.73 million images with an aesthetic score of 5.5 or higher. They generated corresponding control conditions (HED, Canny, Depth, and Segmentation) following standard ControlNet methodologies.
  • Evaluation: Quantitative evaluation was performed on the COCO validation dataset (5,000 images) at a 512x512 resolution. Qualitative testing used a separate high-resolution test set of 1,000 images at 1024x1024.

Key Insights and Ideas

  • The Early-Middle Peak: Unlike Large Language Models (LLMs), where deeper layers are often found to be redundant, DiT control networks exhibit a distinct U-shaped relevance curve. The shallowest and deepest layers are relatively insensitive to control signals, while blocks 5, 6, and 7 are critically important.
  • Unified Token-Channel Mixing: Traditional architectures separate token mixing (attention) and channel mixing (FFN). TDSM proves that by shuffling across both dimensions simultaneously, a single grouped attention mechanism can handle both tasks efficiently, eliminating the highly redundant parameters typically found in FFN layers.

Key Results

When integrated with PixArt-$\alpha$, RelaCtrl achieves remarkable efficiency gains while maintaining or exceeding baseline quality:

  • Resource Efficiency: RelaCtrl adds only 45M parameters (+7.38%) and 46.7 GFLOPs (+8.61%) to the base model. In comparison, standard ControlNet adds 294M parameters (+48.16%) and 270.5 GFLOPs (+49.87%).
  • Performance: On the COCO dataset, RelaCtrl achieved the best (lowest) FID and control error scores across Canny, HED, Depth, and Segmentation tasks, outperforming heavier models like PixArt-$\delta$ and Uni-ControlNet.
  • Scalability: The authors successfully scaled RelaCtrl to the 12-billion-parameter Flux.1-dev model, cutting the control branch's parameter overhead from 2.9B (standard ControlNet) down to just 549M parameters, while reducing inference latency.
Qualitative comparison of RelaCtrl against SOTA methods

Limitations and Future Work

While RelaCtrl drastically reduces the parameter size and FLOPs of the control branch, the authors note that overall inference time is still heavily dominated by the massive main backbone network (e.g., the frozen DiT layers). Consequently, the actual wall-clock speedup during inference is modest (~6-7% faster).

Future directions could include exploring whether relevance-guided strategies can be used to prune or optimize the main backbone network itself, or extending the RelaCtrl framework to video-based Diffusion Transformers.

Summary updated

BibTeX
@inproceedings{cao2026relactrl,
  author = {Ke Cao and Jing Wang and Ao Ma and Jiasong Feng and Xuanhua He and Run Ling and Haowei Liu and Jian Lu and Wei Feng and Haozhe Wang and Hongjuan Pei and Yihua Shao and Zhanjie Zhang and Jie Zhang},
  title = {{RelaCtrl: Relevance-Guided Efficient Control for Diffusion Transformers}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i4.37247},
}
Figure