Abstract
We introduce Nexus Adapters, a novel family of text-guided efficient adapters for structure-preserving conditional generation (SPCG) in diffusion models. While existing methods like ControlNet provide strong structural control, they are often parameter-heavy and "blind" to text prompts, leading to semantic inconsistencies. Nexus Adapters address these challenges by incorporating cross-attention mechanisms within the adapter blocks, allowing for rich multimodal conditioning. Our experiments demonstrate that the Nexus Prime adapter significantly enhances performance with only 85.8M parameters, while the lightweight Nexus Slim variant achieves state-of-the-art results with even fewer parameters than existing lightweight baselines.
Introduction: The Challenge of Structural Control
Text-to-image diffusion models have revolutionized content creation, yet precise spatial control remains difficult. Existing solutions like ControlNet and T2I-Adapter inject structural conditions (e.g., depth maps, sketches) but suffer from two main drawbacks. First, parameter inefficiency: ControlNet duplicates the entire diffusion encoder, adding ~361M parameters, making it costly to train and deploy. Second, prompt ignorance: lightweight adapters often process structural inputs independently of the text prompt. This lack of communication can lead to "blind" enforcement of structure that conflicts with the user's semantic intent, resulting in incoherent images.
The Nexus Architecture
To bridge the gap between structural control and semantic intent, we propose the Nexus Adapter architecture. Unlike previous methods, the Nexus Adapter is explicitly guided by both structural inputs and text prompts while leaving the base Stable Diffusion UNet frozen.
The core innovation is the Nexus Block, available in two variants:
- Nexus Prime: Utilizes standard convolutions and a cross-attention mechanism where visual features act as queries and frozen CLIP text embeddings act as keys and values. This forces the adapter to "pay attention" to the text prompt while processing the structure.
- Nexus Slim: A hyper-efficient version replacing standard convolutions with depthwise (grouped) convolutions to drastically reduce computational overhead while maintaining text-awareness.
Efficiency and Performance
Nexus Adapters offer a significant leap in efficiency without sacrificing quality. By providing global, constant guidance rather than step-wise denoising partnership, the architecture is more robust and easier to train.
As shown in the table above, Nexus Slim requires only 59.3M parameters and 23.8 GFlops—significantly less than the 361.3M parameters required by ControlNet and even 18M fewer than the T2I-Adapter. Even the more powerful Nexus Prime (85.8M parameters) remains highly efficient compared to the state-of-the-art. In terms of training speed, Nexus Slim can be trained in approximately 26 hours on a single A100 GPU, a nearly 5x speedup over ControlNet's 129-hour training requirement.
Key Insights
- Prompt-Awareness: Injecting text embeddings directly into the adapter allows the model to balance structural outlines with semantic textures. This prevents artifacts where the model might blindly follow a sketch that contradicts the prompt.
- Global Guidance: Providing constant structural guidance across all denoising steps proves more stable than the cascading error potential of step-dependent guidance used in some larger models.
- Scalable Efficiency: Through depthwise convolutions and smart attention placement, high-quality control is achievable with ~85% fewer parameters than full-encoder duplication methods.
Conclusion
Nexus Adapters provide a scalable, efficient, and semantically aware solution for conditional image generation. By making the structural adapter "aware" of the text prompt, we achieve superior alignment between user intent and spatial constraints. The Nexus Prime and Slim variants offer flexible options for developers needing high-fidelity control within tight computational budgets.
Code available at: https://github.com/arya-domain/Nexus-Adapters
Summary updated