Self-Training Boosted Multi-Factor Matching Network for Composed Image Retrieval

Haokun Wen, Xuemeng Song, Jianhua Yin, Jianlong Wu, Weili Guan, Liqiang Nie · DOI

TL;DR

This paper introduces LIMN (muLtI-factor Matching Network), a framework for Composed Image Retrieval (CIR) that breaks down complex image-text queries into multiple latent matching factors rather than relying on a single global vector. To address the chronic data scarcity in CIR, the authors also present LIMN+, which introduces an iterative dual self-training paradigm that leverages an image difference captioning model to automatically annotate unlabeled image pairs, setting a new state-of-the-art across multiple benchmarks.

What Problem Does This Paper Address?

Composed Image Retrieval (CIR) is a multimodal search task where a user provides a reference image along with a modification text (e.g., "like this dress, but dark blue and with a lapel collar") to find a specific target image.

Existing CIR methods suffer from two major limitations:

  1. Coarse Matching (Single-Vector Bottleneck): They compress the multimodal query and the target image into single global vectors to calculate similarity. This ignores the fact that a query usually contains multiple distinct matching factors (e.g., color, collar style, sleeve length) that need to be evaluated independently against the target image.
  2. Data Scarcity: Training CIR models requires triplets of <reference image, modification text, target image>. Because the text must be manually annotated by humans, these datasets are small and expensive to make, leading to overfitting. Meanwhile, a vast number of potential reference-target image pairs within the datasets remain completely unlabeled and unused.

Methods

The authors tackle these challenges with a two-pronged approach: the LIMN architecture and the LIMN+ self-training paradigm.

1. LIMN Architecture

LIMN uses a pre-trained CLIP backbone combined with a masked Transformer to isolate and match individual features:

  • Latent Factor Tokens Mining: Global features from CLIP are passed through learnable condition masks to disentangle the query and target representations into $U$ distinct latent factor tokens (e.g., one token for color, one for sleeves).
  • Dual Aggregation: A masked Transformer performs two tasks simultaneously: it aggregates local features (from intermediate CLIP layers) into the latent factor tokens to enrich them, and then aggregates those factor tokens into a final "matching token" for efficient inference.
  • Dual Query-Target Matching: The model optimizes both the final matching tokens and the intermediate latent factor tokens using a batch-based classification loss.
Fig. 2. Illustration of our proposed LIMN. It consists of three modules: (a) disentanglement-based latent factor tokens mining, (b) dual aggregation-based matching token learning, and (c) dual query-target matching modeling.

2. Iterative Dual Self-Training (LIMN+)

To exploit unlabeled data, the authors leverage the duality between CIR and Image Difference Captioning (IDC)—a task that generates text describing the differences between two images.

Fig. 3. The proposed iterative dual self-training paradigm for boosting the performance of LIMN and deriving LIMN+, which consists of five steps.

As shown in Figure 3, the self-training pipeline operates as a flywheel:

  1. An IDC model automatically generates pseudo-modification texts for unlabeled image pairs.
  2. The trained LIMN model scores these generated pseudo-triplets, filtering out low-quality or noisy samples.
  3. The high-quality pseudo-triplets are combined with the original data using an asymmetric alternating training strategy (training $n$ epochs on real data for every 1 epoch on pseudo-data) to prevent the model from being corrupted by noisy labels.

Datasets

The framework was evaluated on four prominent CIR benchmarks:

  • FashionIQ: A fashion retrieval dataset split into three categories (Dresses, Shirts, Tops&Tees) featuring natural language modifications.
  • Shoes: A dataset containing fine-grained relative captions for shoe retrieval.
  • CIRR (Composed Image Retrieval on Real-life images): An open-domain dataset utilizing real-world images from NLVR2.
  • Fashion200K: A large-scale fashion dataset where modification text is automatically generated via templates (used only to test the base LIMN model, as it does not suffer from data scarcity).

Key Insights and Ideas

  • Unsupervised Disentanglement: The model successfully learns distinct matching factors (like "vamp material" for shoes or "shoulder design" for shirts) using only global L1 regularization and factor identifier tokens, without needing explicit factor-level annotations.
  • Exploiting Task Duality: Recognizing that CIR and IDC are inverse problems allows the authors to use an off-the-shelf IDC model (like DUDA) as an automated data annotator, effectively creating a semi-supervised data expansion loop.
  • The Importance of Filtering: Directly mixing pseudo-labels with human labels degrades performance. The filtering step (using LIMN to score pseudo-triplets) and the asymmetric training cadence are critical to making self-training work in multimodal retrieval.

Key Results

LIMN and LIMN+ consistently outperformed all state-of-the-art baselines, including strong CLIP-based models like Clip4cir.

Quantitative Performance

  • FashionIQ: LIMN+ achieved an average R@10 of 57.43% and R@50 of 78.60%, representing a massive leap over traditional baselines and outperforming the closest CLIP baseline (Prog. Lrn.).
  • CIRR: LIMN+ achieved a state-of-the-art R@1 of 43.33% and R@5 of 75.41%, notably outperforming Clip4cir (38.53% R@1).
Quantitative results on the FashionIQ and Shoes datasets.
Quantitative results on the open-domain CIRR dataset.

Qualitative Impact

The self-training paradigm proved particularly effective at handling rare features. For instance, in cases where the query demanded a rare attribute like "leopard pattern" (which had few examples in the training set), LIMN+ successfully retrieved the correct target image where the base LIMN model failed, thanks to the influx of generated pseudo-triplets containing that attribute.

Limitations and Future Work

  • Computational Complexity: The multi-factor tokenization and the use of a masked Transformer add computational overhead, increasing model complexity during training.
  • Unified Frameworks: Currently, the IDC model acts as an offline assistant. The authors note that future work should focus on unifying CIR and IDC into a single, end-to-end joint framework.
  • Multi-Turn Retrieval: The current iteration is designed for single-turn retrieval, but real-world applications (like conversational shopping assistants) require adapting this multi-factor approach to multi-turn dialogue systems.

Summary updated

BibTeX
@article{wen2024self,
  author = {Haokun Wen and Xuemeng Song and Jianhua Yin and Jianlong Wu and Weili Guan and Liqiang Nie},
  title = {{Self-Training Boosted Multi-Factor Matching Network for Composed Image Retrieval}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2024},
  doi = {10.1109/tpami.2023.3346434},
}
Figure