ARTEMIS: Attention-based Retrieval with Text-Explicit Matching and Implicit Similarity

Ginger Delmas, Rafael Sampaio de Rezende, Gabriela Csurka, Diane Larlus

Introduction

Searching for specific items in large visual databases often requires more than just a simple keyword or a reference image. A user might find a dress they like but want it with specific modifications, such as "shorter and in red." This task, known as image search with free-form text modifiers, requires a system to simultaneously understand the visual context of a reference image and the explicit instructions provided in text.

In their ICLR 2022 paper, researchers from NAVER LABS Europe introduced ARTEMIS, a lightweight framework designed to address this challenge. ARTEMIS achieves state-of-the-art results by decomposing the search query into two distinct, complementary views: explicit matching of text requirements and implicit preservation of visual similarity.

Methodology: The ARTEMIS Framework

Most existing methods attempt to fuse image and text features into a single joint representation. However, this often results in "black box" models that struggle to distinguish which visual components should be modified versus preserved. ARTEMIS avoids this by using a dual-module architecture:

  1. Explicit Matching (EM) Module: This module treats the task as a cross-modal retrieval problem. It uses a text-guided attention mechanism to "up-weight" visual dimensions corresponding to the text modifier (e.g., focusing on color or sleeve length) to determine how well a target image matches the requested changes.
  2. Implicit Similarity (IS) Module: This module treats the task as a modified visual search. It uses text-guided attention to "down-weight" dimensions the user wants to change, allowing the model to focus on preserving the remaining visual context (e.g., style, fabric, or neckline) from the reference image.

Unlike complex Transformer-based architectures, ARTEMIS utilizes lightweight Multi-Layer Perceptrons (MLPs) for attention and employs a simple late fusion (summation) of the EM and IS scores. This design makes the model highly efficient and easy to train.

Evaluation and Datasets

The performance of ARTEMIS was validated across several major benchmarks, including FashionIQ, Shoes, CIRR (Composed Image Retrieval on Real-life images), and Fashion200K. These datasets provide a range of challenges, from domain-specific fashion attributes to diverse real-world scenes.

Example of a long dress from the FashionIQ dataset.
A shorter dress example from the dataset.

Results and Key Insights

ARTEMIS established new performance benchmarks, significantly outperforming previous methods. On the FashionIQ dataset, it achieved a Challenge Metric (CM) of 38.17, surpassing the previous state-of-the-art of approximately 36.

Key findings from the study include:

  • Decomposition is Effective: Treating the query as two separate retrieval tasks provides a better inductive bias than single-vector fusion.
  • Text as a Filter: The IS module effectively uses text as a "negative filter," identifying which visual features to ignore during similarity comparisons.
  • Efficiency: By avoiding heavy cross-attention mechanisms, ARTEMIS maintains high inference speeds, making it suitable for real-world applications.

Qualitative analysis using Grad-CAM visualizations confirmed that the EM module focuses on modified traits (like patterns), while the IS module focuses on structural similarities (like shape).

Conclusion and Future Work

While ARTEMIS represents a significant step forward, it faces limitations in handling linguistic nuances like negation (e.g., "not colorful") and subjective terms (e.g., "cuter"). Future research will focus on integrating more sophisticated natural language understanding to address these complexities while preserving the efficient dual-module structure that defines the ARTEMIS approach.

Summary updated

BibTeX
@inproceedings{delmas2022artemis,
  author = {Ginger Delmas and Rafael Sampaio de Rezende and Gabriela Csurka and Diane Larlus},
  title = {{ARTEMIS: Attention-based Retrieval with Text-Explicit Matching and Implicit Similarity}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=-fFofpLRJhw},
}
Figure