OFFSET: Segmentation-based Focus Shift Revision for Composed Image Retrieval

Zhiwei Chen, Yupeng Hu, Zixu Li, Zhiheng Fu, Xuemeng Song, Liqiang Nie

TL;DR

Composed Image Retrieval (CIR) models often struggle with background noise and fail to prioritize modification text when interpreting a reference image. This paper introduces OFFSET, a framework that leverages semantic segmentation to filter out image noise and adaptively shifts the model's visual focus based on textual instructions. By dynamically aligning multi-modal features, OFFSET achieves state-of-the-art retrieval accuracy across major benchmarks while slashing inference latency by over 40%.

What Problem Does This Paper Address?

Composed Image Retrieval (CIR) is a multimodal task where a user provides a reference image and a modification text (e.g., "add multiple wolves and have them huddled together in the snow") to retrieve a specific target image. Despite recent advances using Vision-Language Pre-training (VLP) models like CLIP, current CIR approaches suffer from two major flaws:

  1. Visual Inhomogeneity: Open-domain images naturally contain both "dominant" regions (objects central to the query) and "noisy" regions (irrelevant backgrounds). Standard models treat all regions equally, which degrades the quality of the extracted features.
  2. Neglecting Text-Priority: The modification text should dictate what matters in the reference image. For instance, if the text says "remove most of the trees in the background," those trees suddenly become highly relevant to the query. Standard models fail to give the text semantic priority, leading to a visual focus bias.
Figure 1: (a) gives an example of the CIR task. (b) demon- strates the phenomenon of inhomogeneity in visual samples, where images frequently comprise dominant and noisy re- gions. (c) illustrates the advantages of applying text-priority during multimodal feature composition. The image caption treats “trees” as background noise information, which is in- consistent with the focus on modification text and may result in inaccurate composition results. However, when modifica- tion text is the primary objective, “trees” can be re-identified as the dominant region, thereby facilitating the construction of more accurate composed features.

Methods

The authors propose the segmentatiOn-based Focus shiFt reviSion nETwork (OFFSET), which breaks the retrieval pipeline into three core modules:

  1. Dominant Portion Segmentation: To eliminate background noise, the model uses BLIP-2 to generate a clean caption of the reference image. This caption, along with the image, is fed into CLIPSeg to generate a segmentation mask that isolates the dominant visual regions.
  2. Dual Focus Mapping: This module consists of Visual Focus Mapping (VFM) and Textual Focus Mapping (TFM). It uses cross-attention mechanisms to map the focus from the segmentation mask onto both the local and global features of the image and text. A Multi-Grained Focus Projection (MG-FP) layer then unifies these multi-channel features into a fixed number of focus channels ($P$).
  3. Textually Guided Focus Revision: Instead of simply adding or concatenating the image and text features, this module uses the modification text to adaptively shift the focus of the reference image features, driving the combined query representation closer to the target image.

The network is optimized using a combination of standard batch-based classification loss (BBC) and a novel Focus Regularization (FR) loss, which uses KL-divergence to ensure the focus distribution of the composed query matches that of the target image.

Figure 2: The proposed OFFSET consists of three key modules: (a) Dominant Portion Segmentation, (b) Dual Focus Mapping, and (c) Textually Guided Focus Revision, where (a) and (b) collectively form the feature extractor.

Datasets

The OFFSET model was evaluated on three widely accepted CIR benchmarks:

  • FashionIQ: A fashion-domain dataset split into Dresses, Shirts, and Tops & Tees.
  • Shoes: A specialized fashion dataset focusing on footwear modifications.
  • CIRR (Composed Image Retrieval on Real-life Images): A complex, open-domain dataset featuring real-world images and intricate text modifications.

Key Insights and Ideas

  • Text Redefines "Noise": Background elements usually dismissed as noise can become critical dominant regions if the modification text explicitly mentions them. OFFSET handles this dynamically.
  • Uniform Focus Channels ($P$): Local and global features naturally have different channel dimensions. By projecting them into a uniform focus channel space ($P$), the model prevents spatial misalignment during multi-modal fusion. The authors found that performance peaks at $P=4$.
  • Efficiency via Targeted Fusion: Many state-of-the-art models rely on heavy Large Language Models (LLMs) during inference to understand user intent. OFFSET proves that combining lightweight segmentation (CLIPSeg) with smart feature mapping yields better accuracy with a fraction of the computational overhead.

Key Results

OFFSET consistently outperformed all traditional and VLP-based baselines across all three datasets:

  • FashionIQ: Achieved a state-of-the-art average Recall@10 of 62.59% (a 1.00% relative improvement over the previous best baseline, DQU-CIR).
  • CIRR: Reached a Recall@1 of 52.19% and a $R_{subset}@1$ of 81.37%.
  • Efficiency Win: Crucially, OFFSET reduced inference time per sample by 40.27% compared to DQU-CIR (1.04 seconds vs. 2.05 seconds), making it highly practical for real-world deployment.

Qualitative case studies show that OFFSET successfully preserves unmodified image regions while precisely executing fine-grained text requests, such as changing both the "sole and heel" of a shoe to clear plastic rather than just the sole.

Qualitative case studies comparing OFFSET to a baseline without Focus Mapping (w/o FM).

Limitations and Future Work

While OFFSET demonstrates impressive robustness, its performance is inherently tied to the zero-shot capabilities of its frozen front-end models (BLIP-2 and CLIPSeg). If the initial captioning or segmentation step fails drastically on highly unusual objects, that error will propagate through the focus mapping modules.

For future work, the authors plan to extend the OFFSET framework to adjacent downstream tasks, such as multimodal information detection and object manipulation.

Summary updated

BibTeX
@inproceedings{chen2025offset,
  author = {Zhiwei Chen and Yupeng Hu and Zixu Li and Zhiheng Fu and Xuemeng Song and Liqiang Nie},
  title = {{OFFSET: Segmentation-based Focus Shift Revision for Composed Image Retrieval}},
  booktitle = {ACM Multimedia},
  year = {2025},
  doi = {10.1145/3746027.3755366},
}
Figure