1. Introduction
Salient Object Detection (SOD) aims to identify and locate objects in images or videos that attract human attention. However, existing SOD methods [
1,
2,
3,
4,
5] all assume that all salient objects are of equal importance, which contradicts the real-world situation where objects have varying degrees of saliency. To this end, Islam et al. [
6] proposed a new task, Salient Object Ranking (SOR). SOR simulates human visual attention mechanisms to rank salient objects according to their saliency. SOR provides a more nuanced analysis of visual scenes, a development particularly helpful for a deeper understanding of object importance and hierarchical relationships. As an emerging task, SOR is increasingly applied in various downstream tasks, such as object detection [
7], instance segmentation [
8], and image editing [
9].
However, the SOR task faces significant challenges, requiring not only holistic scene understanding from the model but also hierarchical, fine-grained parsing and judgment of image content. To address these challenges, researchers have proposed various methods. Some works explore objects’ semantic and spatial attributes to define their saliency order [
10,
11,
12], while others, like Liu et al. [
13], utilize Graph Convolutional Networks to model inter-object interaction and competition relationships. Despite these advances, a fundamental bottleneck persists: existing processing strategies attempt to perform a global, simultaneous ranking of all objects within a single, information-dense context. This approach, which we term “global parallel comparison,” forces the model to evaluate all objects against each other at once. As shown in
Figure 1A, this leads to two critical failure modes: (1) the model’s discriminative capacity easily saturates as the number of objects increases, leading to a sharp decline in accuracy for lower-ranked objects; (2) it is highly susceptible to “ranking ambiguity,” particularly when objects are spatially adjacent or semantically similar, because the global feature extractor struggles to isolate and compare the specific attributes of individual pairs amidst a sea of competing information. This analysis reveals that the core limitation is not merely the presence of complexity, but the inherent unsuitability of the global parallel processing architecture for fine-grained relative ranking.
Existing methods typically rely on positional, semantic, and interaction cues to mitigate ambiguity, but their discriminative power remains insufficient when dealing with spatially adjacent or semantically similar objects. Based on the performance of two methods on the IRSR dataset,
Figure 1A illustrates the impact of the number of objects on the ambiguity of the ranking. Current methods use positional, semantic, and interaction cues to reduce ambiguity. Yet they struggle with spatially adjacent or semantically similar objects.
Figure 1A shows that prediction accuracy declines sharply from Rank 1 (highest saliency) to Rank 5 (lowest saliency). This decay underscores the difficulty of accurately ranking low-saliency objects using global approaches and motivates our pairwise decomposition strategy. This reveals a fundamental limitation: evaluating all objects simultaneously within a globally cluttered context saturates discriminative capacity, causing unstable feature extraction and comparison—especially harmful for low-saliency objects.
One key factor contributing to this problem is occlusion. As shown in
Figure 1B, the influence of occlusion on the appearance of objects. The left image shows an object that is occluded (a child is occluded by two adults) and has a lower visual saliency than the pizza; the right image shows the image of the object after the based-on-repair reconstruction processing, and its visual saliency is higher than that of the pizza, correcting the previous incorrect judgment. Occlusion leads to incomplete semantic information of objects, thereby impairing the effective extraction of their saliency features and ultimately causing ranking errors. By repairing the occluded regions, the object’s semantic completeness and visual saliency can be restored, providing the possibility for the model to perform more accurate evaluation and ranking. This highlights the importance of addressing occlusion for improving SOR performance.
In recent years, Multimodal Large Models (MLMs), such as GPT-4V [
14], LLaVA [
15], Qwen-VL [
16], etc., have achieved efficient alignment of visual and linguistic semantics through pre-training on large-scale image–text pairs. These models typically use powerful visual encoders (e.g., ViT) to extract image features and employ autoregressive language models (e.g., Transformer Decoder) for cross-modal reasoning and generation, thus possessing deep scene understanding, semantic association, and logical inference capabilities. Crucially, unlike traditional models optimized for a single, global pass, MLMs excel at tasks requiring focused, local reasoning and comparison. They can process information step-by-step, following instructions to compare two specific items, leveraging their vast pre-trained knowledge to “fill in” missing information and make reasoned judgments. This inherent capability presents a direct solution to the “global parallel comparison” bottleneck identified above: we can move from a flawed global ranking process to a more robust, local, and sequential one.
Based on the above analysis, this paper proposes a novel processing strategy called PairwiseSOR-MLMs, providing an affirmative solution. The core innovation lies not in a new sensing configuration or a low-level signal processor, but in a task decomposition and execution strategy that fundamentally re-architects how the SOR problem is solved. Instead of performing a single, noise-prone global ranking, we decompose the task into a series of local, pairwise judgments that align with human comparative cognition, and delegate these judgments to Multimodal Large Models (MLMs). This “divide-and-conquer” processing strategy has the following intrinsic advantages: (1) Contextual Noise Reduction—Each comparison focuses only on two target objects and their directly associated local regions, effectively shielding the MLM’s judgment from interference by other irrelevant elements, thereby overcoming the saturation and ambiguity problems of global methods. (2) Natural Occlusion Repair—By providing MLMs with independently segmented and repaired object images, the model can leverage its powerful visual priors to mentally “complete” occluded parts during the focused pairwise comparison, a task far easier than doing so in a cluttered global scene. (3) Zero-Training and Strong Scalability—The framework is entirely based on pre-trained MLMs, requiring no task-specific fine-tuning or training, demonstrating that significant performance gains in SOR can be achieved through intelligent task decomposition rather than complex model training, and it naturally supports dynamic changes in the number of objects.
Specifically, PairwiseSOR-MLMs consists of three core stages that implement this strategy: (1) Image Segmentation and Scene Reconstruction—Utilize an instance segmentation model to extract object masks and employ image inpainting technology to erase occluding objects, revealing the complete appearance of occluded objects as a pre-processing step to feed clean inputs into the comparison stage; (2) MLM-based Pairwise Comparison—Design structured prompts to guide the MLMs to perform visual saliency comparisons for each pair of objects, judging their relative importance in a focused, local context; (3) MLM-based Global Ranking Aggregation—Integrate all pairwise comparison results, invoke the MLMs again for consistency reasoning, and output the final global object saliency ranking. This process is highly modular, interpretable, and fundamentally frees itself from the dependency of traditional methods on manual feature design or complex relationship modeling networks.
To validate the framework’s effectiveness, we conducted extensive experiments on two authoritative SOR benchmarks, ASSR and IRSR. Results show that PairwiseSOR-MLMs achieves or surpasses state-of-the-art methods in quantitative metrics and demonstrates superior situational adaptability in qualitative evaluation, particularly validating its success in overcoming the “global parallel comparison” bottleneck by performing robustly in challenging situations like object occlusion, semantic similarity, and cluttered scenes. Furthermore, through systematic ablation studies, we analyzed the impact of different MLM choices, prompt designs, and the inpainting module on final performance, further verifying the rationality and necessity of each component design.
The main contributions of this study include:
Methodological Innovation: We introduce a new task decomposition strategy for Salient Object Ranking by being the first to leverage Multimodal Large Models. Our proposed PairwiseSOR-MLMs framework shifts the paradigm from global, simultaneous ranking to a local, sequential pairwise comparison process. This directly overcomes the discriminative capacity saturation and ranking ambiguity inherent in existing global processing architectures, offering a more robust and cognitively consistent alternative.
Architectural Advancement: We construct a complete, modular pipeline that integrates image inpainting with a two-stage MLM prompting strategy. This design is a processing strategy optimization for the SOR task, where the inpainting module serves as a critical pre-processing step to mitigate occlusion, and the prompting strategy systematically converts a complex ranking problem into a series of simple, executable judgments. This enhances the system’s interpretability and scalability while demonstrably improving ranking accuracy, particularly for occluded objects.
Performance Gains and Validation: Comprehensive experiments on benchmark datasets show that PairwiseSOR-MLMs achieves state-of-the-art performance, with measurable improvements in challenging scenarios. Specifically, it demonstrates significant advantages in occlusion handling (validating the benefit of the inpainting pre-processing) and distinguishing semantically similar objects (validating the benefit of the focused pairwise comparison). Ablation experiments further quantify the necessity of each module, providing a reproducible template for follow-up research.
2. Related Work
2.1. Salient Object Detection
Salient Object Detection (SOD) aims to enable machines to “spot” the most eye-catching object in a scene at a glance. Starting with Itti, who simulated primate vision via brightness–color–orientation features, the following decade refined hand-crafted contrast and multi-scale [
17] or global-context cues [
18], yet the development was limited by shallow features and struggled in complex scenes. In the 2010s, CNNs [
19] pushed SOD to pixel-level accuracy: families like U-Net, FPN, PoolNet and other methods [
20,
21,
22] fused salient/semantic features across layers and achieved leaps on public benchmarks. In recent years, many new methods [
23,
24] have emerged. However, the relative relation “which is more salient” is ignored—current methods only output binary “salient/not-salient” masks, and cannot answer “which object attracts attention more”.
2.2. Salient Object Ranking
Building upon Salient Object Detection, Islam et al. took the first step by introducing the concept of Salient Object Ranking. They formulated it as a pixel-level regression problem to obtain a ranking based on consistency across multiple subjects. This foundational work established the task but relied on global feature representations. Subsequently, Siris et al. [
25] captured the order of human attention shifts in complex scenes and contributed the large-scale ASSR dataset, which has become a key benchmark for SOR research.
Early deep learning approaches attempted to solve SOR within an end-to-end framework. Expanding on foundational efforts, Fang et al. [
26] proposed an innovative end-to-end framework that simultaneously addresses instance segmentation and salient object ranking through multi-task learning. Tian et al. [
27] introduced a bidirectional method for saliency ranking by integrating spatial attention with object-based attention. While these methods demonstrated the feasibility of end-to-end learning for SOR, they share a common limitation: they learn to rank from global image features, implicitly attempting to model all inter-object relationships simultaneously within a single network pass.
Recognizing the complexity of global ranking, subsequent research explored more structured approaches. Guan et al. [
28] proposed the SeqRank model, which simulates the human visual attention shift process by ranking salient objects sequentially. This represents a conceptual shift towards decomposing the ranking process, though the underlying feature representations remain globally derived.
Parallel to this, graph network-based methods emerged to explicitly model inter-object relationships. Qiao et al. [
29] enhanced context-aware SOR by proposing a graph hypernetwork that leverages contextual information to improve ranking accuracy. Wu et al. [
30] proposed DSGNN, a novel domain-separated graph neural network specifically designed for SOR tasks. More recently, Deng et al. [
31] presented QAGNet, which leverages salient instance query features from a transformer detector within a tri-tiered nested graph. These graph-based approaches represent a significant advancement in explicitly modeling relationships, yet they still operate under a fundamental constraint: the graph is typically constructed based on all detected objects in the scene, exposing the ranking process to potential noise and interference from the entire set simultaneously.
2.3. Multimodal Large Models for Visual Reasoning
Parallel to advancements in SOR, the field of vision–language modeling has been revolutionized by Multimodal Large Models (MLMs), such as GPT-4V, LLaVA, and Qwen-VL. Trained on massive image–text datasets, these models demonstrate remarkable capabilities in scene understanding, visual question answering, and complex reasoning. Their strength lies in their ability to integrate visual perception with the step-by-step, compositional reasoning powers of large language models. This makes them inherently well-suited for tasks that require comparison, judgment, and explanation. Recent studies have successfully applied MLMs to various visual reasoning tasks, including visual relationship detection and complex visual question answering. However, their potential for fine-grained, multi-object ranking tasks like SOR remains largely unexplored. Our work is the first to systematically investigate and harness the comparative reasoning abilities of MLMs for salient object ranking.
2.4. Comparative Analysis and Positioning of Our Work
To systematically evaluate the landscape of SOR methodologies, we analyze them along several key dimensions:
Processing Paradigm: Does the method process all objects globally and simultaneously, or does it employ some form of decomposition (sequential, pairwise, etc.)?
Relationship Modeling: How are inter-object relationships captured (implicitly via global features, explicitly via graph structures, or through sequential attention shifts)?
Scalability (O() Complexity): How does the method perform as the number of objects () in a scene increases? This is critical for real-world applicability.
Generalization: Can the method generalize to scenes with more objects than seen during training, or is it constrained by dataset-specific maximum instance counts?
Occlusion Robustness: How does the method handle occluded objects where visual features are incomplete or corrupted?
Table 1 below summarizes the key characteristics of representative approaches using these criteria, providing a clear basis for comparison with our proposed method.
2.5. Connections to Multimodal Salient Object Detection
Parallel to advances in Salient Object Ranking, the field of multimodal Salient Object Detection (SOD) has seen significant progress, particularly in RGB-Thermal (RGB-T) settings. Several recent works share conceptual similarities with our approach and help contextualize our contributions.
HyPSAM [
32] leverages the Segment Anything Model (SAM) for RGB-T SOD through hybrid prompt engineering. It employs a dynamic fusion network (DFNet) to generate initial saliency maps as visual prompts, and a plug-and-play refinement network (P2RNet) that guides SAM using text, mask, and box prompts. This work demonstrates the power of prompt-based adaptation of foundation models for saliency tasks—a philosophy aligned with our zero-shot MLM prompting strategy. However, HyPSAM focuses on pixel-level segmentation rather than object-level ranking, and its prompting operates within SAM’s architecture rather than leveraging large language models for comparative reasoning.
DiMSOD [
33] formulates multi-modal SOD as a conditional mask generation task using diffusion models. By integrating local (depth/thermal maps) and global controls (RGB images) within a unified Stable Diffusion framework, DiMSOD achieves state-of-the-art performance across RGB, RGB-D, and RGB-T datasets. Its modular design—incorporating SOD-ControlNet, Feature Adaptive Network (FAN), and Feature Injection Attention Network (FIAN)—illustrates the trend toward unified, modality-agnostic frameworks. While DiMSOD excels at pixel-level detection, it does not address the ranking of multiple salient objects—the core focus of our work.
ConTriNet [
34] employs a “divide-and-conquer” strategy through a confluent triple-flow network for RGB-T SOD. The framework uses modality-specific flows to explore cues from RGB and thermal modalities, and a complementary flow to integrate cross-modal information. This decomposition of the complex fusion problem into specialized subtasks bears conceptual resemblance to our decomposition of global ranking into pairwise comparisons. However, ConTriNet’s divide-and-conquer strategy operates at the feature fusion level for segmentation, whereas ours operates at the reasoning level for ranking.
Positioning of Our Work: While these multimodal SOD methods advance pixel-level saliency detection, they do not address the ranking of multiple salient objects—a higher-level task requiring comparative judgment. Our PairwiseSOR-MLMs complements these works by tackling the post-detection challenge of ordering detected objects by relative saliency. Notably, our framework could, in principle, integrate the outputs of methods like HyPSAM, DiMSOD, or ConTriNet as inputs to the ranking stage, highlighting the orthogonality and potential synergy between these lines of research. The shared themes—leveraging foundation models (SAM, diffusion, and MLMs), prompt engineering, and divide-and-conquer strategies—underscore a broader paradigm shift in visual understanding that our work both draws from and contributes to.
3. Methods
3.1. Method Overview
The overall pipeline of PairwiseSOR-MLMs is shown in
Figure 2. Given an input image, the framework operates in three sequential stages:
- 1.
Image Segmentation and Scene Reconstruction (ISSR): Input: original image. Outputs: (a) set of segmented object images {O1, O2, …, On} with occlusion removed; (b) reconstructed background image; (c) set of pairwise composite images combining each object pair (Oi, Oj) with the reconstructed background.
- 2.
MLM-based Pairwise Comparison: Input: pairwise composite images + structured text prompts. Output: set of pairwise comparison results R = {rij | rij ∈ {A, B, Equal}} indicating relative saliency for each object pair.
- 3.
MLM-based Global Ranking Aggregation: Input: pairwise comparison results R + aggregation prompt. Output: final global saliency ranking list R_global = [O_(1), O_(2), …, O_(n)], where O_(1) is the most salient.
The framework adopts a modular design, offering good interpretability and flexibility. Each component (e.g., detector, segmenter, inpainting module, MLMs, etc.) can be independently replaced or upgraded, facilitating the integration of better-performing models or adaptation to different application scenarios.
3.2. Image Segmentation and Scene Reconstruction (ISSR)
The Image Segmentation and Scene Reconstruction module operates offline, employing pre-trained models that are leading performers in their respective fields. The specific process is as follows:
Step 1: Object Detection. We use YOLOv9 [
35] for object detection on the input image, loading the pre-trained weights ‘yolov9-c.pt’, setting the class confidence threshold to 0.25. In the Non-Maximum Suppression (NMS) stage, set the IoU threshold for bounding box overlap to 0.45, finally outputting the image with detection boxes and the corresponding YOLO-format label file, including the class set
and their corresponding coordinate set
. YOLOv9’s excellent performance benefits from the synergistic design of its Generalized Efficient Layer Aggregation Network (GELAN) and Programmable Gradient Information (PGI).
Step 2: Instance Segmentation. Subsequently, input the original image and detection coordinates into the Segment Anything Model (SAM) based on the ViT-B architecture for inference, setting the IoU prediction threshold to 0.88, and both within-box and cross-box NMS thresholds to 0.77, ultimately outputting high-quality object masks.
where
is the image embedding vector,
is the prompt embedding vector, and
is the mask confidence score.
Step 3: Mask Dilation and Inpainting. In the scene reconstruction stage, we achieve semantic completion of the image by erasing foreground objects. Specifically, the Large Mask Inpainting (LaMa) [
36] model is used to complete the separation and repair of foreground and background. To enhance erasure effectiveness, first perform dilation on the input object mask with a structural kernel size of (10, 10) to cover object edges and potentially remaining local information. This dilation size was empirically selected to cover object edges and partially occluded boundaries without extending into semantically distinct regions. Subsequently, input the original image and the dilated mask together into the pre-trained LaMa model. In the input construction stage, invert the mask
and concatenate it with the image content
corresponding to the masked region, forming a four-channel input tensor:
This tensor is downsampled and then fed into the FastFourierConvolution (FFC) module for processing. FFC adopts a dual-branch structure: the local branch uses conventional convolutions to capture detailed features, while the global branch models image-level long-range dependencies in the frequency domain via real-valued Fast Fourier Transform (FFT). Features from both parts undergo cross-fusion and upsampling, ultimately outputting the repaired three-channel image by the decoder:
At this point, foreground objects are completely removed, and occluded background regions are coherently filled both semantically and visually, generating a globally consistent background image.
Step 4: Object Isolation and Pairwise Composite Generation. Next, use the extracted masks to separate each foreground object from the original image via pixel-wise multiplication, obtaining its independent image. If an object was occluded by others in the original image, that occluding object is removed during the repair process, allowing the occluded region to be revealed and semantically completed, thereby maintaining scene plausibility. Finally, pair all object images in twos and composite each pair separately with the repaired background, generating a series of pairwise images for subsequent ranking.
3.3. MLM-Based Pairwise Comparison
The MLM-based pairwise comparison is the core innovative component of our framework. For each pair of independent objects (Oi,Oj), we construct a structured multimodal input to fully leverage the large language model’s capabilities in vision–language alignment and instruction-following.
Visual Input Construction: Use the pairwise images generated in the first stage as visual input. These images contain only the two objects to be compared (Oi,Oj), placed on a unified background and clearly labeled as “A” and “B”. This explicit labeling ensures the MLM can unambiguously reference each object in its reasoning and output.
Structured Prompt Engineering: The design of the text prompt directly affects the MLM’s understanding and output quality. We adopt a prompt structure of role setting + task description + constraints to guide the model into the role of a visual saliency expert, clearly defining its task to compare based on human visual attention mechanisms. The prompt was iteratively refined through pilot experiments on a validation set of 100 images from ASSR, where we observed that detailed prompts with explicit judgment criteria significantly reduced ambiguous responses. The prompt content is as follows:
“You are a visual saliency expert. You will see two objects A and B from the same natural image. Your task is to judge which object is more visually salient or attention-grabbing to a human observer. Please consider factors such as contrast, size, centrality, objectness, and semantic importance. Output only a single word: If object A is more salient, output ‘A’; if object B is more salient, output ‘B’; if they are equally salient, output ‘Equal’.”
This prompt design incorporates a Chain-of-Thought guidance approach, implicitly encouraging step-by-step reasoning by listing judgment dimensions like “contrast, size, centrality, objectness, and semantic importance”. Simultaneously, strictly constraining the output format to a single word greatly simplifies subsequent result parsing and enhances system stability and automation.
Reasoning and Output Parsing: After receiving the above multimodal input, the MLM performs reasoning based on its internally aligned vision–language representations and generates a textual response. We use a lightweight parser to extract the key judgment word from the response, mapping it to a formal directional relationship . This process is repeated for all object pairs, ultimately constructing a complete set of pairwise comparison relationships. This design fully leverages the large model’s advantages in open-domain visual reasoning and fine-grained comparison tasks, enabling highly generalizable relative saliency judgment without requiring fine-tuning for the ranking task.
3.4. MLM-Based Global Ranking Aggregation
After obtaining the set of all pairwise comparison results , we leverage the MLM’s contextual integration and complex reasoning capabilities to infer a globally consistent, total-order saliency ranking from local comparisons that may contain noise or inconsistencies.
Structured Input Representation: Convert pairwise comparison relationships into a list of natural language statements, e.g., Object1 > Object2, Object3 > Object1, Object2 = Object3… This representation transforms discrete relational judgments into a continuous text description, directly adapting to the MLM’s text understanding interface, allowing it to survey the global comparison constraints. This textual representation transforms discrete relational judgments into a format directly compatible with the MLM’s text understanding interface.
Prompt-based Ranking Reasoning: Design and use a second aggregation prompt to clearly convey the task of “deriving a global ranking from local relationships” to the MLMs. The prompt was developed through iterative testing, where we observed that explicitly instructing the model to resolve inconsistencies improved ranking coherence. The prompt is as follows:
“Given the following pairwise comparisons about which object is more visually salient, please infer a complete ranking list from most salient to least salient. If there are inconsistencies in the comparison results, provide the most likely ranking based on the overall pattern. Please output the object names strictly in order (e.g., Object1, Object2, Object3), separated by English commas. Comparison results: [LIST OF COMPARISONS].”
This prompt clarifies the task objective (infer complete ranking), processing principle (resolve inconsistencies), and output format (comma-separated sequence). It guides the MLMs to play the role of a “ranking parser,” utilizing its commonsense reasoning and constraint satisfaction capabilities learned from massive data to perform internal consistency optimization and global resolution of potentially cyclic or incomplete comparison relationships.
Reasoning and Post-processing: After receiving the above prompt, the MLM outputs a sequence of object identifiers based on its internal understanding of logical relationships and ranking problems. We parse this sequence to obtain the final global ranking . Compared to traditional deterministic aggregation algorithms (e.g., Bradley–Terry model), the MLM can perform more flexible, semantics-based “smoothing” and conflict resolution, being particularly adept at handling ambiguous or contradictory comparison inputs. Finally, combine this global ranking with the segmentation masks generated in the first stage, assign colors to objects of different ranks, and generate an intuitive Salient Object Ranking map, completing the full process from understanding to visualization.
4. Materials
4.1. Datasets
We conducted experiments on two widely used and publicly available salient object ranking datasets—ASSR and IRSR. The ASSR dataset was constructed by merging MS-COCO [
37] and SALICON [
38], referencing the gaze-point sequence ranking based on mouse trajectories in SALICON. It contains 7646 training images, 2418 test images, and 1436 validation images, with up to five salient instances and their rankings provided per image. The IRSR dataset is also built upon MS-COCO and SALICON, but ranks based on the maximum saliency value within each instance mask provided by SALICON; it contains 6059 training images and 2929 test images, with up to eight salient instances and their rankings per image.
Both ASSR and IRSR are established public benchmarks constructed from existing image datasets (MS-COCO and SALICON). As such, no physical sensor calibration procedures were involved in this study. The images in these datasets were originally captured under diverse real-world conditions, encompassing variations in lighting, viewpoint, and scene composition. This inherent variability is representative of natural image distributions and is preserved in our evaluation. Since we rely exclusively on pre-existing datasets, we do not control or modify environmental conditions during image acquisition. The datasets themselves encompass a wide range of scenarios, including indoor/outdoor scenes, varying illumination, and complex backgrounds. Our method is evaluated across this full spectrum without additional curation, ensuring that reported performance reflects generalization to diverse real-world conditions.
4.2. Evaluation Metrics
Following previous work, we adopt Salient Object Ranking (SOR), Segmentation-Aware SOR (SA-SOR)], and Mean Absolute Error (MAE) as evaluation metrics.
SOR first ranks all salient objects by their saliency value to obtain prediction and ground truth sequences, then calculates the Spearman correlation coefficient between them, normalized to the range [0, 1], from perfectly negative to perfectly positive correlation. This metric only focuses on ranking trend consistency, ignoring sequence length differences and segmentation quality.
SA-SOR is an improvement over the SOR metric. It first sorts the predicted salient objects and assigns a rank number to each instance; then matches the predicted instance masks with ground truth masks (using an IoU threshold, e.g., 0.5). Instances that fail to match have their rank set to 0, yielding the predicted ranking sequence. Finally, the Pearson correlation coefficient between the predicted and ground truth rankings is calculated as the SA-SOR score, ranging from [−1, 1]. This metric evaluates salient object detection, segmentation, and ranking performance simultaneously but does not penalize redundant objects.
MAE measures the average absolute difference between predicted and ground truth values, with lower values indicating better performance. Specifically, compute the absolute difference between predicted and ground truth saliency values for each pixel, then average across all pixels. MAE directly focuses on pixel-level saliency differences but ignores instance-level differences.
4.3. Implementation Details
In the model’s offline processing stage, we employ a series of high-performance pre-trained models to ensure the accuracy and efficiency of each component. All pre-trained models are used in inference mode (frozen) without any fine-tuning on SOR datasets, as our framework operates in a zero-shot manner. Below, we detail each component’s configuration and the rationale for parameter selection.
Object Detection (YOLOv9): We use YOLOv9 with pre-trained weights ‘yolov9-c.pt’ for generic object detection. The class confidence threshold is set to 0.25, following the default configuration in YOLOv9’s standard inference pipeline, which balances detection recall and precision on COCO-style datasets. The Non-Maximum Suppression (NMS) IoU threshold is set to 0.45, a value empirically established in the object detection community to effectively eliminate duplicate detections while preserving distinct objects. These parameters were not tuned on SOR datasets but adopted directly from the original YOLOv9 implementation to maintain generalization.
Instance Segmentation (SAM): We select the Segment Anything Model (SAM) based on the MAE-pretrained ViT-H backbone due to its state-of-the-art performance in generating high-quality, sharp-boundary object masks across diverse domains. Following SAM’s recommended configuration for automatic mask generation, we set the IoU prediction threshold to 0.88 to filter low-confidence masks, and both within-box and cross-box NMS thresholds to 0.77 to suppress redundant overlapping masks. These values are empirically optimized in SAM’s original work for balanced precision and recall and are applied here without modification.
Scene Reconstruction (LaMa): For image inpainting, we employ the LaMa model, selected for its Fast Fourier Convolution (FFC) architecture that effectively handles large-area occlusion while maintaining semantic coherence—a critical requirement for reconstructing occluded objects. The mask dilation kernel size is set to (10, 10) pixels, a value empirically determined to sufficiently cover object edges and residual occluded regions without excessively eroding surrounding context. This dilation ensures that occluding boundaries are fully removed during inpainting.
Clarification on parameter selection process: All parameters listed above were adopted directly from the original publications and official implementations of the respective pre-trained models (YOLOv9 and SAM). We did not perform any additional tuning on SOR datasets, as our framework operates in a zero-shot manner and we aimed to preserve the generalization capabilities of these foundation models. The mask dilation kernel size (10 × 10) was the only parameter empirically determined through pilot experiments to ensure sufficient coverage of object edges without excessive erosion of surrounding context.
Preprocessing Pipeline Order: The complete preprocessing sequence is: (1) original image → YOLOv9 object detection → bounding boxes; (2) original image + bounding boxes → SAM instance segmentation → object masks; (3) original image + dilated masks → LaMa inpainting → reconstructed background; (4) object masks + reconstructed background → pairwise composite images. This order ensures that segmentation leverages full image context before occlusion removal, while inpainting operates on cleanly separated foreground regions.
4.4. Experimental Setup
4.4.1. Experimental Repetition and Variability Quantification
The proposed PairwiseSOR-MLMs framework operates in a zero-shot manner using pre-trained models in inference mode. All components (YOLOv9, SAM, LaMa, and GPT-5.2) are deterministic given fixed inputs and parameters. Specifically, we set the temperature parameter of GPT-5.2 to 0, ensuring that repeated API calls with identical prompts and images produce identical outputs. Consequently, the entire pipeline yields deterministic results for a given input image, and no stochastic elements (e.g., random initialization or data shuffling) are present. Therefore, we report single-run results without averaging across multiple runs. In the rare case where an API response is malformed (<1% of test instances), we apply a deterministic fallback (Bradley–Terry model) that introduces no additional variability. This deterministic nature guarantees that our results can be exactly reproduced by following the described implementation details.
4.4.2. Simulation and Modeling Assumptions
This work does not involve any simulated data or synthetic environments. All experiments are conducted on real-world image benchmarks. Consequently, there are no simulation-specific boundary conditions, modeling assumptions, or simplifications to declare. Discussions regarding noise robustness refer to the inherent resilience of our method to real-world image artifacts (occlusion, clutter) rather than controlled synthetic noise; we do not apply any explicit noise model during evaluation.
4.4.3. Computational Environment
All offline preprocessing (detection, segmentation, and inpainting) was performed on a workstation equipped with an NVIDIA GeForce RTX 4090 GPU (24 GB VRAM) and 64 GB RAM, running Ubuntu 20.04 LTS with an Intel(R) Xeon(R) Silver 4210R CPU @ 2.40 GHz. The implementation used Python 3.10 and PyTorch 1.11.0 with CUDA 11.3. MLM API calls were made to the GPT-5.2 endpoint with a fixed seed for reproducibility, where supported. The full codebase, including configuration files and prompt templates, will be made publicly available upon publication to facilitate exact replication.
6. Discussion
This study proposes the PairwiseSOR-MLMs framework, whose core innovation lies in transforming the complex global decision-making problem of salient object ranking into a series of controllable pairwise comparisons driven by Multimodal Large Models. This paradigm shift fundamentally addresses the “global context interference” problem inherent in traditional end-to-end or graph neural network methods, particularly in challenging scenarios involving object occlusion, semantic similarity, or large numbers of objects. The leading performance demonstrated in experiments on authoritative benchmarks not only confirms the effectiveness of the “divide-and-conquer and aggregate” strategy but also, more profoundly, reveals that the general visual commonsense and reasoning capabilities embedded in large-scale pre-trained MLMs can be directly applied to perform fine-grained discriminative tasks requiring the balancing of low-level features and high-level semantics. This represents a significant expansion of MLM application boundaries from generation and description to measurable, comparable discriminative tasks. The methodology established by this work—namely, stimulating the latent comparative reasoning ability of large models through problem reframing and prompt engineering—provides a transferable general paradigm for a series of vision tasks reliant on relative relationship assessment, such as image aesthetic evaluation and action importance ranking. Looking ahead, the research focus should shift towards improving the computational efficiency of this paradigm, deepening the interpretability of its decision-making processes, and systematically exploring the robustness of its boundaries in open-world and extreme scenarios, thereby propelling large models to play a key role in deeper visual understanding and decision-making.
6.1. Limitations and Failure Case Analysis
Despite its strengths, the PairwiseSOR-MLMs framework has several inherent limitations that warrant explicit discussion. Acknowledging these constraints is essential for a balanced understanding of the method’s applicability and for guiding future research.
Computational Load and Latency: The most significant practical limitation is computational efficiency. Our pipeline requires: (1) object detection and instance segmentation on the full image; (2) image inpainting for each occluded object; (3) C(n,2) MLM API calls for pairwise comparison; and (4) one final MLM call for global aggregation. For an image with n objects, this results in O(n2) MLM inferences. On average, processing a single image with 5 objects takes approximately 15–20 s (dominated by MLM API latency), making the framework unsuitable for real-time applications or large-scale batch processing. This is a fundamental trade-off: the robustness gained through explicit pairwise decomposition comes at the cost of quadratic scaling in inference time.
Dependency on Pre-trained Component Quality: Our framework’s performance is bounded by the quality of its constituent modules. Failures in the object detection stage (e.g., missed detections for small or heavily occluded objects) propagate through the pipeline and cannot be recovered by later stages. Similarly, segmentation errors (e.g., imprecise masks) affect both inpainting quality and the final ranking visualization. While we selected state-of-the-art models (YOLOv9, SAM, and LaMa), they are not perfect; images with extreme occlusion, unusual object categories, or challenging lighting conditions can still cause detection or segmentation failures, leading to incomplete or inaccurate rankings.
MLM Sensitivity and Cost: The reliance on commercial MLM APIs (GPT-5.2) introduces several constraints. First, the model’s behavior may change over time as the provider updates the underlying system, potentially affecting reproducibility. Second, API costs can be substantial for large-scale experiments or deployment. Third, the model’s reasoning is opaque; while we constrain outputs via prompting, the internal decision process remains a black box, limiting interpretability. Finally, the MLM may exhibit biases learned from pre-training data (e.g., cultural biases in what is considered “salient”), which could affect performance on diverse global datasets.
Scalability to Very Large Object Counts: While our framework handles up to 8 objects (the maximum in IRSR) effectively, the O(n2) comparison count becomes prohibitive for scenes with 20+ objects. For example, a scene with 20 objects would require 190 pairwise comparisons, taking several minutes and incurring significant API costs. This limits applicability to densely populated scenes (e.g., crowded street views, cluttered indoor scenes).
Failure Conditions: Through error analysis, we identify specific conditions where our method underperforms: (1) when the object detector completely misses a salient object (e.g., a small object in the distance or an object with unusual appearance), that object is excluded from ranking entirely; (2) when inpainting fails to semantically complete occluded regions (e.g., generating implausible textures), the MLM may base judgments on corrupted visual information; (3) when objects have nearly identical visual saliency (e.g., two identical cars in a row), the MLM may produce inconsistent pairwise judgments, leading to ranking ambiguities that even the aggregation stage cannot fully resolve.
6.2. Practical Deployment Considerations
The current implementation is designed as a research prototype prioritizing accuracy over efficiency. For practical deployment in real-world scenarios, several adaptations would be necessary:
Real-Time Requirements: If deployed in applications requiring real-time performance (e.g., video surveillance, autonomous driving), the current pipeline is unsuitable. To reduce latency, one could: (a) replace the O(n2) sequential MLM calls with parallel API requests; (b) distill the pairwise comparison capability into a smaller, specialized model that can run locally without API latency; (c) implement caching for repeated comparisons of similar object pairs; or (d) approximate the full pairwise matrix using a subset of comparisons (e.g., tournament-style elimination).
Embedded and Edge Deployment: For resource-constrained environments, the offline preprocessing components (YOLOv9, SAM, and LaMa) would need to be replaced with lightweight alternatives optimized for mobile or edge devices. Several efficient variants exist (e.g., YOLO-nano, MobileSAM, and lightweight inpainting networks) that trade some accuracy for significant speed and memory gains. The MLM component presents a greater challenge, as current state-of-the-art MLMs require cloud-based inference; on-device deployment would require using smaller open-source models (e.g., Phi-3-vision, LLaVA-Phi) that can run locally with acceptable latency.
Cost Optimization: In production settings with high query volumes, API costs could become prohibitive. Strategies to mitigate this include: (a) batching multiple pairwise comparisons into a single API call where possible; (b) using cheaper, smaller models for easy cases and reserving GPT-5.2 for ambiguous comparisons; (c) implementing a confidence-based early exit mechanism where clear comparisons are handled by a lightweight classifier and only uncertain cases are escalated to the MLMs.
6.3. Balancing Strengths and Constraints
In summary, the PairwiseSOR-MLMs represents a methodological advance that achieves state-of-the-art performance by strategically decomposing a complex ranking problem and leveraging MLM’s inherent reasoning capabilities. However, this advance comes with clear trade-offs: the robustness and zero-shot generalization we demonstrate are achieved at the cost of computational efficiency, API dependency, and quadratic scaling with object count. The framework is best suited for applications where accuracy is paramount, and latency is tolerable—such as offline image analysis, content curation, or as a benchmark for evaluating simpler, faster methods. For time-critical or resource-constrained applications, the insights from our work—particularly the value of explicit occlusion handling and pairwise decomposition—could inform the design of efficient, specialized models trained to approximate our framework’s behavior.
6.4. Future Work
Building on the limitations identified above, we outline several directions for future research:
6.4.1. Improving Computational Efficiency
Sub-quadratic comparison strategies: Replace exhaustive pairwise comparison with tournament-style elimination (O(n log n)) or active selection strategies that prioritize informative comparisons. Preliminary experiments suggest that 30–40% of comparisons could be safely skipped without significant accuracy loss.
Parallelization: Implement parallel API calls for all pairwise comparisons, potentially reducing latency to near-constant time (bounded by parallel throughput and API rate limits).
Caching and reuse: Develop a cache of common object pairs and their comparison outcomes, leveraging the observation that many object categories appear repeatedly across images.
6.4.2. Model Distillation and Specialization
Distill MLM capabilities: Train a lightweight, specialized model to mimic GPT-5.2’s pairwise comparison behavior using synthetic data generated by the larger model. This could enable local deployment without API dependency and with significantly lower latency.
Hybrid approach: Combine a fast, approximate comparator (e.g., a small CNN) for clear cases with MLM invocation only for ambiguous comparisons where the approximate model’s confidence is low.
6.4.3. Enhancing Robustness
Occlusion-aware detection: Develop or integrate detection models specifically trained to handle occluded objects, reducing missed detections in challenging scenes.
Multi-model ensemble: Combine outputs from multiple MLMs (e.g., GPT-5.2, Qwen3-VL, and a specialized model) with voting mechanisms to reduce individual model biases and inconsistencies.
Confidence estimation: Elicit confidence scores from MLMs (e.g., via logit analysis or verbalized confidence) to weight comparisons during aggregation, down-weighting uncertain judgments.
6.4.4. Extending the Paradigm
Other relative assessment tasks: Apply the pairwise comparison paradigm to tasks such as image aesthetic ranking, action importance ordering in videos, or object relevance ranking for specific queries.
Multi-modal inputs: Extend the framework to handle additional modalities (depth, thermal, and text descriptions) by incorporating them into the MLM prompts or visual inputs.
Interactive ranking: Develop an interactive version where users can resolve ambiguous comparisons, progressively refining the ranking with minimal human effort.
7. Conclusions
In this paper, we introduced PairwiseSOR-MLMs, a novel framework that decomposes the global salient object ranking task into a series of pairwise comparisons performed by Multimodal Large Models, complemented by explicit occlusion handling via image inpainting. Experiments on the ASSR and IRSR benchmarks demonstrate that our method achieves state-of-the-art or competitive performance across multiple metrics, with particular strengths in challenging scenarios involving occlusion, semantic similarity, and low-saliency objects. The ablation studies confirm the contribution of each component: high-quality inpainting (LaMa), advanced MLM reasoning (GPT-5.2), and carefully designed prompts all significantly impact final ranking accuracy.
While our results validate the effectiveness of the proposed divide-and-conquer strategy, we also acknowledge the framework’s limitations, including its computational cost (O(n2) MLM inferences) and dependency on pre-trained component quality, which currently restricts its use to offline applications. Future work will focus on addressing these limitations by developing more efficient comparison strategies, exploring smaller and faster MLM variants suitable for edge deployment, and extending the pairwise comparison paradigm to other relative assessment tasks such as image aesthetic ranking and action importance ordering.