Abstract
Diffusion Transformers (DiTs) have demonstrated exceptional capabilities in text-to-image synthesis. However, in the domain of controllable text-to-image generation using DiTs, most existing methods still rely on the ControlNet paradigm originally designed for UNet-based diffusion models. This paradigm introduces significant parameter overhead and increased computational costs. To address these challenges, we propose the Nano Control Diffusion Transformer (NanoControl), which employs Flux as the backbone network. Our model achieves state-of-the-art controllable text-to-image generation performance while incurring only a 0.024% increase in parameter count and a 0.029% increase in GFLOPs, thus enabling highly efficient controllable generation. Specifically, rather than duplicating the DiT backbone for control, we design a LoRA-style (low-rank adaptation) control module that directly learns control signals from raw conditioning inputs. Furthermore, we introduce a KV-Context Augmentation mechanism that integrates condition-specific key-value information into the backbone in a simple yet highly effective manner, facilitating deep fusion of conditional features. Extensive benchmark experiments demonstrate that NanoControl significantly reduces computational overhead compared to conventional control approaches, while maintaining superior generation quality and achieving improved controllability.
Introduction
As the AI community shifts from UNet-based models to Diffusion Transformers (DiTs) like Flux.1 and SD3, a "scaling wall" for controllability has emerged. The traditional ControlNet approach, which duplicates the model's backbone to process control signals, is prohibitively expensive for 12-billion-parameter models. This leads to massive memory overhead and slow inference. While lightweight alternatives like LoRA-based adapters exist, they often suffer from "signal decay," where control information injected at early layers gradually fades throughout the deep transformer architecture. NanoControl addresses this by providing a high-precision, ultra-lightweight framework that maintains control throughout the network without the computational tax.
Methodology
NanoControl departs from the "duplicate the backbone" philosophy through two primary innovations:
- LoRA-style Independent Control Branch: Instead of a full parallel network, NanoControl utilizes a tiny side branch. It encodes control images (e.g., depth maps) using the existing VAE to ensure latent space alignment. By applying Low-Rank Adaptation (LoRA) to the linear projection layers within this module, the entire branch is reduced to approximately 3 million trainable parameters.
- KV-Context Augmentation: To combat signal decay, NanoControl generates control-specific Key (K) and Value (V) pairs from the side branch and injects them into every attention layer of the main backbone. The backbone's Queries (Q) attend to both original features and these new control features simultaneously, ensuring the spatial constraints are "refreshed" at every layer.
Experimental Evaluation
NanoControl was trained on the Text-to-Image-2M dataset and evaluated using the COCO 2017 validation set across tasks including Canny edges, Depth maps, and Colorization.
Key Results
- Extreme Efficiency: NanoControl adds only 3 million parameters to the 12-billion-parameter Flux base. The GFLOPs increment is a negligible 0.029%, resulting in virtually no latency penalty.
- Superior Precision: On the Canny edge task, NanoControl achieved a Hausdorff Distance (HDD) score of 102.22, significantly outperforming larger models like Flux-ControlNet (104.48) and Xlab-ControlNet (107.81). A lower HDD indicates more precise alignment with user constraints.
- High Fidelity: The model maintains the aesthetic quality of the Flux backbone, achieving top-tier scores in FID and MUSIQ metrics.
Conclusion
NanoControl demonstrates that precise spatial control in large-scale DiTs does not require massive parameter duplication. By augmenting the attention context directly, the framework achieves state-of-the-art precision with minimal overhead. Future work will explore expanding this lightweight architecture to text-to-video Diffusion Transformers, where efficiency is even more critical.
Summary updated