Introduction
Traditional image retrieval systems typically operate in isolation: they either search based on text queries (e.g., "red running shoes") or visual similarity (finding images that look like a query photo). However, real-world e-commerce and search scenarios are often more nuanced and interactive. A user might find a pair of sandals they like but wish to see similar options with a different heel type or color. This necessitates "language-guided retrieval," where a visual query is modified by a natural language instruction.
This paper introduces Joint Visual Semantic Matching (JVSM), a unified framework designed to bridge the gap between visual and textual representations. By learning a shared embedding space, JVSM allows for the seamless composition of images and text, enabling more flexible and accurate search experiences.
The JVSM Framework
The core of JVSM is its ability to "compose" an image and a text modification into a single query vector within a shared visual-semantic embedding space. The architecture consists of four primary modules:
- Visual Embedding Module: Utilizes a MobileNet-based CNN to extract high-level feature vectors from images.
- Textual Embedding Module: Employs an LSTM to process both descriptive attributes and modification instructions.
- Semantic Projection Layers: Linear layers that map visual and textual features into a common 512-dimensional space.
- Compositional Module: Built upon the Text Image Residual Gating (TIRG) mechanism, this module uses a gating function to fuse the image features with the modification text, effectively "overwriting" specific visual attributes with textual instructions.
Leveraging Privileged Information
A standout feature of JVSM is the use of "privileged information" during the training phase. While users at test time only provide an image and a modification (e.g., "make these shoes red"), training datasets often contain detailed attribute descriptions (e.g., "red leather sneakers with white soles"). JVSM forces the composed query to align with these detailed descriptions in the shared space. This auxiliary task acts as a powerful regularizer, helping the model learn more robust and semantically grounded representations than previous methods.
Versatile Retrieval Capabilities
Because JVSM maps all inputs—images, text, and their compositions—into a single shared space, it is inherently task-agnostic. As illustrated in Figure 1, the same model can handle three distinct retrieval modes:
- Image-to-Image: Finding visually similar items.
- Text-to-Image: Standard keyword-based search.
- Language-Guided: Modifying a visual query with text (e.g., "replace wedge heels with block heels").
Experimental Results
The researchers evaluated JVSM on three major fashion benchmarks, where it demonstrated significant improvements over existing state-of-the-art models like TIRG. On the Fashion-200k dataset, JVSM achieved a 19.0% Recall@1, a substantial jump from the previous best of 14.1%.
On the UT-Zap50k dataset, which features fine-grained shoe metadata, JVSM more than doubled the performance of the baseline, moving from 4.5% to 10.6% Recall@1. Qualitatively, the model proved adept at capturing complex, multi-attribute changes such as "animal print" or "fit and flare" styles, which often confuse simpler retrieval systems.
Conclusion and Future Directions
JVSM represents a significant step forward in multimodal retrieval by effectively combining visual and semantic information. By utilizing privileged attribute data, the model achieves a deeper understanding of the relationship between what we see and how we describe it.
However, challenges remain. The authors noted that "ground truth" in fashion can be subjective; a model might correctly identify a requested color change but be penalized if the target image also contains an unrequested style variation. Furthermore, the current model lacks spatial awareness, treating images as global features. Future work focusing on spatial-aware embeddings—allowing the model to distinguish between a collar and a hem—and integrating other feedback modalities like user clicks could further refine the interactive search experience.
Summary updated