Manuscript Offprint

arXiv:2609.31202

Preserve-and-Compose Training for Composed Image Retrieval

Sehyun Kwon

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Composed image retrieval (CIR) aims to retrieve images that satisfy a user-specified modification while preserving relevant visual content from a reference image. Collecting target images for this purpose is costly, motivating zero-shot CIR methods that instead use target captions as supervision. However, target captions may omit source details that should be preserved. We therefore propose PACT, Preserve-and-Compose Training, which complements target-caption supervision with visual evidence from the source image. PACT learns from image-text-text (ITT) triplets without target images or gallery updates, aligning composed queries with target captions while preserving source evidence through visual supervision. We further introduce Chord scoring, which combines target similarity with source-relative directional agreement in the frozen image space. Results across four ZS-CIR benchmarks show that combining target-caption supervision with source-image evidence leads to strong retrieval performance across datasets, backbone scales, and external galleries. The code is available on GitHub.

1 INTRODUCTION

“Show the same person practicing martial arts” is not a complete description of an image. This is the central challenge of composed image retrieval (CIR), which retrieves an image by combining a reference image with a user-specified modification. The instruction specifies an action; the reference image tells the system whom to retrieve. Composed image retrieval (CIR) must combine these complementary inputs: it should change the attributes named in the instruction while retaining relevant visual evidence from the reference. A result that follows the instruction but depicts the wrong person is no more satisfactory than one that preserves the person but ignores the requested action.

Learning this behavior requires supervision about both what should change and what should remain. A matched source–modification–target-image triplet provides a direct example, but finding or generating a target that satisfies both requirements is costly. This motivates learning without explicit target images. Image–caption pairs support visual inversion, and language-based approaches provide inexpensive compositional supervision (Saito et al., 2023; Gu et al., 2024; Byun et al., 2025). More recently, source images have been paired with modification instructions and generated target captions (Li et al., 2024; Li et al., 2026). These alternatives make composition learning possible without collecting a corresponding target image for every instruction.

Target captions nevertheless provide incomplete evidence about the desired result. A caption such as “a person practicing martial arts” can express the requested action without specifying the person’s appearance or clothing. Those details may still matter for retrieval, even when neither the instruction nor the generated caption mentions them. The source image contains evidence that can complement this textual target. The challenge is therefore not simply to expose a model to an image and a modification, but to use the available supervision to learn a query that reflects both.

To address this gap, we propose PACT, Preserve-and-Compose Training, which combines caption-endpoint learning with source-image and negative-caption supervision. PACT optimizes a lightweight MLP mapper and LoRA parameters in the text encoder, while keeping the image encoder and gallery embeddings fixed. This design learns composition directly in the vision–language embedding space, without requiring target images or modifying the gallery. It also avoids heavy generative models during retrieval, making the model directly applicable to existing galleries.

Figure

Figure 1: Supervise both the requested change and the available source evidence. Training triplets pair a source image with a modification instruction and a target caption, providing a modification target together with a real visual teacher. The diagram characterizes supervision signals, not measured failure rates of all methods in each family.

Figure 1 contrasts the supervision used by different approaches to learn composed queries. Image inversion learns a query representation from the source image without explicit edit-target supervision, while text composition uses a target caption to supervise the desired change. Image-text composition additionally conditions the query on the source image, but still uses the target caption as the primary learning target.

PACT instead assigns complementary roles to the two available sources of supervision. The target caption specifies the desired modification, while the source image provides direct evidence of what should be preserved. Accordingly, each composed query is aligned with its target caption, whereas the shared representation across multiple modifications of the same source is aligned with the source-image embedding. This encourages the query to reflect the requested change without discarding visual information that the target caption leaves unspecified.

We also introduce Chord scoring to complement composition learning at retrieval time. Standard cosine similarity measures how well a candidate matches the composed query, but does not account for whether its change from the reference is consistent with the requested modification. Chord augments query–candidate similarity with agreement between the change from the identity query to the modified query and the change from the reference image to each candidate. While related directional matching has been explored previously (Tursun et al., 2026; Wang et al., 2025), Chord combines this change-based agreement with standard similarity and can be applied to existing query models without retraining. We evaluate both its overall retrieval gains and its ability to resolve ambiguous rankings under cosine similarity.

PACT achieves state-of-the-art or competitive results across four CIR benchmarks, with strong gains on CIRR and CIRCO. Beyond benchmark scores, qualitative retrieval over external image and movie galleries shows that PACT better preserves reference-specific visual identity while following the requested modification, compared with a strong prior method. PACT is also highly efficient to train. The ViT-L/14 model requires less than one hour on a single RTX 3090, while keeping the image encoder and gallery representations frozen. Together, these results demonstrate that PACT combines strong retrieval accuracy, visual preservation, and practical training efficiency.

Our contributions are:

• We introduce PACT, a preserve-and-compose training framework that combines target-caption supervision with source-image grounding, enabling CIR without target-image supervision or gallery updates.

• We propose Chord scoring, a training-free retrieval rule that jointly considers query–candidate similarity and whether the candidate changes from the reference consistently with the requested modification.

• PACT achieves state-of-the-art or competitive performance across four CIR benchmarks, preserves reference-specific visual identity in large external galleries.

References (100)

Couldn't load all references. Reload the page to try again.