DetailFusion: A Dual-branch Framework with Detail Enhancement for Composed Image Retrieval

Yuxin Yang, Yinan Zhou, Yuxin Chen, Ziqi Zhang, Zongyang Ma, Chunfeng Yuan, Bing Li, Lin Song, Jun Gao, Peng Li, Weiming HuarXiv 2025

Abstract

Composed Image Retrieval (CIR) aims to retrieve target images from a gallery based on a reference image and modification text as a combined query. Recent approaches focus on balancing global information from two modalities and encode the query into a unified feature for retrieval. However, due to insufficient attention to fine-grained details, these coarse fusion methods often struggle with handling subtle visual alterations or intricate textual instructions. In this work, we propose DetailFusion, a novel dual-branch framework that effectively coordinates information across global and detailed granularities, thereby enabling detail-enhanced CIR. Our approach leverages atomic detail variation priors derived from an image editing dataset, supplemented by a detail-oriented optimization strategy to develop a Detail-oriented Inference Branch. Furthermore, we design an Adaptive Feature Compositor that dynamically fuses global and detailed features based on fine-grained information of each unique multimodal query. Extensive experiments and ablation analyses not only demonstrate that our method achieves state-of-the-art performance on both CIRR and FashionIQ datasets but also validate the effectiveness and cross-domain adaptability of detail enhancement for CIR.

Introduction and Problem Statement

Composed Image Retrieval (CIR) represents an advanced search paradigm where a user provides a reference image and a modification text to find a specific target image. For instance, a user might provide a photo of a dog and the text "make the dog younger with his tongue out."

The primary challenge in CIR is the "coarse fusion" bottleneck. Existing models often prioritize global semantic alignment, which can lead to "similarity shortcuts." In these cases, the system retrieves images that are globally similar to the reference image but fail to incorporate the specific fine-grained modifications requested in the text. This manifests as two main issues: insufficient perception of subtle visual details in the reference image and a failure to process specific atomic transformations (e.g., "add," "remove," "change") in the text.

Comparison of CIR approaches: (a) standard fusion leads to intent neglect; (b) textual inversion can cause breed mismatch; (c) DetailFusion enables precise retrieval through adaptive composition.

The DetailFusion Framework

To overcome the limitations of coarse fusion, the authors propose DetailFusion, a dual-branch architecture that explicitly models both global context and fine-grained details.

Dual-Branch Architecture

  1. Global Feature Matching (GM) Branch: This branch focuses on the high-level semantic relationship between the image and text, ensuring the broad intent of the query is captured.
  2. Detail-oriented Inference (DI) Branch: This specialized branch is designed to detect and process subtle variations. It focuses on the fine-grained interactions between the visual and textual modalities.

Adaptive Feature Compositor

Rather than using a static fusion method, DetailFusion employs an Adaptive Feature Compositor. This module uses a cross-attention mechanism to dynamically weight and combine features from the GM and DI branches. By analyzing the specific requirements of each unique multimodal query, the compositor can decide whether to prioritize global matching or detailed inference for a given search.

Three-Stage Training Strategy

The core innovation of DetailFusion lies in its specialized three-stage training pipeline, which effectively teaches the model to focus on details.

  • Stage 1: DI Branch Pre-training: The DI branch is pre-trained using the IPr2Pr image editing dataset. This dataset contains "before" and "after" image pairs with corresponding editing instructions, providing a rich source of "atomic detail variation priors." A key part of this stage is detail-oriented optimization, where the reference image is treated as a hard negative. This forces the model to ignore the similarities between the reference and target and focus strictly on the requested changes.
  • Stage 2: Dual-Branch Joint Fine-tuning: Both the GM and DI branches are jointly fine-tuned on standard CIR datasets (like CIRR and FashionIQ) to align their combined features with the target images in the gallery.
  • Stage 3: Compositor Training: In the final stage, the encoders in both branches are frozen. The Adaptive Feature Compositor is then trained to learn the optimal strategy for fusing the global and detailed features.
The three-stage training strategy and inference phase of DetailFusion.

Experimental Results

DetailFusion was rigorously tested on several key benchmarks, demonstrating its superiority over existing methods.

Performance on CIRR and FashionIQ

  • CIRR (Real-life images): DetailFusion achieved a Recall@1 of 55.76% on the test set, marking a significant +2.59% improvement over the previous state-of-the-art model, SPRC.
  • FashionIQ (E-commerce): The model outperformed competitors across all categories (Dresses, Shirts, Toptees), with an average Recall improvement of +1.91% over CCIN.

Zero-Shot Generalization

The model's robustness was further validated through zero-shot evaluations on the CIRCO and GeneCIS datasets. Despite not being trained on these specific domains, DetailFusion outperformed specialized zero-shot models, proving that its detail-oriented training translates well to diverse vision-language tasks.

Conclusion

DetailFusion addresses a critical gap in Composed Image Retrieval by moving beyond coarse fusion. By integrating a specialized detail-oriented branch and an adaptive compositor, the framework achieves a more nuanced understanding of multimodal queries. While challenges remain in areas like complex spatial reasoning, DetailFusion sets a new benchmark for accuracy and fine-grained perception in the field of image retrieval.

Summary updated

BibTeX
@misc{yang2025detailfusion,
  author = {Yuxin Yang and Yinan Zhou and Yuxin Chen and Ziqi Zhang and Zongyang Ma and Chunfeng Yuan and Bing Li and Lin Song and Jun Gao and Peng Li and Weiming Hu},
  title = {{DetailFusion: A Dual-branch Framework with Detail Enhancement for Composed Image Retrieval}},
  year = {2025},
  eprint = {2505.17796},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.17796},
}
Figure