MODA: MOdular Duplex Attention for Multimodal Perception, Cognition, and Emotion Understanding

Zhicheng Zhang, Wuyou Xia, Chenxi Zhao, Zhou Yan, Xiaoqiang Liu, Yongjie Zhu, Wenyu Qin, Pengfei Wan, Di Zhang, Jufeng Yang

Introduction

MODA (MOdular Duplex Attention) is a novel attention mechanism designed to fix "Attention Deficit Disorder" (DDA) in Multimodal Large Language Models (MLLMs)—a phenomenon where models ignore fine-grained visual details in favor of dominant textual patterns. By decoupling modality alignment from token mixing through a "correct-after-align" strategy, MODA significantly improves model performance across 21 benchmarks, particularly in complex tasks involving cognition and emotion understanding.

The Problem: Attention Deficit Disorder (DDA)

While current MLLMs (like LLaVA or GPT-4V) are impressive at general image description, they often stumble on high-level tasks that require "fine-grained" understanding, such as detecting sarcasm or interpreting subtle facial expressions.

The authors identify a core architectural flaw they call the Attention Deficit Disorder (DDA) problem. This manifests in two primary ways:

  1. Inconsistent Cross-Modal Attention: Models tend to be "language-centric," devoting significantly more attention to text tokens than visual ones. In some cases, the disparity in attention scores between modalities can reach 10x.
  2. Layer-wise Decay: As data passes through the deeper layers of a Transformer, the activation of attention scores for certain modalities decays exponentially. This leads to an "attention collapse" where the model effectively stops "looking" at the image.
Illustration of Attention Deficit Disorder (DDA) in MLLMs, showing hallucinated outputs and layer-wise attention decay.

Methodology: MOdular Duplex Attention (MODA)

To solve DDA, the researchers proposed MOdular Duplex Attention (MODA). Instead of simply throwing all tokens into a single attention pool, MODA uses a two-pronged approach:

  • Duplex Attention Alignment (V-Aligner & T-Aligner): Inspired by mapping techniques in diffusion models, MODA uses Gram matrices to extract the "basis vectors" of each modality's embedding space. It then uses these matrices to perform a kernelized mapping, aligning visual tokens into the language space (and vice versa) before they interact. This ensures that when tokens finally "mix," they are speaking the same mathematical language.
  • Modular Masked Attention: The authors introduce customizable masking patterns that explicitly separate self-modal refinement (how visual tokens relate to each other) from cross-modal interaction (how visual tokens relate to text). This prevents the dominant modality from "drowning out" the other and maintains balanced contributions across all layers.

The system is implemented using efficient LoRA-based tuning and token merging to keep computational costs manageable while maintaining high performance.

Datasets and Evaluation

The authors evaluated MODA across a massive suite of 21 benchmark datasets categorized into three areas:

  • Perception (16 datasets): Including MME, MMBench, GQA, ScienceQA, MMMU, MathVista, ChartQA, OCRBench, and the vision-centric MMVP.
  • Cognition: The MMRole benchmark, which evaluates role-playing performance across aspects like instruction adherence, personality consistency, and fluency.
  • Emotion (4 datasets): MVSA-S and MVSA-M (sentiment), TumEmo (basic emotions), and HFM (a specialized dataset for implicit emotion and sarcasm).

Key Insights

  • The "Aha!" Moment on DDA: The researchers quantified that in standard MLLMs, the "link value" from visual to text tokens decays exponentially with depth. This explains why models might "see" an object in early layers but "forget" its specific attributes by the time they generate a response.
  • Gram Matrices as Bridges: Using Gram matrices to align modalities is a clever move. It allows the model to capture the intrinsic structure of the data (the relationships between tokens within a modality) and use that structure as a transfer function to the other modality.
  • Decoupling is Key: By separating the alignment phase from the mixing phase, MODA allows for "inner-modal refinement." The model gets to understand the image as an image and the text as text before trying to reconcile the two.

Key Results

MODA consistently outperformed state-of-the-art (SOTA) open-source models:

  • Superior Perception: MODA-8B achieved an average improvement of 1.0 points over the base Llama-3-8B model. In vision-centric tasks (MMVP), it hit a score of 52.6, outperforming LLaVA-NeXT-8B (38.7).
  • OCR Excellence: In OCR and Chart understanding, MODA-34B achieved a metric of 74.7, significantly higher than Mini-Gemini (68.1) and LLaVA-NeXT (67.7).
  • Emotional Intelligence: On the HFM sarcasm dataset, where many SOTA models perform no better than a random 50/50 guess, MODA-8B achieved an F1 score of 0.881, rivaling or beating specialized emotion-recognition models.
  • Qualitative Success: Visualization of attention maps showed that MODA maintains high, consistent attention scores across all 32 layers, whereas baseline models showed significant "dead zones" in deeper layers.

Limitations and Future Work

  • Base Model Dependency: Like all MLLMs, MODA's performance is still tethered to the quality of its foundational LLM (e.g., Llama-3 or Yi). If the base model has inherent biases or knowledge gaps, MODA can only do so much to correct them.
  • Hallucination Risks: While MODA reduces "hallucinated explanations" by grounding them in better visual attention, it does not eliminate the risk of the model generating plausible-sounding but incorrect information.
  • Future Directions: The authors suggest exploring how this modular attention could scale to even more modalities (like audio or thermal imaging) and investigating its application in long-video understanding where temporal "attention deficit" is even more pronounced.

Summary updated

BibTeX
@inproceedings{zhang2025moda,
  author = {Zhicheng Zhang and Wuyou Xia and Chenxi Zhao and Zhou Yan and Xiaoqiang Liu and Yongjie Zhu and Wenyu Qin and Pengfei Wan and Di Zhang and Jufeng Yang},
  title = {{MODA: MOdular Duplex Attention for Multimodal Perception, Cognition, and Emotion Understanding}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
}
Figure