Rethinking Cross-Modal Interaction in Multimodal Diffusion Transformers

Zhengyao Lv, Tianlin Pan, Chenyang Si, Zhaoxi Chen, Wangmeng Zuo, Ziwei Liu, Kwan-Yee K. Wong

TL;DR

This paper introduces TACA, a parameter-efficient method to improve text-image alignment in multimodal diffusion transformers (MM-DiTs) by dynamically rebalancing cross-modal attention. TACA addresses issues of attention suppression and timestep insensitivity, leading to significantly better alignment without compromising image quality, as validated on state-of-the-art models like FLUX and SD3.5.

What Problem Does This Paper Address?

Multimodal Diffusion Transformers (MM-DiTs) have revolutionized text-to-image generation, but even the most advanced models struggle with precise semantic alignment between text prompts and generated images. This means that while the generated images might look good, they don't always accurately reflect the nuances of the text prompt, leading to issues like missing objects or incorrect attribute binding. The authors identify two core problems within the MM-DiT architecture:

  1. Suppression of Cross-Modal Attention: Due to an imbalance in the number of visual tokens versus textual tokens, the cross-modal attention mechanism can be "drowned out." The sheer volume of visual information can dilute the influence of the text, making it harder for the model to pay attention to the textual guidance.
  2. Timestep-Insensitive Attention Weighting: Current MM-DiTs use a static attention mechanism that applies the same weighting across all stages of the denoising process. However, the importance of text-visual interaction changes throughout denoising. Early stages require strong text guidance for layout, while later stages focus on detail refinement. A static approach fails to adapt to these evolving needs.

Methods

The paper proposes Temperature-Adjusted Cross-modal Attention (TACA), a novel yet simple modification to the MM-DiT attention mechanism. TACA introduces two key innovations:

  • Modality-Specific Temperature Scaling: To combat the suppression of cross-modal attention, TACA amplifies the "logits" (raw scores) of visual-text interactions using a temperature coefficient, $\gamma$. By increasing $\gamma$ (typically $\gamma > 1$), the model effectively boosts the importance of textual guidance, rebalancing the competition within the softmax function and allowing visual tokens to attend more strongly to text.
  • Timestep-Dependent Adjustment: To address the timestep insensitivity, the temperature coefficient $\gamma$ is made dynamic, denoted as $\gamma(t)$. This $\gamma(t)$ is designed to be higher in the early denoising steps (when layout formation is critical and text guidance is paramount) and lower in later steps (when detail refinement takes over). This is implemented using a piecewise function that activates the temperature scaling beyond a certain threshold timestep, $t_{thresh}$.

To mitigate potential artifacts introduced by amplified cross-attention, TACA is combined with Low-Rank Adaptation (LoRA) fine-tuning. LoRA is a parameter-efficient technique that fine-tunes only a small number of additional weights (low-rank matrices) in the attention layers, helping the model recover a more realistic image distribution without significantly altering the text-image alignment benefits of TACA.

Datasets

  • Training: The paper mentions using the LAION dataset [39] with captions refined by the LLaVA model [24] for LoRA training.
  • Evaluation: The primary evaluation benchmark is T2I-CompBench [16], a comprehensive suite for text-to-image alignment. The authors also used widely adopted image quality assessment models, MUSIQ [17] and MANIQA [50], for visual quality evaluation.

Key Insights and Ideas

  • The "Attention Bottleneck": The paper provides strong evidence that the numerical imbalance between visual and text tokens is a significant bottleneck for cross-modal attention in MM-DiTs, leading to weak textual guidance.
  • Dynamic Attention is Crucial: The temporal evolution of denoising requires a dynamic approach to cross-modal attention. Static weighting fails to capture the varying importance of text guidance throughout the generation process.
  • Simplicity and Efficiency: TACA is remarkably parameter-efficient, introducing no new learnable parameters itself. The temperature scaling is a simple element-wise operation, making it easy to integrate into existing MM-DiT architectures.
  • LoRA for Artifact Control: The combination of TACA with LoRA is a clever strategy to leverage the benefits of enhanced alignment while simultaneously addressing potential visual artifacts that might arise from amplified attention.

Key Results

  • Improved Alignment: TACA significantly improves text-image alignment across various metrics on T2I-CompBench. For FLUX.1-Dev, it achieved relative gains of 16.4% in spatial relationship understanding and 5.9% in shape accuracy. For SD3.5-Medium, TACA boosted spatial relationship accuracy by 28.3% and shape accuracy by 2.9%.
  • No Image Quality Degradation: TACA improves text-image alignment without sacrificing image quality, as confirmed by MUSIQ and MANIQA scores.
  • User Preference: A user study showed that a majority of participants preferred images generated by models incorporating TACA, indicating a tangible improvement in perceived quality and alignment.
  • Effective on SOTA Models: TACA demonstrated effectiveness when applied to state-of-the-art models like FLUX.1-Dev and SD3.5-Medium.
  • Minimal Computational Overhead: TACA adds negligible computational cost, making it a practical enhancement.

Limitations and Future Work

  • LoRA Dilution Effect: The paper notes a limitation where the benefits of increasing the temperature factor in TACA were diminished when training a LoRA module for text-to-video experiments.
  • Adaptive Scaling Factor: The current method uses a fixed scaling factor $\gamma_0$ and threshold $t_{thresh}$. The authors suggest that future work could explore adaptively selecting these parameters based on the actual degree of text alignment during generation.
  • Artifact Mitigation: While LoRA helps, the paper acknowledges that it can sometimes introduce a "dilution effect" on the alignment gains. Further research could explore more sophisticated artifact suppression techniques.

Summary updated

BibTeX
@inproceedings{lv2025rethinking,
  author = {Zhengyao Lv and Tianlin Pan and Chenyang Si and Zhaoxi Chen and Wangmeng Zuo and Ziwei Liu and Kwan-Yee K. Wong},
  title = {{Rethinking Cross-Modal Interaction in Multimodal Diffusion Transformers}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure