Introduction
Achieving precise alignment between visual regions and textual tokens is a fundamental challenge in cross-modal retrieval. While global alignment—matching a full caption to an entire image—has seen significant progress, fine-grained alignment (e.g., matching the word "spatula" to its specific pixels in a cluttered kitchen) remains problematic. Existing methods often suffer from "noisy attention," where models fixate on visually salient but semantically irrelevant areas. Furthermore, they typically oversimplify uncertainty, assuming rigid one-to-one mappings between words and regions, failing to capture the inherent ambiguity of complex scenes.
To address these issues, we present GRM (Granularity-aware and Region-uncertain Modeling), a framework that replaces brittle cross-modal attention with intra-modal significance filtering and models image regions as probabilistic Gaussian mixtures.
The GRM Framework
The GRM architecture introduces three primary innovations to enhance fine-grained correspondence: significance-aware adapters, region prompting, and fine-grained uncertainty modeling.
Significance and Granularity-aware Adapters
Rather than relying on cross-modal attention—which can be easily misled by unfamiliar pairs—GRM utilizes intra-modal adapters. These modules analyze statistical biases within each modality independently to identify salient features. By learning what "matters" in an image or text string before attempting to match them, the model becomes significantly more robust.
Region Prompting and Uncertainty Modeling
GRM employs learnable "region prompts" that aggregate patch-level information into higher-level semantic proxies. This eliminates the need for heavy, pre-trained object detectors, allowing for a more scalable, end-to-end transformer-based system.
The core innovation of GRM lies in its treatment of these regions. Instead of fixed vectors, regions are modeled as multivariate Gaussian distributions. By injecting noise during training via the reparameterization trick, the model learns to account for "one-to-many" relationships and inherent visual-textual ambiguity.
Experimental Evaluation
We evaluated GRM on the Flickr30K and MS-COCO benchmarks using various backbones, including ViT-Base, Swin-Base, and BERT-base.
Key Results
GRM consistently established new state-of-the-art (SOTA) performance:
- Flickr30K: Achieved an
rSumimprovement of 2.1% to 5.6% over previous methods. - MS-COCO: Demonstrated gains of 1.3% to 4.0% on the 1K split and 1.9% to 5.6% on the 5K split.
- Efficiency: By avoiding two-stage detection pipelines, GRM offers a more practical solution for real-world deployment without sacrificing fine-grained accuracy.
Insights on Architecture
Our analysis revealed that the optimal number of region prompts is highly dependent on the image backbone. For instance, ViT (with its global attention) requires only 5 prompts, whereas the hierarchical Swin Transformer needs 50 prompts to capture the full scene context effectively.
Conclusion and Future Directions
GRM demonstrates that modeling ambiguity as a feature—rather than a bug—leads to more robust cross-modal retrieval. While the model shows sensitivity to hyperparameter weighting, its ability to handle region-level uncertainty marks a significant step forward. Future work will explore automated weight tuning and the application of region-uncertain modeling to complex tasks like Vision-Language Navigation and Visual Question Answering.
Summary updated