Abstract
Traditional image retrieval systems often struggle to distinguish between complex relational nuances, relying heavily on global visual features that fail to capture the specific interactions between objects. We present PRISm (Pruning-based Image Retrieval via Importance Prediction on Semantic Graphs), a novel multimodal framework that leverages scene graphs to enhance semantic retrieval. By introducing an importance-aware pruning module and an edge-aware Graph Neural Network (GNN), PRISm filters out background noise and explicitly encodes relationship semantics. Our experiments demonstrate that PRISm significantly outperforms state-of-the-art vision-language models like CLIP, achieving an 88.54% NDCG@1 on the Panoptic Scene Graph (PSG) dataset and showing remarkable robustness on noisy, auto-generated data.
Introduction
Modern image-to-image retrieval typically employs global encoders such as CLIP or DINO to map images into a shared embedding space. While effective for general object matching, these models often lack the granularity required to differentiate between distinct relational contexts. For instance, a global encoder might struggle to distinguish between a "dog biting a frisbee" and a "dog running away from a frisbee," as both images contain the same primary subjects.
Scene graphs—structured representations where nodes represent objects and edges represent their relationships—offer a promising path forward. However, existing scene-graph-based methods face two primary hurdles: the uniform treatment of all graph elements (where irrelevant background noise is weighted equally with the main subject) and the neglect of rich semantic information contained within edge features during graph processing. PRISm addresses these limitations through a dual-stream architecture that prioritizes semantic importance and relational context.
Methodology
Importance-Aware Pruning
To combat the noise inherent in complex scene graphs, PRISm utilizes an Importance Prediction Module. This module employs a Transformer-based scorer to evaluate the saliency of individual objects and triplets (subject-relation-object). By training on human-generated captions as a proxy for ground-truth importance, the model learns to prune the graph, retaining only the most semantically relevant elements. This ensures that the retrieval process focuses on the "story" of the image rather than peripheral details like background clouds or fences.
Edge-Aware Contextual GNN
Standard GNN architectures often use edges merely to define the topology of message passing, frequently discarding the specific text of the relationship. PRISm introduces an Edge-Aware Contextual GNN based on a modified GATv2 layer. In this framework, the network fuses neighbor node features with their corresponding edge features (the relationship text) via a Multi-Layer Perceptron (MLP) before calculating attention. This allows the model to contextualize messages—for example, understanding that a "person" node is specifically "playing with" another object, rather than just existing in its proximity.
Dual-Stream Fusion
The final image representation is generated through a Dual-Stream Fusion approach. The model concatenates the structured graph-level embedding with a normalized global visual embedding. This hybrid strategy allows the system to use global features as a coarse filter while relying on the scene graph for fine-grained relational reasoning. Ablation studies indicate that this multimodal synergy is critical, as removing visual features leads to a 14.5% performance drop.
Experimental Results
Performance on Standard Benchmarks
PRISm was evaluated primarily on the Panoptic Scene Graph (PSG) dataset, which provides high-quality, curated annotations. The model achieved state-of-the-art results, including 88.54% NDCG@1 and 91.62% MAP@1. Notably, PRISm outperformed CLIP by an absolute margin of +7.3% in NDCG@1 and +12.7% in MAP@1. It also surpassed prior graph-based models like Hi-SIGIR by +7.3% NDCG@1.
Robustness in the Wild
To test the model's utility in real-world scenarios where human-annotated graphs are unavailable, the authors evaluated PRISm on the Flickr30k dataset using auto-generated scene graphs (via PSGTR and BLIP). Despite the noise introduced by automated generation, PRISm maintained a significant lead, scoring 60.01% NDCG@1, a 3.5% improvement over the next best baseline. This demonstrates that the importance-aware pruning effectively mitigates the impact of upstream errors in scene graph generation.
Conclusion
PRISm represents a significant step forward in relational image retrieval. By treating scene graphs as dynamic structures where not all nodes are equal and edges carry vital semantic weight, the framework achieves superior precision in matching complex visual interactions. While the current pipeline involves multiple stages—including importance prediction and dual-stream encoding—the performance gains suggest that importance-aware relational reasoning is a powerful tool for dense visual tasks. Future research may explore the application of these principles to broader domains such as Visual Question Answering (VQA) and video action recognition.
Summary updated