Visual Consensus Prompting for Co-Salient Object Detection

Jie Wang, Nana Yu, Zihao Zhang, Yahong Han

Abstract

Co-Salient Object Detection (CoSOD) aims to identify and segment objects that appear commonly across a group of related images. Traditional state-of-the-art methods typically rely on full-model fine-tuning, which is computationally expensive and can degrade the rich representations of large-scale foundation models. This paper introduces Visual Consensus Prompting (VCP), a parameter-efficient framework that freezes a foundation model and guides it using group-aware "prompts." By mining visual commonalities and injecting this consensus directly into the model's layers, VCP achieves state-of-the-art results with significantly fewer tunable parameters.

Introduction: The Challenges of Co-Saliency

Co-Salient Object Detection (CoSOD) requires a model to recognize and segment objects that appear consistently within a group of images—for instance, identifying a "camera" across various scenes containing different electronic devices. Current approaches often suffer from two primary limitations:

  1. Lack of Early Interaction: Consensus extraction typically occurs after the encoding stage, meaning the encoder does not "know" what the common object is while it is processing the images.
  2. Computational Inefficiency: Most methods use "full fine-tuning," updating every parameter of a massive pre-trained model. This is resource-intensive and risks overwriting the general-purpose knowledge embedded in the foundation model.

Methodology: Visual Consensus Prompting

The VCP framework addresses these issues by shifting from model fine-tuning to "prompt tuning." The system utilizes a frozen Segformer foundation model, augmented with two novel components designed to facilitate group-level reasoning.

The VCP architecture integrates the Consensus Prompt Generator (CPG) and Disperser (CPD) into the frozen Segformer stages.

Consensus Prompt Generator (CPG)

The CPG module analyzes the frozen embeddings of an entire image group. By utilizing "saliency seeds" (cluster centers), it identifies common visual patterns across the set. This information is distilled into a Consensus Prompt ($P_{Co}$) that encapsulates the shared visual identity of the co-salient objects.

Consensus Prompt Disperser (CPD)

The CPD module manages the injection of these prompts. It combines the learned consensus prompt with raw embedding prompts and handcrafted prompts (derived via fast Fourier transforms to capture high-frequency details). These hybrid prompts are adaptively dispersed into the Transformer layers, effectively "nudging" the frozen model to prioritize the co-salient regions identified by the group consensus.

To further enhance efficiency, VCP replaces traditional heavy decoders with a Concise Prediction Head (PH), resulting in a model with only 4.94M tunable parameters—a significant reduction compared to competing models that often require tuning hundreds of millions of parameters.

Experimental Evaluation and Results

VCP was evaluated on three major CoSOD benchmarks: CoCA, CoSOD3k, and CoSal2015, using training data from DUT-class, COCO-9k, and COCO-SEG. The model demonstrated remarkable robustness, particularly in ignoring "distractor" objects that are salient in individual images but not common to the group.

Performance comparison of VCP against state-of-the-art methods on the CoCA dataset.

Key performance highlights include:

  • State-of-the-Art Accuracy: On the challenging CoCA dataset, VCP achieved a 6.8% improvement in the $F_m$ metric over previous leading models.
  • Efficiency and Speed: Despite its high accuracy, VCP maintains an inference speed of 65.3 FPS, making it suitable for real-time applications.
  • Parameter Efficiency: VCP outperforms models with up to 1.4B parameters while tuning less than 5M.

Conclusion

Visual Consensus Prompting demonstrates that large foundation models possess sufficient latent knowledge for complex tasks like CoSOD; they simply require effective guidance. By using visual consensus as a prompt rather than an output, VCP provides a more efficient and accurate path forward for group-based computer vision tasks. Future work may explore scaling VCP to even larger models or extending the framework to video co-saliency.

Summary updated

BibTeX
@inproceedings{wang2025visual,
  author = {Jie Wang and Nana Yu and Zihao Zhang and Yahong Han},
  title = {{Visual Consensus Prompting for Co-Salient Object Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00896},
}
Figure