PromptHub: Enhancing Multi-Prompt Visual In-Context Learning with Locality-Aware Fusion, Concentration and Alignment
Organizations: Tsinghua Shenzhen International Graduate School, Tsinghua University · Harbin Institute of Technology, Shenzhen · Meituan, Beijing
Abstract
Visual In-Context Learning (VICL) aims to complete vision tasks by imitating pixel demonstrations. Recent work pioneered prompt fusion that combines the advantages of various demonstrations, which shows a promising way to extend VICL. Unfortunately, the patch-wise fusion framework and model-agnostic supervision hinder the exploitation of informative cues, thereby limiting performance gains. To overcome this deficiency, we introduce PromptHub, a framework that holistically strengthens multi-prompting through locality-aware fusion, concentration and alignment. PromptHub exploits spatial priors to capture richer contextual information, employs complementary concentration, alignment, and prediction objectives to mutually guide training, and incorporates data augmentation to further reinforce supervision. Extensive experiments on three fundamental vision tasks demonstrate the superiority of PromptHub. Moreover, we validate its universality, transferability, and robustness across out-of-distribution settings, and various retrieval scenarios. This work establishes a reliable locality-aware paradigm for prompt fusion, moving beyond prior patch-wise approaches. Code is available at https://github.com/luotc-why/ICLR26-PromptHub.
Figures & tables
| Seg. (mIoU ↑) | |||||||
| Model | Fold-0 | Fold-1 | Fold-2 | Fold-3 | Mean | Det. (mIoU ↑) | Col. (MSE ↓) |
| Zero-Shot | |||||||
| Random ( Bar et al., 2022 ) | 28.66 | 30.21 | 27.81 | 23.55 | 27.56 | 25.45 | 0.67 |
| UnsupPR ( Zhang et al., 2023 ) | 34.75 | 35.92 | 32.41 | 31.16 | 33.56 | 26.84 | 0.63 |
| Prompt-SelF ( Sun et al., 2025 ) | 35.69 | 38.25 | 35.86 | 33.37 | 35.79 | 28.08 | 0.63 |
| Retriever Training | |||||||
| Model | Seg. (mIoU ↑) | ||||
| Fold-0 | Fold-1 | Fold-2 | Fold-3 | Mean | |
| Prompt-SelF | 40.13 | 42.14 | 37.84 | 38.52 | 39.66 |
| InMeMo | 38.74 | 43.82 | 40.45 | 37.12 | 40.03 |
| Condenser N=1 | 40.39 | 44.54 | 40.23 | 36.33 | 40.37 |
| Condenser N=16 | 40.37 | 44.85 | 41.03 | 35.84 | 40.52 |
| PromptHub N=1 | 40.36 | 45.24 | 40.43 | 37.94 | 41.00 |
| Seg. (mIoU ↑) | |||||||
| # | Model | Fold-0 | Fold-1 | Fold-2 | Fold-3 | Mean | Det. (mIoU ↑) |
| (0) | PromptHub N=1 | 43.26 | 50.75 | 43.83 | 42.82 | 45.17 | 44.51 |
| (1) | PromptHub N=16 | 45.93 | 53.12 | 45.44 | 46.74 | 47.81 | 45.59 |
| Effectiveness of Learning Objectives | |||||||
| (2) | w/o N=1 | 42.71 | 51.14 | 42.78 | 42.41 | 44.76 | 43.45 |
| (3) | w/o N=16 | 45.54 | 52.25 | 44.59 | 44.47 | 46.71 | 44.83 |
| Det. (mIoU ↑) | |||||
| Method | Fold-0 | Fold-1 | Fold-2 | Fold-3 | Mean |
| Condenser N=1 | 38.15 | 35.70 | 35.49 | 30.31 | 34.91 |
| Condenser N=16 | 41.25 | 36.66 | 37.86 | 39.02 | 38.70 |
| PromptHub N=1 | 41.59 | 36.25 | 37.71 | 32.15 | 36.93 |
| PromptHub N=16 | 43.40 | 38.55 | 39.52 | 40.66 | 40.53 |
| Method | Standard mIoU | Perturbed mIoU | Performance Drop |
| Condenser N=1 | 44.14 | 42.36 | -1.78 |
| Condenser N=16 | 46.63 | 45.24 | -1.39 |
| PromptHub N=1 | 45.17 | 44.01 | -1.16 |
| PromptHub N=16 | 47.81 | 47.15 | -0.66 |
| Seg. (mIoU ↑) | |||||
| Method | Fold-0 | Fold-1 | Fold-2 | Fold-3 | Mean |
| Condenser N=1 | 18.93 | 29.73 | 24.26 | 27.94 | 25.22 |
| Condenser N=16 | 14.27 | 24.56 | 18.85 | 20.56 | 19.56 |
| PromptHub N=1 | 21.25 | 37.61 | 35.01 | 29.79 | 30.92 |
| PromptHub N=16 | 25.22 | 43.22 | 36.07 | 30.41 | 33.73 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Inference Time | GPU Cost |
| (ms/query) | (MB/query) | |
| MAE-VQGAN | 51.26 | 416.14 |
| InMeMo | 54.28 | 497.50 |
| Prompt-SelF N=16 | 984.62 | 441.75 |
| Condenser N=1 | 59.17 | 565.42 |
| Condenser N=16 | 66.61 | 1021.86 |
| Method | Fold-0 | Fold-1 | Fold-2 | Fold-3 | Mean | Det |
| PromptHub N=1 (query-adaptive sigma) | 43.79 | 51.93 | 44.56 | 43.18 | 45.86 | 44.25 |
| PromptHub N=16 (query-adaptive sigma) | 46.44 | 52.97 | 45.66 | 46.89 | 47.99 | 45.41 |
| PromptHub N=1 (hyperparameter sigma) | 43.26 | 50.75 | 43.83 | 42.82 | 45.17 | 44.51 |
| PromptHub N=16 (hyperparameter sigma) | 45.93 | 53.12 | 45.44 | 46.74 | 47.81 | 45.59 |
| Method | Fold-0 | Fold-1 | Fold-2 | Fold-3 | Mean |
| SupPR | 26.85 | 32.73 | 33.48 | 28.40 | 30.37 |
| InMeMo | 28.13 | 38.31 | 37.94 | 33.08 | 34.37 |
| PromptHub N=16 | 38.56 | 46.54 | 45.34 | 39.23 | 42.41 |
In-Context Learning
In-context learning studies how models adapt to new tasks from examples or instructions supplied at inference time, without changing their weights.
See all 404 papers