CoCo-IR: Contextual Composed Image Retrieval
Proposes CoCo-IR and TIE model, leveraging large multimodal models for multi-turn contextual image retrieval; achieves 39.4 mAP@5 (single-turn) and 44.1 R@1 (4-turn).
Key Findings
Methodology
This paper introduces a Transformable Image Embedding (TIE) architecture based on large multimodal models (LMMs), designed for context-aware multi-turn image retrieval. The model encodes entire interaction histories into a unified, dynamic embedding using a special <EMB> token, capturing the evolution of user intent. During training, a fully autonomous data engine generates high-quality multi-turn interaction data by leveraging LMMs for instruction synthesis, self-reflection, and hard negative mining, significantly reducing manual annotation efforts. The model employs contrastive learning (InfoNCE) loss to optimize the embedding space, ensuring relevant images are close while negatives are distant. The architecture integrates bidirectional attention within turns and causal attention across turns, enabling deep multimodal fusion and temporal consistency. Extensive experiments on both single-turn benchmarks (CIRCO) and the newly proposed multi-turn benchmark demonstrate state-of-the-art performance, with 39.4 mAP@5 and 44.1 R@1 respectively.
Key Results
- On the CIRCO single-turn benchmark, the TIE model achieved 39.4 in mAP@5, surpassing previous models, validating its effectiveness in single-turn scenarios.
- In the multi-turn setting, the model maintained robust performance with 44.1 in R@1 over four turns, significantly outperforming prior methods like 28.2, indicating strong context understanding.
- The autonomous data engine enabled training with 14 times fewer samples than prior approaches, yet achieved superior results, demonstrating the efficiency of data generation strategies.
Significance
This work advances the field of visual search by moving beyond static, single-query models to a dynamic, multi-turn interactive framework that aligns with real-world user behaviors. The integration of large multimodal models with autonomous data synthesis paves the way for more intelligent, adaptable systems capable of understanding complex, evolving instructions. Such systems can revolutionize applications like virtual assistants, e-commerce, and virtual tours by enabling seamless, natural dialogues that refine search results iteratively. The approach also addresses key bottlenecks in data annotation and model scalability, offering a scalable blueprint for future research in multimodal, multi-turn AI systems.
Technical Contribution
The core technical innovation lies in the TIE architecture, which employs a dedicated <EMB> token to encode the entire interaction history into a single, transformable embedding. This design overcomes the limitations of traditional fixed or last-token embeddings, allowing the model to adapt dynamically across multiple dialogue turns. The hybrid attention mechanism—full bidirectional within turns and causal across turns—facilitates deep multimodal fusion while maintaining temporal order. The autonomous data engine, powered by LMMs, employs self-reflection and hard negative mining to generate large-scale, high-quality multi-turn datasets without manual labeling. The training leverages contrastive learning (InfoNCE) to optimize embedding discriminability, resulting in a model that excels in both single- and multi-turn scenarios. The experimental results validate the architecture’s effectiveness and scalability.
Novelty
This research is the first to integrate large multimodal models with a specialized <EMB> token for dynamic, multi-turn context encoding in image retrieval. Unlike prior methods limited to static or single-query settings, this approach enables continuous, context-aware refinement across multiple dialogue turns. The autonomous data generation pipeline, combining self-reflection and hard negative mining, further distinguishes this work by creating large, high-quality datasets without manual annotation. These innovations collectively push the boundaries of multimodal, interactive AI, offering a new paradigm for complex visual search tasks.
Limitations
- The model's understanding of highly ambiguous or extremely complex instructions remains imperfect, especially in cases requiring long-range dependency modeling over many turns.
- While the autonomous data engine reduces annotation costs, the generated data may lack the diversity and nuance of real user interactions, potentially limiting generalization.
- Computational costs are significant, particularly for large-scale models and multi-turn inference, posing challenges for deployment in resource-constrained environments.
Future Work
Future research will focus on enhancing the model's robustness to ambiguous instructions, possibly through better contextual encoding or user feedback mechanisms. Expanding the data engine to incorporate real user interactions and feedback could improve data realism and model adaptability. Additionally, efforts to optimize model efficiency—via pruning, distillation, or more efficient attention mechanisms—will be crucial for real-world deployment. Extending the framework to other modalities like video or 3D data, and exploring lifelong learning paradigms for continuous adaptation, are promising directions.
AI Executive Summary
In an era where digital content is proliferating at an unprecedented rate, the demand for intelligent and interactive image retrieval systems has surged. Traditional models excel at static, single-query searches but falter when faced with complex, evolving user intents that require multiple rounds of refinement. This gap between current capabilities and real-world needs has motivated researchers to develop more sophisticated, context-aware retrieval frameworks.
This paper introduces the concept of Contextual Composed Image Retrieval (CoCo-IR), a novel task that models image search as an interactive dialogue. Unlike conventional methods, CoCo-IR allows users to iteratively refine their search through multiple turns, referencing previous images and instructions. The key challenge lies in enabling the system to understand and adapt to the evolving context, which is addressed through a new architecture called Transformable Image Embedding (TIE). TIE leverages a large multimodal model (LMM) with a dedicated <EMB> token that encodes the entire interaction history into a single, dynamic embedding, capturing the semantic evolution across turns.
To train such a complex system without relying on expensive manual annotations, the authors develop a fully autonomous data engine powered by LMMs. This engine synthesizes high-quality multi-turn interaction data by generating transformation instructions, performing self-reflection to score data quality, and mining hard negatives to improve discriminability. The data engine effectively creates large-scale, diverse datasets that enable robust training of the TIE model.
Extensive experiments demonstrate the effectiveness of the approach. On the single-turn CIRCO benchmark, the model achieves 39.4 in mAP@5, outperforming previous methods. More impressively, in the multi-turn setting, the model maintains a strong performance with 44.1 in R@1 over four turns, significantly surpassing existing baselines. These results validate the model’s ability to understand complex, context-dependent instructions and adapt dynamically.
Overall, this work marks a significant step forward in interactive visual search, bridging the gap between static retrieval and natural, multi-turn dialogue. It opens new avenues for deploying intelligent, conversational systems in various applications, from e-commerce to virtual assistants. Despite some limitations in handling highly ambiguous instructions and computational costs, the proposed framework sets a new standard for future research in multimodal, multi-turn AI systems.
Deep Analysis
Background
The evolution of multimodal learning has seen significant milestones, starting from early dual-encoder models like CLIP that aligned image and text representations in a shared space for zero-shot retrieval. These models excel in static scenarios but lack the capacity for deep reasoning or multi-turn interactions. Recent advances introduced foundation models such as Florence and Gato, which integrate vision and language for more sophisticated understanding. Despite these progressions, most existing systems are limited to single-query retrieval, unable to support iterative refinement or complex dialogues. Static datasets like MS COCO and Flickr30k provided foundational benchmarks, but they lack the dynamic, multi-turn interaction annotations necessary for training conversational retrieval systems. The challenge has been to develop models that can understand and leverage context over multiple exchanges, which is crucial for real-world applications like virtual assistants, e-commerce, and virtual tours. This paper builds upon these developments, aiming to create a scalable, context-aware retrieval framework that can handle complex, multi-turn interactions.
Core Problem
Current image retrieval systems predominantly operate in a single-turn setting, where the user provides an initial query and receives a static set of results. This paradigm fails to accommodate the iterative, exploratory nature of human search behavior, where users refine their intent based on intermediate results. The core problem is enabling models to understand and incorporate the entire interaction history—comprising previous images and instructions—into the retrieval process. Existing approaches often rely on prompt summarization or external models to compress context, which leads to information loss and reduced accuracy. Additionally, the lack of large-scale, high-quality multi-turn datasets hampers the training and evaluation of such systems. Addressing these issues requires innovative model architectures capable of dynamic context encoding, as well as scalable data generation methods that do not depend on manual annotation, to facilitate robust learning and real-world deployment.
Innovation
The primary innovations include: 1) The TIE architecture, which employs a dedicated <EMB> token to encode the entire dialogue history into a single, transformable embedding, allowing the model to adapt dynamically across multiple turns. 2) A hybrid attention mechanism that combines bidirectional attention within each turn for deep multimodal fusion and causal attention across turns to preserve temporal order. 3) An autonomous data engine that leverages large multimodal models for instruction synthesis, self-reflection, and hard negative mining, enabling the creation of extensive multi-turn datasets with minimal human effort. 4) The use of contrastive learning (InfoNCE) to optimize the embedding space, ensuring discriminability and robustness. These innovations collectively enable the model to understand complex, evolving user intents in a conversational manner, significantly advancing the state-of-the-art in multi-turn image retrieval.
Methodology
- �� Architecture Design: Introduce a special <EMB> token at the end of each turn’s input, which prompts the model to generate a global, transformable embedding representing the entire interaction history.
- �� Attention Mechanism: Within each turn, employ bidirectional attention to fuse visual and textual modalities deeply; across turns, use causal attention to maintain temporal sequence.
- �� Training Objective: Use contrastive learning with InfoNCE loss, contrasting query embeddings with positive target images and hard negatives, to maximize discriminability.
- �� Data Generation: Develop a scalable pipeline that discovers image pairs with meaningful transformations via feature clustering and webpage co-occurrence, then uses LMMs to generate transformation instructions and perform self-reflection for quality filtering.
- �� Hard Negative Mining: Use LMM-based verification to identify challenging negatives that are visually similar but do not satisfy instructions, enhancing model robustness.
- �� Multi-turn Chain Construction: Concatenate multiple single-turn samples into multi-turn sequences, with LMM rewriting instructions to ensure contextual coherence.
- �� Quality Control: Apply multi-stage filtering and human verification to ensure high data quality for training and evaluation.
Experiments
The evaluation employs both the CIRCO single-turn benchmark and a newly constructed multi-turn benchmark. Metrics include mAP@5 for single-turn and R@1 for multi-turn scenarios. The training involves ablation studies to assess the impact of <EMB> tokens, attention mechanisms, and data quality filters. Baseline comparisons include traditional CIR models, prompt-based summarization methods, and recent foundation model-based approaches. Hyperparameters such as embedding dimensions, number of transformer layers, and attention heads are tuned for optimal performance. The experiments also analyze the effect of sequence length, negative sample hardness, and data filtering thresholds. Cross-scenario tests demonstrate the model’s robustness and generalization capabilities.
Results
The model achieves 39.4 in mAP@5 on CIRCO, outperforming previous state-of-the-art methods by a significant margin. In the multi-turn setting, it maintains a high performance of 44.1 in R@1 over four turns, whereas prior approaches collapse to around 28.2. Ablation studies confirm that the <EMB> token and hybrid attention are critical for performance gains. The autonomous data engine produces high-quality multi-turn datasets with minimal manual effort, enabling training with only a fraction of the data typically required. The model demonstrates strong generalization across different interaction lengths and instruction complexities, validating the effectiveness of the architecture and data strategies.
Applications
This technology can be immediately applied to intelligent virtual assistants, enabling users to refine image searches through natural multi-turn dialogues. It also benefits virtual shopping platforms, where consumers can iteratively specify preferences, and virtual tour guides, providing context-aware scene exploration. The framework supports multimodal interfaces that combine images and text seamlessly, enhancing user experience in e-commerce, education, and entertainment. Long-term, the approach paves the way for fully conversational AI systems capable of understanding complex, evolving instructions across diverse modalities, transforming human-computer interaction into a more natural, intuitive process.
Limitations & Outlook
Despite its strengths, the model struggles with highly ambiguous or extremely complex instructions that require long-range context understanding. The autonomous data engine, while scalable, may generate less diverse or overly synthetic data, affecting real-world robustness. Computational costs remain high, especially for large models and multi-turn inference, limiting deployment in resource-constrained environments. Additionally, the current system is primarily validated on image datasets; extending to video or 3D data introduces new challenges. Future work must address these limitations through more efficient architectures, richer datasets, and adaptive learning strategies.
Plain Language Accessible to non-experts
想象你在一家超级大的图书馆里找书。你有一份清单,告诉图书馆员你想要的书,比如“我想找关于太空的书”。图书馆员会帮你找到符合要求的书,但如果你告诉他“我还想看那本关于火星的书”,他会记住你之前的需求,然后帮你找到更具体的书。你可以不断告诉他新的要求,他会根据你之前说的内容,逐步帮你找到最符合你心意的书。这就像你和图书馆员在对话一样,彼此理解、不断调整搜索目标。传统的搜索系统就像只听你一句话,帮你找一本书,但不能记住你之前说的内容,也不能帮你逐步细化。而本文的方法,就像这个聪明的图书馆员一样,能记住你说的每一句话,理解你的变化,帮你一步步找到你想要的书。这让搜索变得更智能、更贴心,也更符合我们日常生活中和朋友聊天的感觉。
ELI14 Explained like you're 14
想象你在玩一个超级酷的游戏,你可以和游戏里的角色聊天,告诉它你想找一辆红色跑车,然后它会帮你找到符合要求的图片。接下来,你又说“把车变成蓝色”,它会记住你之前说的话,然后帮你找到一辆蓝色的跑车。这个游戏角色不仅能理解你说的话,还能记住你之前的指令,逐步帮你实现想法。传统的系统就像只听你说一句话,帮你找一辆车,但不能记住你之前说的内容,也不能帮你一步步实现你的想法。而这篇论文的技术就像这个聪明的游戏角色一样,能记住你说的每一句话,理解你的变化,帮你一步步找到你想要的图片。这让和电脑的对话变得更像和朋友聊天一样自然,特别适合用在智能助手、虚拟导游和购物网站上,让我们的生活变得更方便、更有趣。
Glossary
Large Multimodal Model (LMM) 大型多模态模型
一种融合视觉和语言信息的深度学习模型,能够同时处理图像和文本,实现复杂推理和交互,本文中用于生成和理解多轮交互数据。
作为模型架构的基础,用于实现TIE和自主数据引擎。
Transformable Image Embedding (TIE) 可变换图像嵌入
一种支持多轮上下文动态变化的图像表示机制,通过特殊<EMB>标记,将多轮交互历史编码为单一的、可调整的嵌入向量,用于多轮上下文理解。
核心技术创新,用于支持多轮交互的上下文感知检索。
<EMB> 标记
在模型中作为特殊的符号,用于引导模型生成全局信息的压缩表示,特别是在多轮交互中聚合历史信息。
在TIE架构中,<EMB>标记是实现动态上下文编码的关键。
InfoNCE 损失
一种对比学习的目标函数,通过最大化正样本与负样本的相似度差异,提升嵌入空间的判别性。
训练模型时,用于优化图像与文本的匹配能力。
硬负样本挖掘
在训练中主动寻找与正样本相似但不符合条件的负样本,增强模型区分能力。
通过自主数据引擎实现,提升模型鲁棒性。
注意力机制
一种模仿人类注意力的机制,使模型在处理多模态信息时能够重点关注关键部分。本文采用双向和因果混合注意力。
实现深度融合和上下文保持。
多轮交互
用户与系统之间多次对话,每轮基于前一轮的结果调整指令,逐步逼近目标。
本文的核心任务场景。
对比学习
通过比较正负样本,学习判别性强的特征空间,用于提升检索准确性。
训练TIE模型的关键技术。
自主数据引擎
利用大规模模型自动生成多轮交互数据,包括指令、图像对和硬负样本,降低人工标注成本。
实现大规模训练的基础。
多轮链构建
自动拼接多轮交互样本,形成连续对话序列,增强模型对上下文的理解能力。
数据预处理和训练的重要环节。
Abstract
Current instruction-based image retrieval systems are powerful but limited to single-turn interactions, failing to capture the iterative nature of complex, real-world visual searches. To overcome this limitation, we introduce Contextual Composed Image Retrieval (CoCo-IR), a novel task that enables users to progressively refine search results through interactions. We address this new task by proposing a new model based on a Large Multimodal Model (LMM) that functions as a context-aware reasoner for CoCo-IR. Our model interprets the entire interaction history to generate Transformable Image Embeddings (TIE) that evolve across turns. To fuel the model training without expensive human annotations, we develop a fully autonomous, scalable data engine that leverages LMMs to generate high-quality contextual retrieval data, and uses model-guided verification to mine challenging hard negatives. Extensive experiments demonstrate that our approach establishes new state-of-the-art performance: We achieve 39.4 mAP@5 on the challenging single-turn benchmark CIRCO; furthermore, on our new CoCo-IR benchmark, our model maintains robust performance with 44.1 R@1 on 4-turn dialogues, dramatically outperforming existing methods (28.2 4-turn R@1) that fail to handle multi-turn context. Project page: https://CoCo-IR.github.io.
References (20)
Composing Text and Image for Image Retrieval - an Empirical Odyssey
Nam S. Vo, Lu Jiang, Chen Sun et al.
Learning Transferable Visual Models From Natural Language Supervision
Alec Radford, Jong Wook Kim, Chris Hallacy et al.
Gemma 3 Technical Report
Gemma Team Aishwarya Kamath, Johan Ferret, Shreya Pathak et al.
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
Xiaoxiao Guo, Hui Wu, Yupeng Gao et al.
CompoDiff: Versatile Composed Image Retrieval With Latent Diffusion
Geonmo Gu, Sanghyuk Chun, Wonjae Kim et al.
MagicLens: Self-Supervised Image Retrieval with Open-Ended Instructions
Kai Zhang, Yi Luan, Hexiang Hu et al.
Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilities
Gheorghe Comanici, E. Bieber, Mike Schaekermann et al.
Image Retrieval on Real-life Images with Pre-trained Vision-and-Language Models
Zheyuan Liu, Cristian Rodriguez-Opazo, Damien Teney et al.
Zero-Shot Composed Image Retrieval with Textual Inversion
Alberto Baldrati, Lorenzo Agnolucci, Marco Bertini et al.
Align before Fuse: Vision and Language Representation Learning with Momentum Distillation
Junnan Li, Ramprasaath R. Selvaraju, Akhilesh Deepak Gotmare et al.
E5-V: Universal Embeddings with Multimodal Large Language Models
Ting Jiang, Minghui Song, Zihan Zhang et al.
MegaPairs: Massive Data Synthesis For Universal Multimodal Retrieval
Junjie Zhou, Zheng Liu, Ze Liu et al.
LAION-5B: An open large-scale dataset for training next generation image-text models
Christoph Schuhmann, R. Beaumont, R. Vencu et al.
Representation Learning with Contrastive Predictive Coding
Aäron van den Oord, Yazhe Li, O. Vinyals
Can Pre-trained Vision and Language Models Answer Visual Information-Seeking Questions?
Yang Chen, Hexiang Hu, Yi Luan et al.
Pic2Word: Mapping Pictures to Words for Zero-shot Composed Image Retrieval
Kuniaki Saito, Kihyuk Sohn, Xiang Zhang et al.
Visual Instruction Tuning
Haotian Liu, Chunyuan Li, Qingyang Wu et al.
BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation
Junnan Li, Dongxu Li, Caiming Xiong et al.
InstructPix2Pix: Learning to Follow Image Editing Instructions
Tim Brooks, Aleksander Holynski, Alexei A. Efros
CoCa: Contrastive Captioners are Image-Text Foundation Models
Jiahui Yu, Zirui Wang, Vijay Vasudevan et al.