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

Instruct Me More! Random Prompting for Visual In-Context Learning

About

Large-scale models trained on extensive datasets, have emerged as the preferred approach due to their high generalizability across various tasks. In-context learning (ICL), a popular strategy in natural language processing, uses such models for different tasks by providing instructive prompts but without updating model parameters. This idea is now being explored in computer vision, where an input-output image pair (called an in-context pair) is supplied to the model with a query image as a prompt to exemplify the desired output. The efficacy of visual ICL often depends on the quality of the prompts. We thus introduce a method coined Instruct Me More (InMeMo), which augments in-context pairs with a learnable perturbation (prompt), to explore its potential. Our experiments on mainstream tasks reveal that InMeMo surpasses the current state-of-the-art performance. Specifically, compared to the baseline without learnable prompt, InMeMo boosts mIoU scores by 7.35 and 15.13 for foreground segmentation and single object detection tasks, respectively. Our findings suggest that InMeMo offers a versatile and efficient way to enhance the performance of visual ICL with lightweight training. Code is available at https://github.com/Jackieam/InMeMo.

Jiahao Zhang, Bowen Wang, Liangzhi Li, Yuta Nakashima, Hajime Nagahara• 2023

Related benchmarks

TaskDatasetResultRank
Semantic segmentationPASCAL-5^i Fold-3
mIoU40.8
75
Semantic segmentationPASCAL-5^i Fold-2
mIoU42.43
75
Semantic segmentationPASCAL-5^i Fold-0
mIoU41.65
75
Semantic segmentationPASCAL-5^i Fold-1
mIoU47.68
75
Semantic segmentationPascal-5^i
Mean mIoU40.03
73
Single Object DetectionPASCAL VOC 2012 (test)
mIoU43.21
13
Foreground segmentationPascal-5i Fold-1 (test)
mIoU47.68
13
Foreground segmentationPascal-5i Fold-2 (test)
mIoU42.43
13
Foreground segmentationPascal-5i Fold-3 (test)
mIoU0.408
13
Foreground segmentationPascal-5i Mean of folds (test)
mIoU43.14
13
Showing 10 of 13 rows

Other info

Follow for update