Manuscript Offprint

arXiv:2611.00784

ConstraintMatch: Compositional Image-Text Matching through Constrained Regional Evidence Selection

Yuhong Zhou, Yubo Gao, Xiangbo Shu

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

Abstract

Local image-text matching can find strong evidence for individual concepts yet favor captions with incorrect attribute-entity bindings. We introduce ConstraintMatch, a training-free inference method that turns entity-level regional consistency into an explicit matching cost. On the same frozen condition-region similarity matrix, it compares independent crop selection for each category and attribute with a shared crop choice within each entity. Their gap quantifies the score advantage obtained by relaxing the shared-region constraint. Spatial references from the same image calibrate this gap by keeping category evidence fixed while jointly shifting an entity's attribute maps. Per-entity clipping prevents cancellation across residuals, and the scaled mean cost is subtracted from global similarity. ConstraintMatch uses pooled embeddings, and spatial calibration requires no additional encoder calls. With parameters fixed per backbone across tasks, ConstraintMatch improves over global matching by 7.70 percentage points on full ARO Attribute and 5.63 points on held-out SugarCrepe++ attribute swaps, averaged across Qwen 2B and CORE 2B. Against SGI adapted to the same 13-crop budget, the respective gains are 4.85 and 3.51 points. Controlled analyses distinguish the effects of shared-region matching and candidate score calibration. The results establish entity-level evidence selection as a practical scoring principle for compositional multimodal retrieval.

1. Introduction

Recognizing the objects and attributes in a scene does not by itself establish whether a caption assigns them correctly. In Fig. 1, a brown horse with a white mane and a white horse with a brown mane contain the same concepts but specify different bindings. The restaurant example makes the same distinction across objects: red stools and a blue table versus blue stools and a red table. Distinguishing these descriptions requires evidence for the relationship between an attribute and its entity, making attribute binding a central challenge in compositional image-text matching [19, 27, 35].

Global embeddings summarize scene content but can overlook correspondences between individual conditions [10, 18, 23, 35]. Recent approaches address this issue through phrase-level crop selection (SGI) [19], refinement of object and attribute representations (ABE-CLIP) [39], and explicit constraint execution over concept evidence (LCSE) [1]. These approaches motivate a closer look at evidence selection within an entity. We ask how much the matching score increases when category and attribute conditions may select regions independently instead of sharing one region, and whether this advantage can inform compositional matching.

The distinction matters because strong individual matches can support an incorrect composition. For the phrase blue stools in Fig. 1, category evidence could come from the stools while color evidence comes from the table. Rewarding these separate matches does not establish that the stools are blue. Comparing the two selection rules on identical evidence quantifies the advantage of allowing such separate choices, without attributing differences to a changed encoder or a different crop pool.

We introduce ConstraintMatch, a training-free method that turns this selection advantage into an entity-level correction to global similarity. Frozen encoders produce a condition-region similarity matrix from fixed image crops and separate category and attribute descriptions. Independent selection finds the best crop for each condition before averaging; shared selection averages condition evidence before choosing a crop. Sharing applies within an entity, while different entities retain separate choices. Their difference measures the score advantage obtained by relaxing the shared-region requirement, giving the correction an explicit interpretation in terms of evidence selection.

Fixed crops provide an approximation to object consistency: a crop can contain multiple objects, and an object's

∗^{*}Corresponding author.

Horse and mane

Figure

(a)

Stools and table

Figure

(b)

Figure 1. Attribute binding in SCPP [6]. Checks/crosses mark positive/swapped captions with the same entities and colors. Text is shortened; (b) is cropped for display.

conditions can favor different crops. ConstraintMatch calibrates this variation using spatial references from the same image. Category score maps remain fixed while an entity's attribute maps shift together, preserving their mutual alignment. The reference adjusts the observed gap, and each entity's residual is clipped at zero before averaging, with zero-cost entities retained. The scaled mean cost is subtracted from global similarity (Figure 2). All operations use standard pooled embeddings; spatial calibration reuses existing similarities without further encoder calls.

With one parameter setting fixed per backbone, ConstraintMatch improves over global matching by 7.70 percentage points on full ARO Attribute and 5.63 points on held-out SugarCrepe++ (SCPP) attribute swaps, averaged across Qwen 2B and CORE 2B. It also outperforms SGI at the same regional budget on these binding tasks. COLA is used in development; we reevaluate the previously analysed ARO and held-out SCPP benchmarks with the method and parameters fixed. We additionally examine bidirectional matching, broader task families and inference cost to relate the gains to task structure and the evidence available to the method.

Our contributions are:

  • An entity-level correction that compares independent and shared selection on identical frozen evidence, calibrates their gap with same-image spatial references, and retains nonnegative entity costs without additional training.
  • An analysis separating shared-region discrimination from candidate score calibration, and clarifying how the independent reference, spatial adjustment, entity aggregation and parsing support shape compositional matching.
  • Attribute-binding gains from ConstraintMatch over global matching and budget-matched SGI on two backbones, with evaluations of bidirectional matching, transfer and computational tradeoffs.

References (40)