TRACE: Transform Aggregate and Compose Visiolinguistic Representations for Image Search with Text Feedback

Surgan Jandial, Ayush Chopra, Pinkesh Badjatiya, Pranit Chawla, Mausoom Sarkar, Balaji Krishnamurthy

Abstract

The ability to efficiently search for images is essential for improving the user experiences across various products. Incorporating user feedback, via multi-modal inputs, to navigate visual search can help tailor retrieved results to specific user queries. We focus on the task of text-conditioned image retrieval that utilizes support text feedback alongside a reference image to retrieve images that concurrently satisfy constraints imposed by both inputs. The task is challenging since it requires learning composite image-text features by incorporating multiple cross-granular semantic edits from text feedback and then applying the same to visual features. To address this, we propose a novel framework SAC which resolves the above in two major steps: "where to see" (Semantic Feature Attention) and "how to change" (Semantic Feature Modification). We systematically show how our architecture streamlines the generation of text-aware image features by removing the need for various modules required by other state-of-art techniques. We present extensive quantitative, qualitative analysis, and ablation studies, to show that our architecture SAC outperforms existing techniques by achieving state-of-the-art performance on 3 benchmark datasets: FashionIQ, Shoes, and Birds-to-Words, while supporting natural language feedback of varying lengths.

Introduction

Text-Conditioned Image Retrieval (TCIR) is a multi-modal search paradigm where a user provides a reference image and a natural language query to find a target image. For instance, in e-commerce, a user might find a dress they like but want it with "shorter sleeves and a deeper neck." The system must then retrieve images that preserve the core identity of the reference while modifying specific attributes mentioned in the text.

The TCIR task: combining a reference image with text feedback to retrieve a target image.

This task is inherently difficult because it requires a delicate balance: the model must learn to modify specific visual features dictated by the text while perfectly preserving the visual features that are not mentioned. Previous state-of-the-art methods often perturbed the entire image representation, necessitating complex, computationally heavy "preservation" modules to recover unchanged parts of the image.

The SAC Framework: Semantic Attention Composition

To address these challenges, we introduce SAC (Semantic Attention Composition). SAC streamlines the retrieval pipeline into two intuitive stages: "where to look" and "how to change."

The SAC architecture, featuring Semantic Feature Attention (SFA) and Semantic Feature Modification (SFM) modules.

1. Semantic Feature Attention (SFA) - "Where to look"

Instead of altering the whole image, SFA uses the text embedding as a convolutional kernel over the image's spatial features. This generates a 2D saliency map that highlights exactly which pixels need modification based on the text. By attending only to relevant regions, the rest of the image is naturally preserved, eliminating the need for separate preservation modules.

2. Semantic Feature Modification (SFM) - "How to change"

Visual concepts exist at different levels of abstraction. SAC extracts image features at multiple depths of a CNN and uses an LSTM to aggregate them. It then employs a novel Residual Offsetting operation to fuse these multi-level image features with text features. This creates a final composite embedding that captures both broad structural changes and fine-grained texture or color edits.

3. Training Objectives

The model is trained using a primary Triplet Loss, supported by a Discriminator Loss to align the composed embedding with the target image's actual embedding, and a Consistency Loss to ensure the composed vector retains distinct visual and linguistic properties.

Experimental Results

SAC was evaluated on three diverse benchmark datasets: FashionIQ (clothing), Shoes (footwear), and Birds-to-Words (fine-grained bird descriptions).

  • State-of-the-Art Performance: SAC outperformed existing baselines like TIRG, ComposeAE, and VAL across all datasets. On FashionIQ, it improved R@10 and R@50 metrics by an average of 3-4%.
  • Efficiency: SAC achieves these results with significantly fewer parameters—21.74M compared to the 61.76M required by previous leading models like VAL. This makes SAC roughly three times more parameter-efficient.
  • Robustness: The model demonstrated strong performance even with long, paragraph-length descriptions in the Birds-to-Words dataset, proving its versatility across different text lengths.

Conclusion and Future Work

SAC demonstrates that targeted spatial attention is superior to global perturbation for text-conditioned image retrieval. By framing text as a spatial filter, the architecture becomes simpler and more efficient.

A current limitation in TCIR is the reliance on exact-match retrieval metrics. Often, models retrieve images that perfectly satisfy the user's query but are penalized because they do not match the specific ground-truth annotation. Future work should focus on developing adaptive evaluation metrics that reward qualitatively coherent results.

Summary updated

BibTeX
@inproceedings{jandial2022trace,
  author = {Surgan Jandial and Ayush Chopra and Pinkesh Badjatiya and Pranit Chawla and Mausoom Sarkar and Balaji Krishnamurthy},
  title = {{TRACE: Transform Aggregate and Compose Visiolinguistic Representations for Image Search with Text Feedback}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=bni_bp4WCFk},
}
Figure