TL;DR
This paper introduces Contextual Composed Image Retrieval (CoCo-IR), a novel task that shifts image retrieval from isolated, single-turn queries to multi-turn, interactive dialogues. To solve this, the authors present Transformable Image Embeddings (TIE)—an end-to-end Large Multimodal Model (LMM) framework that natively tracks full interaction histories—alongside an autonomous data engine that generates high-quality training data without human annotation.
What Problem Does This Paper Address?
Standard Composed Image Retrieval (CIR) allows a user to look for an image using a combination of a source image and a text instruction (e.g., "change this blue car to red"). However, real-world visual search is inherently iterative and exploratory. Users frequently refine their queries across multiple turns, change their minds, or make context-dependent references to past steps (e.g., "make it brighter than the second image" or "go back to the original viewpoint").
Existing CIR models are architecturally restricted to single-turn inputs and cannot handle an interleaved history of multiple images and text instructions. Even if an external LLM is used to summarize the conversation history into a single prompt, critical visual details are often compressed or lost, leading to retrieval failures.
Methods
The authors propose a unified framework called Transformable Image Embedding (TIE), built on top of the Gemma 3 LMM backbone, which introduces two key architectural innovations:
- The $\langle\text{EMB}\rangle$ Token Bottleneck: Instead of extracting embeddings from the final text token (which is naturally biased toward its immediate semantic predecessors), TIE introduces a specialized $\langle\text{EMB}\rangle$ token at the end of each turn. This acts as a global information bottleneck, forcing the model to aggregate the entire multi-turn history into a compact, query-aware embedding.
- Hybrid Attention Mechanism: To maintain temporal order while ensuring deep multimodal fusion, the model uses bidirectional (full) attention within each turn (allowing text and image tokens to interact freely) and causal attention across turns to respect the chronological flow of the dialogue.
The model is trained using a non-symmetric, single-side contrastive learning objective (InfoNCE loss) that pulls the query embedding closer to the positive target image while pushing it away from negative samples.
To power the model without expensive human labeling, the authors built an Autonomous LMM-Driven Data Engine:
- Pair Discovery: Finds semantically related web images using feature clustering and webpage metadata co-occurrence.
- Self-Reflection Synthesis: Prompts an LMM (Gemini 2.5) to generate instructions and score its own outputs on a two-dimensional scale (image-pair quality and instruction clarity) to filter out noisy data.
- Hard Negative Mining: Uses the LMM as a verifier to select challenging negative images that are visually similar to the target but fail to satisfy the text instruction.
Datasets
The model was evaluated on both traditional single-turn benchmarks and a newly introduced multi-turn benchmark:
- Single-Turn Benchmarks: Fashion IQ (FIQ), CIRR, and CIRCO.
- CoCo-IR Benchmark (New): A newly constructed multi-turn evaluation dataset containing dialogue chains ranging from 1 to 4 turns (21,084 single-turn, 3,129 two-turn, 883 three-turn, and 392 four-turn queries). Performance is measured using a strict m-turn Recall@k metric, which considers a retrieval successful only if the correct image is found at every single turn of the trajectory.
Key Insights and Ideas
- Dialogue Context Cannot Be Losslessly Compressed: Standard models using an external LMM (like Gemini 2.5 Pro) to summarize history into a single text prompt consistently underperform compared to native end-to-end tracking. Maintaining the raw interleaved history internally is crucial.
- The Recency Bias of "Last Tokens": Relying on standard text-embedding extraction methods fails in multi-turn settings because the final token's hidden state over-indexes on the most recent instruction, ignoring the broader context. The dedicated $\langle\text{EMB}\rangle$ token successfully mitigates this.
- High Data Efficiency via Self-Reflection: By using two-dimensional quality filtering during data generation, the synthetic data engine provides incredibly strong training signals. TIE out-performed state-of-the-art baselines while using 14× fewer training samples than prior work.
Key Results
- Single-Turn State-of-the-Art: TIE achieved 39.4 mAP@5 on the open-domain CIRCO benchmark and 38.7 Recall@1 on CIRR, outperforming existing specialized CIR models.
- Multi-Turn Dominance: On the challenging 4-turn CoCo-IR benchmark, the TIE-12B model maintained a robust 44.1% Recall@1. In comparison, traditional CIR models adapted with text-concatenation or latest-input heuristics collapsed to near-zero recall, and even the strong Gemini-summarized context baseline only reached 28.2% Recall@1.
Limitations and Future Work
- Fine-Grained Spatial Understanding: The model occasionally struggles with transformations requiring precise spatial reasoning, such as tracking object layouts, orientations, relative positions, or highly localized edits across multiple turns.
- Synthetic Data Gap: Although the data engine produces high-quality data that generalizes well to human benchmarks, it remains entirely synthetic and may not fully capture the messy diversity of real-world human search behavior.
- Horizon Limits: The current evaluation benchmark maxes out at 4 turns; extending the framework to evaluate and handle much deeper interaction histories remains an open direction.
Summary updated