ENCODER: Entity Mining and Modification Relation Binding for Composed Image Retrieval

Zixu Li, Zhiwei Chen, Haokun Wen, Zhiheng Fu, Yupeng Hu, Weili Guan

Introduction

Composed Image Retrieval (CIR) is a sophisticated multimodal task where a system must retrieve a target image based on a dual query: a reference image and a modification text (e.g., "Change this red dress to a blue one with long sleeves"). While existing methods have made strides using large-scale pre-trained models like CLIP, they often focus on general semantic alignment rather than the specific relationship between visual elements and textual instructions.

The authors of ENCODER identify a critical gap: current systems frequently fail to capture the modification relation—understanding exactly which "action" in the text modifies which "entity" in the image. This is complicated by irrelevant background factors, vague boundaries between entities and actions in latent space, and a lack of explicit supervision for these relations.

The ENCODER Framework

To address these limitations, the authors propose the Entity miNing and modifiCation relatiOn binDing nEtwoRk (ENCODER). This framework moves beyond simple cross-modal matching to explicitly model the binding between visual entities and modification actions through three core modules.

The ENCODER architecture, illustrating the Latent Factor Filter (LFF), Entity-Action Binding (EAB), and Multi-scale Composition (MSC) modules.

1. Latent Factor Filter (LFF)

The LFF module uses a threshold gating mechanism to separate features into "latent factors" (relevant to the requested modification) and "shelving factors" (parts of the reference image that should be preserved). This effectively reduces noise from irrelevant background elements or filler words in the query.

2. Entity-Action Binding (EAB)

This is the central innovation of the paper. It utilizes Learnable Relation Queries (LRQ)—a set of modality-shared vectors that act as a relational bridge. These queries interact with both image and text features to mine visual entities and modification actions. By using KL-divergence to ensure the similarity distributions of entities and actions are consistent, the model effectively "binds" them together in a shared relational space.

3. Multi-scale Composition (MSC)

Instead of a single global feature, MSC integrates features at multiple levels: global, local, latent, and shelving. It employs an MLP-based weighting mechanism to fuse these scales into a final multimodal query representation, ensuring that both fine-grained details and overall context are preserved.

Experimental Results

ENCODER was evaluated on four major CIR benchmarks: FashionIQ, Shoes, Fashion200K, and the open-domain CIRR dataset. The model achieved new state-of-the-art results across the board:

  • FashionIQ: 19.8% improvement in R@10 (Average) over the previous best baseline.
  • Shoes: 17.9% improvement in R@1.
  • CIRR: Reached a top score of 77.45 on the overall benchmark metric.
  • Fashion200K: Outperformed baselines by 6.8% in R@1.
Qualitative examples demonstrating how Learnable Relation Queries (LRQ) focus on specific entity-action pairs in both open-domain (left) and fashion (right) scenarios.

Qualitative case studies demonstrate the effectiveness of the LRQ mechanism. As shown in the figure above, the queries successfully focus on specific pairs, such as linking the "penguin" entity in an image to the "pelican" modification in the text, or identifying specific attributes like "straps" and "longer" in fashion queries.

Conclusion

ENCODER demonstrates that explicit entity-action binding is a powerful paradigm for Composed Image Retrieval. By filtering irrelevant information and using shared learnable queries to bridge modalities, the model achieves a deeper understanding of user intent than standard alignment-based methods. While the model shows some sensitivity to hyper-parameters like the number of latent factors, its superior performance across diverse benchmarks establishes a new standard for the field.

Summary updated

BibTeX
@inproceedings{li2025encoder,
  author = {Zixu Li and Zhiwei Chen and Haokun Wen and Zhiheng Fu and Yupeng Hu and Weili Guan},
  title = {{ENCODER: Entity Mining and Modification Relation Binding for Composed Image Retrieval}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i5.32541},
}
Figure