SPARC: Semantic Calibration with Latent Multimodal Knowledge for Robust Image-Text Retrieval
Organizations: Sichuan University · National University of Singapore · North China University of Technology · Nanjing University of Science and Technology ·
Abstract
Robust image-text retrieval aims to maintain accurate cross-modal matching when image or text queries are incomplete, supporting reliable information access in real-world applications. However, existing methods typically focus on adapting to distribution shifts, without adequately addressing candidate discrimination for incomplete queries and ranking instability. To this end, we propose semantic projection and alignment with relational constraints (SPARC), which elicits latent multimodal knowledge from frozen encoders to improve candidate discrimination and ranking stability. Specifically, we first devise a semantic calibration module on a product of spheres that refines incomplete visual and textual features through tangent-space updates, maintaining the unit-sphere structure used for cosine similarity. Second, we introduce a robust semantic guidance module that combines latent multimodal knowledge encoded in complete image-text features with cross-modal semantic anchors to promote semantic alignment of the calibrated features. Finally, we introduce a matching relation constraint module that fuses original query features with their calibrated counterparts and applies a soft ranking constraint to penalize reductions in initially positive matching margins, thereby limiting ranking perturbations. Extensive experiments on Flickr30K and COCO demonstrate that SPARC outperforms competing methods under various image occlusion and word deletion settings, while achieving consistent gains across different pretrained backbones.
Figures & tables
| (a) R@1 (%) | 25% | 50% | 75% | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Method | CM | RM | WD | CM | RM | WD | CM | RM | WD |
| Flickr30K [ 48 ] | |||||||||
| AlignCLIP [ 9 ] | 51.00 | 50.30 | 41.54 | 30.40 | 33.30 | 24.38 | 14.00 | 15.60 | 9.12 |
| HiMo-CLIP [ 36 ] | 51.00 | 54.90 | 49.22 | 34.20 | 35.50 | 28.64 | 12.20 | 14.40 | 10.96 |
| CalibCLIP [ 19 ] | 53.90 | 59.20 | 37.32 | 35.60 | 39.70 | 21.18 | 16.90 | 17.60 | 8.14 |
| Frozen CLIP [ 34 ] | 54.10 | 59.20 | 41.24 | 36.70 | 39.80 | 23.90 | 17.50 | 17.50 | 9.26 |
| (a) Complete inputs | Flickr30K [ 48 ] | COCO [ 29 ] | ||||||
|---|---|---|---|---|---|---|---|---|
| R@1 (%) | RSum | R@1 (%) | RSum | |||||
| Method | I T | T I | I T | T I | I T | T I | I T | T I |
| CLIP-Adapter [ 12 ] | 74.40 | 56.56 | 265.40 | 226.92 | 46.40 | 24.13 | 196.12 | 127.38 |
| AlignCLIP [ 9 ] | 74.70 | 58.28 | 260.00 | 232.10 | 34.28 | 22.86 | 164.02 | 128.40 |
| Fine-tuned CLIP | 78.00 | 62.54 | 269.80 | 241.44 | 51.30 | 34.64 | 210.18 | 168.12 |
| CalibCLIP [ 19 ] | 78.20 | 54.60 | 272.30 | 221.46 | 50.16 | 26.84 | 208.48 | 140.80 |
| (a) R@1 (%) | 25% | 50% | 75% | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Method | CM | RM | WD | CM | RM | WD | CM | RM | WD |
| Flickr30K [ 48 ] – CLIP ViT-B/16 | |||||||||
| Frozen CLIP | 59.30 | 65.50 | 44.70 | 42.80 | 44.10 | 26.66 | 24.60 | 25.70 | 10.02 |
| Fine-tuned CLIP | 75.40 | 76.80 | 53.20 | 60.70 | 60.60 | 34.60 | 39.00 | 40.00 | 13.12 |
| SPARC (Ours) | 77.40 | 78.20 | 55.52 | 60.80 | 61.40 | 35.18 | 42.40 | 41.70 | 13.92 |
| Flickr30K [ 48 ] – CLIP ViT-L/14 | |||||||||
| Modules | Flickr30K | COCO | |||||
|---|---|---|---|---|---|---|---|
| Setting | SC | RSG | MRC | mR@1 | mRSum | mR@1 | mRSum |
| CLIP ViT-B/32 | |||||||
| Baseline | ✗ | ✗ | ✗ | 33.24 | 150.56 | 14.86 | 84.28 |
| FD | ✗ | ✗ | ✗ | 42.03 | 179.03 | 21.18 | 120.07 |
| Joint FD | ✓ | ✗ | ✓ | 44.74 | 187.12 | 25.07 | 126.34 |
| A1 | ✓ | ✗ | ✗ | 40.24 | 172.40 | 20.91 | 108.77 |
| Perturbation group | Types | Settings per type | Conditions |
|---|---|---|---|
| Image perturbations | 17 | 5 | 85 |
| Text: character level | 6 | 5 | 30 |
| Text: word level | 5 | 5 | 25 |
| Text: sentence level | 5 | 1 | 5 |
| Text total | 16 | Mixed | 60 |
| mR@1 (%) | mRSum | ||||||
|---|---|---|---|---|---|---|---|
| Dataset | Backbone | Base | FT | SPARC | Base | FT | SPARC |
| Flickr30K [ 48 ] | CLIP ViT-B/32 [ 34 ] | 33.24 | 43.47 | 150.56 | 181.16 | ||
| CLIP ViT-B/16 [ 34 ] | 38.15 | 50.38 | 167.44 | 201.12 | |||
| CLIP ViT-L/14 [ 34 ] | 42.20 | 53.54 | 180.14 | 207.59 | |||
| SigLIP2 ViT-B/32 [ 42 ] | 34.16 | 41.94 | 150.99 | 176.42 | |||
| COCO [ 29 ] | CLIP ViT-B/32 [ 34 ] | 14.86 | 23.83 | 84.28 | 120.81 | ||
| 25% | 50% | 75% | |||||||||||||||||
| R@1 (%) | RSum | R@1 (%) | RSum | R@1 (%) | RSum | ||||||||||||||
| CM | RM | WD | CM | RM | WD | CM | RM | WD | CM | RM | WD | CM | RM | WD | CM | RM | WD | ||
| Dataset | Method | I T | I T | T I | I T | I T | T I | I T | I T | T I | I T | I T | T I | I T | I T | T I | I T | I T | T I |
| Flickr30K [ 48 ] | SPARC (seed 42) | 70.60 | 72.00 | 51.94 | 254.70 | 256.30 | 215.70 | 52.50 | 53.60 | 32.80 | 216.10 | 215.80 | 158.14 | 30.20 | 29.70 | 12.74 | 145.20 | 150.10 | 82.08 |
| SPARC (seed 43) | 70.80 | 71.60 | 51.50 | 255.80 | 255.20 | 216.36 | 52.50 | 53.70 | 32.52 | 215.90 | 216.80 | 157.42 | 30.00 | 29.70 | 13.30 | 145.40 | 149.20 | 82.38 | |
| SPARC (seed 44) | 71.30 | 72.10 | 51.90 | 254.80 | 256.50 | 216.48 | 52.50 | 54.10 | 32.84 | 216.90 | 216.90 | 159.76 | 30.40 | 30.00 | 12.78 | 145.60 | 150.10 | 82.08 | |
| Incomplete queries mR@1 (%) | Complete queries I T R@1 (%) | |||||
|---|---|---|---|---|---|---|
| Setting | Flickr30K [ 48 ] B/32 | COCO [ 29 ] B/32 | Flickr30K [ 48 ] L/14 | COCO [ 29 ] L/14 | Flickr30K [ 48 ] B/32 | COCO [ 29 ] B/32 |
| Full SPARC | ||||||
| w/o Reference Consistency | ||||||
| w/o Anchor-Relation KL | ||||||
| w/o Complete-Input Identity | ||||||
| Variant | Update | Mixing Weight | Ranking Constraint |
|---|---|---|---|
| Direct (= A2) | Tangent Update | 1.0 | Off |
| Normalized Residual | Residual then Normalization | 0.6 | On |
| Mixed | Tangent Update | 0.6 | Off |
| Ranking Regularized | Tangent Update | 1.0 | On |
| SPARC | Tangent Update | 0.6 | On |
| Dataset | Variant | mR@1 (%) | mRSum | Deg. (%) | Rep. (%) |
|---|---|---|---|---|---|
| Flickr30K [ 48 ] | Direct | ||||
| Normalized Residual | |||||
| Mixed | |||||
| Ranking Regularized | |||||
| SPARC | |||||
| COCO [ 29 ] | Direct |
| Panel | Feature location | Annotations and records |
|---|---|---|
| A: local category readability | Final CLIP [ 34 ] visual patch states before ln_post and projection; overlap-area pooling and normalization | Target category, target box (Flickr30K Entities [ 32 ] or COCO [ 29 ] ), and patch indices after preprocessing |
| B1: SAE / pre-TopK responses | Projected, normalized global image features input to the fixed Top- SAE [ 11 ] ; pre-activations and Top- codes | Category-associated unit lists and fixed unit-selection rules |
| B2: semantic specificity | Exactly the same features and SAE as B1 | Semantic units, matched control units, and the matching criteria |
| B3: category-direction response | Projected, normalized global image features | Fixed category directions determined from clean training data |
| C1: readable but mismatched | Global retrieval features; final EOT retrieval features for natural text missingness | Category labels, frozen readability thresholds, and true-pair IDs |
| C2: positive/negative similarity decline | The same global query features against the fixed complete gallery | Positive IDs and the hardest-negative selection rule |
| Item | Configuration |
|---|---|
| Category / fine-grained probes | Separate linear one-vs-rest logistic regressions with regularization; selected by validation AP |
| Readability thresholds | Class-specific thresholds selected on validation data and frozen before testing; AP itself does not require these thresholds |
| SAE inputs | Projected, normalized global image features from clean training images; separate SAE for each dataset and backbone |
| SAE architecture | Top- SAE [ 11 ] ; expansion factor 8; 4,096 latent units for ViT-B/32 and 6,144 for ViT-L/14; Top- |
| SAE optimization | Adam, learning rate , batch size 256, at most 50 epochs; checkpoint selected by validation reconstruction error |
| Data separation | Captions, regions, and corrupted views from one source image remain in the same split; test data are excluded from hyperparameter selection |
| Panel | Flickr30K [ 48 ] B/32 | Flickr30K [ 48 ] L/14 | COCO [ 29 ] B/32 | COCO [ 29 ] L/14 | Counting unit |
|---|---|---|---|---|---|
| A | 800 | 800 | 4,000 | 4,000 | Images / target regions |
| B1 | 800 | 800 | 4,000 | 4,000 | Images |
| B2 | 800 | 800 | 4,000 | 4,000 | Images, with controls paired to the original samples |
| B3 | 800 | 800 | 4,000 | 4,000 | Images |
| C1 | 620 | 650 | 1,600 | 2,000 | Queries readable and correctly retrieved under complete input |
| C2 | 620 | 650 | 1,600 | 2,000 | The same query cohort as C1 |
| Panel | Statistic recomputed in every replicate | Pairing or aggregation |
|---|---|---|
| A | Both AP values are recomputed before taking their ratio | |
| B1 | Attenuation of SAE and pre-TopK responses | Fixed semantic units are aggregated within each image before image clusters are resampled |
| B2 | Semantic-response loss minus matched-control loss | Semantic and control records stay paired; the training-set SD used for standardization is fixed |
| B3 | Category-direction cosine difference between complete and partial features | Paired by image and fixed category direction |
| C1 | Readable-but-mismatched count divided by the initial eligible-cohort count | Original eligibility flags fixed; numerator and denominator reaggregated in each replicate |
| C2 | Positive and negative similarity declines, and their difference | Query–candidate pairing preserved; gallery and candidate-selection rule fixed |
| Dataset | Query and condition | Initial cohort | Still readable | Readable but mismatched | RBM rate (%) | 95% CI |
|---|---|---|---|---|---|---|
| Flickr30K [ 48 ] | I T, 50% CM | 700 | 490 | 155 | 22.14 | [19.14%, 25.23%] |
| T I, 50% WD | 2,500 | 1,800 | 662 | 26.48 | [24.61%, 28.39%] | |
| COCO [ 29 ] | I T, 50% CM | 1,250 | 900 | 359 | 28.72 | [26.27%, 31.21%] |
| T I, 50% WD | 6,000 | 3,900 | 1,869 | 31.15 | [29.93%, 32.38%] |
| Item | Definition |
|---|---|
| Original cohort | Frozen CLIP retrieves an incorrect Top-1 candidate for the incomplete query |
| Recovered group | SPARC’s calibrated query retrieves a correct Top-1 candidate |
| Unrecovered group | The calibrated query still retrieves an incorrect Top-1 candidate |
| Strata | Matching is separate by dataset, backbone, query modality, perturbation type, and severity |
| Match covariates | Frozen-feature retrieval margin and category-readout margin |
| Algorithm | 1:1 nearest-neighbor matching without replacement; fixed query ordering and tie-breaking rules |
Image-Text Retrieval
Image-text retrieval matches images with natural-language queries, enabling search across visual collections using either modality.
See all 45 papers