atlas

Research map / Vision-language and multimodal / Human and embodied modeling

Embracing Collaboration Over Competition: Condensing Multiple Prompts for Visual In-Context Learning

CVPR 2025 · Vision-language and multimodal › Human and embodied modeling · approach: Scene graph generation · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes CONDENSER, a lightweight plugin that condenses multiple retrieved visual in-context prompts into one fine-grained prompt, trained end-to-end with a frozen MAE-VQGAN backbone.

Problem

Prompt selection in visual in-context learning (VICL) assumes a single ideal prompt exists in the candidate pool; in practice multiple partially suitable prompts exist and selecting one discards useful context, while downsampling and output-ensemble alternatives lose detail or are costly.

Approach

Instead of competitively choosing one prompt, a patch-wise cross-attention module fuses K retrieved image-label prompts at the input level into a single condensed prompt that matches the query's spatial layout, trained end-to-end with the frozen backbone via token prediction and a pre-alignment loss.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
condense 16 prompts instead of selecting oneCONDENSER · Pascal-5imIoU (mean): 44.14 -> 46.63Helped
condense 16 prompts instead of selecting oneCONDENSER · Pascal VOC 2012mIoU: 43.22 -> 44.64Helped
replace CONDENSER with mean pooling (ablation)CONDENSER K=16 · Pascal-5imIoU (mean): 46.63 -> 17.23Hurt
replace patch-wise attention with full cross-attention (ablation)CONDENSER K=16 · Pascal-5imIoU (mean): 46.63 -> 44.87Hurt
add the pre-alignment loss (ablation)CONDENSER K=1 · Pascal-5imIoU (mean): 43.75 -> 44.14Helped
add the pre-alignment loss (ablation)CONDENSER K=16 · Pascal-5imIoU (mean): 46.16 -> 46.63Helped
add the token prediction loss (ablation)CONDENSER K=1 · Pascal-5imIoU (mean): 16.63 -> 44.14Helped
add the token prediction loss (ablation)CONDENSER K=16 · Pascal-5imIoU (mean): 8.66 -> 46.63Helped
replace input-level condensation with output fusion (ablation)CONDENSER K=16 · Pascal-5imIoU (mean): 46.63 -> 36.80Hurt
replace CONDENSER with LoRA on the backbone (ablation)MAE-VQGAN · Pascal-5imIoU (mean): 46.63 -> 39.49Hurt
replace CONDENSER with P-Tuning V2 (ablation)MAE-VQGAN · Pascal-5imIoU (mean): 46.63 -> 42.24Hurt
increase candidate prompt count from 1 to 32 (ablation)CONDENSER · Pascal-5imIoU (mean): 44.14 -> 46.73Helped

Surprising findings

Limitations

Experimental setup

Datasets: Pascal-5i Pascal VOC 2012 ImageNet-1K COCO-5i

Benchmarks: Pascal-5i Pascal VOC 2012 ImageNet-1K colorization

Metrics: mIoU MSE inference time (ms/query) GPU cost (MB/query)

Baselines: Random selection UnsupPR SupPR Prompt-SelF Partial2Global InMeMo LoRA P-Tuning V2

Builds on: MAE-VQGAN Prompt-SelF Partial2Global InMeMo VPR

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy