Balancing Multimodal Domain Generalization via Gradient Modulation and Projection

Hongzhao Li, Guohao Shen, Shupan Li, Mingliang Xu, Muhammad Haris Khan

TL;DR

Multimodal Domain Generalization (MMDG) models often fail to generalize because a single dominant modality or task overshadows others during training. This paper introduces Gradient Modulation Projection (GMP), a plug-and-play optimization strategy that decouples and independently modulates classification and domain-invariance gradients based on task-specific confidences. By adaptively projecting conflicting gradients, GMP prevents dominant modalities from suppressing weaker ones, achieving state-of-the-art generalization on unseen domains.

What Problem Does This Paper Address?

When training models on multiple modalities (like video and audio), we expect them to combine complementary strengths. However, different modalities naturally converge at different rates. This leads to an optimization imbalance where a dominant modality (often video) dictates the gradient updates, causing the model to underutilize the other modalities.

In Multimodal Domain Generalization (MMDG), the goal is to train models on source domains such that they perform well on completely unseen target domains. This setup introduces a secondary challenge: inter-task conflicts. The model must simultaneously learn to classify actions (classification loss) and ignore domain-specific features (domain adversarial loss).

Existing gradient-balancing methods try to fix this by scaling gradients based purely on source-domain classification accuracy. The authors point out a fatal flaw in this approach: a modality that excels at source-domain classification might generalize poorly to unseen domains. Relying solely on source accuracy can inadvertently suppress the very modality needed to bridge the domain gap.

Methods

The authors propose Gradient Modulation Projection (GMP), an architecture-agnostic optimization strategy that acts directly on gradients during backpropagation. It consists of two main components:

  1. Inter-Modality Gradient Decoupled Modulation (IGDM): Instead of scaling a modality's total gradient uniformly, IGDM splits the gradient into classification ($g_c$) and domain-invariance ($g_d$) components. It introduces two metrics: Semantic Confidence (how sure the classifier is) and Domain Confidence (how confused the domain discriminator is). If a modality is overly dominant in classification, its classification gradient is scaled down; if it dominates domain invariance, its domain gradient is scaled down. This allows lagging modalities to contribute meaningfully to both tasks.
  2. Conflict-Adaptive Gradient Projection (CAGP): When classification and domain-invariance gradients point in opposite directions, they cancel each other out. CAGP dynamically monitors the relative strength of these tasks within each modality encoder. When a conflict is detected, it preserves the full gradient of the weaker task and projects the stronger task's gradient orthogonally to it, eliminating destructive interference.
The overall training strategy of GMP, showing decoupled modulation and conflict-adaptive projection.

Datasets

The strategy was evaluated using a domain generalization setup (training on a subset of domains and testing on an unseen target domain) across two popular video-audio benchmarks:

  • EPIC-Kitchens: An egocentric dataset featuring synchronized audio and video of kitchen activities across different environments.
  • HAC (Human Action Collection) Dataset: A multimodal dataset used to evaluate cross-domain action recognition performance.

Key Insights and Ideas

  • Source Accuracy $\neq$ Generalization: A modality can be highly discriminative on source data by latching onto domain-specific biases (e.g., background textures in video). Meanwhile, a "weaker" modality (like audio) might capture domain-agnostic features essential for target generalization.
  • Modality-Specific Conflicts: Gradient conflicts are asymmetric. Video features might suffer from severe conflicts between classification and domain-invariance objectives, while audio features remain aligned. GMP treats each modality independently to capture these distinct dynamics.
  • Protecting the Under-Optimized Task: Rather than blindly averaging or dropping conflicting gradient components, explicitly protecting the weaker task's update direction ensures that neither classification accuracy nor domain invariance is sacrificed.

Key Results

  • Outperforming Existing Optimizers: On EPIC-Kitchens, GMP achieved a target domain accuracy of 57.36% (outperforming the baseline's 55.06% and traditional balancing methods like OGM-GE's 55.71%). On the HAC dataset, it reached 64.91% compared to the baseline's 61.86%.
  • Seamless Integration: GMP acts as a plug-and-play module. When integrated into four state-of-the-art MMDG frameworks (RNA-Net, MOOSA, SimMMDG, and CMRF), it consistently boosted their performance on unseen target domains.
Performance of state-of-the-art MMDG methods evaluated with and without the proposed GMP strategy.
  • Clearer Feature Spaces: Qualitative t-SNE visualizations confirmed that GMP yields much tighter, well-separated class clusters and significantly reduces the distribution gap between source and target domains.
t-SNE plots on the HAC dataset comparing Base and GMP methods.

Limitations and Future Work

The paper focuses exclusively on dual-modality (video-audio) settings. The authors do not explore how GMP scales to scenarios with three or more modalities, or how it handles highly heterogeneous pairings (such as text and tabular sensor data). Extending this gradient-decoupling framework to large-scale vision-language models or open-world generalization remains an open and promising direction.

Summary updated

BibTeX
@inproceedings{li2026balancing,
  author = {Hongzhao Li and Guohao Shen and Shupan Li and Mingliang Xu and Muhammad Haris Khan},
  title = {{Balancing Multimodal Domain Generalization via Gradient Modulation and Projection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i27.39456},
}
Figure