Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Towards Global Optimal Visual In-Context Learning Prompt Selection

About

Visual In-Context Learning (VICL) is a prevailing way to transfer visual foundation models to new tasks by leveraging contextual information contained in in-context examples to enhance learning and prediction of query sample. The fundamental problem in VICL is how to select the best prompt to activate its power as much as possible, which is equivalent to the ranking problem to test the in-context behavior of each candidate in the alternative set and select the best one. To utilize more appropriate ranking metric and leverage more comprehensive information among the alternative set, we propose a novel in-context example selection framework to approximately identify the global optimal prompt, i.e. choosing the best performing in-context examples from all alternatives for each query sample. Our method, dubbed Partial2Global, adopts a transformer-based list-wise ranker to provide a more comprehensive comparison within several alternatives, and a consistency-aware ranking aggregator to generate globally consistent ranking. The effectiveness of Partial2Global is validated through experiments on foreground segmentation, single object detection and image colorization, demonstrating that Partial2Global selects consistently better in-context examples compared with other methods, and thus establish the new state-of-the-arts.

Chengming Xu, Chen Liu, Yikai Wang, Yuan Yao, Yanwei Fu• 2024

Related benchmarks

TaskDatasetResultRank
Semantic segmentationPASCAL-5^i Fold-0
mIoU43.23
75
Semantic segmentationPASCAL-5^i Fold-3
mIoU40.22
75
Semantic segmentationPASCAL-5^i Fold-2
mIoU41.79
75
Semantic segmentationPASCAL-5^i Fold-1
mIoU45.5
75
Foreground segmentationPascal-5i Fold-0 (test)
mIoU43.23
13
Foreground segmentationPascal-5i Fold-1 (test)
mIoU45.5
13
Foreground segmentationPascal-5i Fold-2 (test)
mIoU41.79
13
Foreground segmentationPascal-5i Fold-3 (test)
mIoU0.4022
13
Foreground segmentationPascal-5i Mean of folds (test)
mIoU42.69
13
Object DetectionVOC 2012
mIoU32.52
13
Showing 10 of 15 rows

Other info

Follow for update