Balancing Task-invariant Interaction and Task-specific Adaptation for Unified Image Fusion

Xingyu Hu, Junjun Jiang, Chenyang Wang, Kui Jiang, Xianming Liu, Jiayi Ma

TL;DR

This paper introduces TITA, a novel unified image fusion framework that dynamically balances task-invariant feature interaction and task-specific adaptation without requiring explicit task identification. TITA achieves state-of-the-art performance across multiple fusion tasks and demonstrates strong generalization to unseen scenarios, addressing a key limitation in existing unified fusion methods.

What Problem Does This Paper Address?

Image fusion aims to combine information from multiple images to create a single, enhanced image. While unified image fusion methods try to handle diverse fusion tasks (like infrared-visible, multi-exposure, and multi-focus fusion) within a single framework, they often overlook the unique characteristics of each task, limiting their performance. Conversely, general image fusion methods adapt to task specifics but require explicit task identification during inference, hindering their ability to generalize to new, unseen tasks. This paper tackles the challenge of creating a unified fusion framework that can effectively leverage shared information across tasks while also adapting to individual task requirements, all without needing to know the task type beforehand. Additionally, it addresses the problem of conflicting gradients that can arise during the training of multi-task models.

Methods

TITA is built upon a two-stage architecture:

  • Task-Invariant Feature Interaction: This stage focuses on extracting complementary information that is common across different fusion tasks. It employs an Interaction-enhanced Pixel Attention (IPA) module. IPA builds upon existing Pixel Attention mechanisms by modifying how cross-attention weights are calculated. It intentionally reinforces cross-attention to better capture inter-source feature correlations and improve generalization. The framework also uses Interaction-enhanced SwinFusion (ISF) modules, which replace intra-domain fusion with inter-domain fusion to further strengthen multi-source interactions.
  • Task-Specific Adaptation: This stage allows the model to adapt to the unique properties of each fusion task. The Operation-based Adaptive Fusion (OAF) module dynamically adjusts fusion operations based on task characteristics. It features three parallel branches: a high-pass filtering (HPF) branch for details, an addition (ADD) branch for overall enhancement, and a multiplication (MUL) branch for nonlinear feature interactions. Crucially, a dynamic weight prediction network within OAF takes task-specific features to predict adaptive weights for these branches, enabling task-agnostic adaptation.
  • Multi-objective Optimization: To handle potential gradient conflicts during joint training across multiple tasks, TITA incorporates the Fast Adaptive Multitask Optimization (FAMO) strategy. FAMO dynamically adjusts gradient weights to mitigate conflicts and ensure balanced optimization across tasks.

Datasets

The paper uses several publicly available datasets for training and evaluation:

  • Training: LLVIP (infrared-visible), SCIE (multi-exposure), RealMFF (multi-focus), and MFI-WHU (multi-focus).
  • Evaluation:
    • Infrared-Visible Fusion (IVF): LLVIP dataset.
  • Multi-Exposure Fusion (MEF): MEFB dataset.
  • Multi-Focus Fusion (MFF): Lytro, MFF-WHU, and RealMFF datasets.
  • Generalization Tasks: Harvard dataset (medical image fusion) and Quickbird dataset (pan-sharpening).

Key Insights and Ideas

  • Task-Agnostic Adaptation is Key: The core insight is that a unified fusion framework can achieve high performance and generalization by dynamically adapting to task specifics without explicit task identification. This is a significant departure from previous general fusion methods.
  • IPA Enhances Cross-Modal Understanding: The IPA module's design, which prioritizes cross-attention, effectively captures complementary information between different image modalities, leading to better feature integration.
  • OAF's Dynamic Operation Selection: The OAF module's ability to dynamically select and weight different fusion operations (detail enhancement, residual addition, nonlinear interaction) based on implicit task characteristics is crucial for adapting to diverse fusion needs.
  • Gradient Conflicts are Real and Solvable: The paper provides visual evidence (Figure 2) of gradient conflicts during training without FAMO, highlighting the necessity of multi-objective optimization strategies like FAMO for stable and effective multi-task learning.
  • Unified Frameworks Can Generalize: TITA's strong performance on unseen fusion tasks (medical image fusion and pan-sharpening) demonstrates that a well-designed unified framework can indeed generalize effectively by focusing on the fundamental goal of information integration.

Key Results

  • State-of-the-Art Performance: TITA achieves competitive or superior performance compared to specialized methods across three major fusion scenarios (IVF, MEF, MFF) on various quantitative metrics (MI, FMI, Qp, Qw, SD, EI, SSIM, VIF). For example, on IVF, TITA achieved the best MI, FMI, Qp, and Qw scores.
  • Strong Generalization: TITA demonstrates significant adaptability to unseen fusion tasks (medical image fusion and pan-sharpening), outperforming other unified methods that fail to generalize.
  • Ablation Studies Validate Components: Ablation studies confirm the effectiveness of each proposed component: task-invariant integration (IPA/ISF), task-specific adaptation (OAF), and multi-objective optimization (FAMO). The combination of all three yields the best results.
  • Efficiency: The paper notes that FAMO introduces negligible computational overhead.

Limitations and Future Work

  • Limitations: While TITA excels, the paper acknowledges that specialized methods like Text-IF can achieve better perceptual quality in specific scenarios (e.g., IVF) due to leveraging powerful pre-trained models like LLMs. The paper also notes that the MUL branch in OAF is particularly crucial, suggesting that complex nonlinear interactions are vital for fusion.
  • Future Work: The authors suggest extending TITA to other unseen fusion scenarios and more modalities. They also aim to explore advanced learning techniques for developing stronger cross-modal representations, further enhancing fusion quality and adaptability across diverse applications.

Summary updated

BibTeX
@inproceedings{hu2025balancing,
  author = {Xingyu Hu and Junjun Jiang and Chenyang Wang and Kui Jiang and Xianming Liu and Jiayi Ma},
  title = {{Balancing Task-invariant Interaction and Task-specific Adaptation for Unified Image Fusion}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure