Diff-Aid: Inference-time Adaptive Interaction Denoising for Rectified Text-to-Image Generation

Binglei Li, Mengping Yang, Zhiyu Tan, Junping Zhang, Hao Li

Abstract

Recent text-to-image (T2I) diffusion models have achieved remarkable advancement, yet faithfully following complex textual descriptions remains challenging due to insufficient interactions between textual and visual features. Prior approaches enhance such interactions via architectural design or handcrafted textual condition weighting, but lack flexibility and overlook the dynamic interactions across different blocks and denoising stages. To provide a more flexible and efficient solution to this problem, we propose Diff-Aid, a lightweight inference-time method that adaptively adjusts per-token text and image interactions across transformer blocks and denoising timesteps. Beyond improving generation quality, Diff-Aid yields interpretable modulation patterns that reveal how different blocks, timesteps, and textual tokens contribute to semantic alignment during denoising. As a plug-and-play module, Diff-Aid can be seamlessly integrated into downstream applications for further improvement, including style LoRAs, controllable generation, and zero-shot editing. Experiments on strong baselines (SD 3.5 and FLUX) demonstrate consistent improvements in prompt adherence, visual quality, and human preference across various metrics.

Introduction

Modern text-to-image (T2I) models like FLUX and Stable Diffusion 3.5 often struggle with a "listening problem." Despite their power, they frequently fail to follow complex prompts accurately—for instance, miscoloring objects or omitting them entirely. This "broken telephone" effect stems from an imbalance in the interaction between textual prompts and the evolving image across different model layers and denoising stages.

Current solutions typically rely on static weighting or expensive architectural retraining. Diff-Aid addresses these gaps by introducing a lightweight, plug-and-play module that adaptively modulates text-image interactions at inference time, ensuring the model "hears" the most critical parts of a prompt when it matters most.

Methodology: The AiD Module

The core of Diff-Aid is the Adaptive Interaction Denoising (AiD) module. Rather than modifying the massive backbone of a Diffusion Transformer (DiT), a small, trainable Multi-Layer Perceptron (MLP) is inserted into each transformer block.

Per-Token Modulation

The module learns a coefficient ($\alpha$) for every individual token. This allows the system to dynamically emphasize important descriptors (e.g., "yellow") while de-emphasizing less relevant tokens (e.g., "a", "the").

Gated Sparsity and Preference-Aware Training

To maintain stability, Diff-Aid employs a gated mechanism and L2 regularization, ensuring it only intervenes where necessary. The module is trained using Direct Preference Optimization (DPO) on a high-quality subset of the Human Preference Dataset v3 (HPDv3), aligning the model's internal interactions with human visual preferences.

Diff-Aid improves prompt adherence for complex descriptions involving multiple objects and specific attributes.

Key Insights and Interpretability

Diff-Aid provides a window into the "black box" of diffusion models. Analysis of the learned weights ($\alpha$) reveals several key behaviors:

  • Temporal Dynamics: Early transformer blocks focus on coarse layout and structure, while later blocks refine fine textures and colors. Diff-Aid boosts text interaction specifically during these critical phases.
  • Positional Bias: The module naturally prioritizes earlier tokens in a prompt, mirroring human descriptive structures.
  • Model Adaptation: The module successfully adapts to different architectures, such as FLUX’s single-stream and dual-stream blocks.

Experimental Results

Evaluations on benchmarks like HPDv3, GenEval, and EditBench demonstrate significant improvements over baseline models:

  • Quantitative Performance: Diff-Aid improved FLUX’s HPSv3 score by 0.29 and SD 3.5’s by 0.17.
  • Semantic Understanding: In GenEval, SD 3.5 saw a 5% improvement in prompt adherence for multi-object instructions.
  • Downstream Versatility: The module integrates seamlessly with style LoRAs and controllable generation frameworks.
Diff-Aid is compatible with controllable generation tasks, such as following edge-based conditional inputs.

Conclusion

Diff-Aid offers a flexible, efficient, and interpretable solution for improving prompt adherence in state-of-the-art T2I models. By adaptively modulating interactions at inference time, it bridges the gap between complex textual intent and visual execution. Future work will explore extending this adaptive interaction to video and 3D generation, further enhancing the consistency and quality of multi-modal synthesis.

Summary updated

BibTeX
@inproceedings{li2026diff,
  author = {Binglei Li and Mengping Yang and Zhiyu Tan and Junping Zhang and Hao Li},
  title = {{Diff-Aid: Inference-time Adaptive Interaction Denoising for Rectified Text-to-Image Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=mUAzPnYiWX},
}
Figure