TL;DR
Composed Image Retrieval (CIR) models often fail when processing rare text instructions and easily confuse visually similar "hard negative" images with the true target. The proposed MELT (Modification frEquentation-rarity baLance neTwork) framework solves this by dynamically amplifying rare semantic tokens using a text-guided rarity metric and iteratively purifying the image-text similarity matrix via a diffusion-based denoiser. This dual-pronged approach achieves new state-of-the-art performance on major CIR benchmarks, particularly in fine-grained domains like fashion.
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 to retrieve a specific target image. Think of asking a system to find a picture of a dog, but specifying: "Make it a much smaller dog with white fur in the hands of a person."
Despite recent advances, existing CIR methods stumble over two major hurdles:
- Rare Sample Neglect (Frequency Bias): Datasets are inherently imbalanced. Common terms like "dog" or "sitting" dominate training, causing models to ignore rare, fine-grained instructions (e.g., "in the hands of a person"). As a result, the model biases toward common objects and misses subtle, localized modifications.
- Vulnerability to Hard Negatives: In specialized domains like fashion, candidate images often look incredibly similar. Standard single-pass similarity scoring systems are easily corrupted by this background noise, leading to ranking errors where a "hard negative" sample edges out the true target.
Methods
To tackle these challenges, the authors introduce MELT, which consists of two novel modules integrated into a unified retrieval pipeline:
1. Rarity-Aware Token Refinement (RATR)
Instead of treating all text modifications equally, RATR geometrically measures how "rare" a modification is.
- First, it uses a text-guided attention mechanism (a Transformer-decoder layer) to map which image tokens correlate with the text instructions.
- It then calculates a fitting score based on two metrics: residual energy (derived via Mahalanobis Distance to measure the magnitude of the modification) and cosine similarity (to assess the direction of the semantic shift).
- If the score exceeds a specific threshold, the sample is flagged as "rare," and the model dynamically calibrates and amplifies the corresponding image tokens before fusing them into the final composed feature ($F_c$).
2. Diffusion-Based Similarity Denoising (DSD)
Rather than relying on a single-pass similarity matrix which can be easily distorted by hard negatives, DSD treats the initial similarity scores as a noisy signal.
- It employs a lightweight Denoising Diffusion Implicit Model (DDIM) to iteratively refine the similarity matrix over multiple steps.
- By modeling the interference of hard negatives as Gaussian noise, the denoiser gradually smooths out false similarity peaks, progressively converging on a robust, purified similarity matrix ($\hat{S}$).
- The module is trained using a combination of batch-based classification loss ($L_{bbc}$), diffusion loss ($L_{diff}$), and a knowledge distillation loss ($L_{KD}$) to align the initial and refined distributions.
Datasets
The authors evaluated MELT on two widely accepted CIR benchmarks:
- CIRR (Composed Image Retrieval on Real-life images): An open-domain dataset containing real-world images with highly diverse, natural language modification descriptions.
- FashionIQ: A domain-specific dataset focused entirely on fashion items (divided into Dresses, Shirts, and Tops & Tees). This dataset is notorious for containing highly detailed text modifications and dense clusters of visually similar hard negative images.
Key Insights and Ideas
- Rarity as a Geometric Shift: A key "aha moment" is treating rarity not just as a word-frequency count, but as an anomalous geometric shift in the embedding space. By combining Mahalanobis distance (magnitude) and cosine similarity (direction), the model dynamically senses when an instruction forces it out of its comfort zone.
- Denoising the Matrix, Not the Image: While diffusion models are typically used to generate pixels or features, MELT applies diffusion directly to the similarity matrix. This clever formulation reframes the challenge of ranking hard negatives as a iterative denoising problem.
- Domain Asymmetry: The framework provides a much larger performance leap in specialized domains (FashionIQ) than in open domains (CIRR). This proves that long-tail semantics and hard negatives are the primary bottlenecks preventing CIR models from succeeding in real-world commercial applications like e-commerce.
Key Results
MELT achieved state-of-the-art (SOTA) performance across nearly all evaluation metrics on both datasets:
- FashionIQ: MELT achieved an average Recall@10 of 59.20% and Recall@50 of 79.86%, outperforming the closest baseline (ENCODER) by 3.07% and 2.27% absolute percentages respectively.
- CIRR: The model demonstrated strong generalization, pushing the absolute Recall@1 to 52.76% and achieving a SOTA average score of 81.84%.
- Ablation Validation: Ablation studies proved that removing the token modification component (
wo_R_mod) caused the most severe performance drops, validating that actively adjusting features for rare samples is vital for accurate retrieval.
Limitations and Future Work
Not discussed in the paper.
Summary updated