[Paper Review] Leveraging Data to Say No: Memory Augmented Plug-and-Play Selective Prediction
The paper proposes MA-PaPSP, a memory-augmented, training-free selective prediction method that attaches to any vision-language model to improve open-set selective prediction by using retrieval-based proxy embeddings and contrastive normalization.
Selective prediction aims to endow predictors with a reject option, to avoid low confidence predictions. However, existing literature has primarily focused on closed-set tasks, such as visual question answering with predefined options or fixed-category classification. This paper considers selective prediction for visual language foundation models, addressing a taxonomy of tasks ranging from closed to open set and from finite to unbounded vocabularies, as in image captioning. We seek training-free approaches of low-complexity, applicable to any foundation model and consider methods based on external vision-language model embeddings, like CLIP. This is denoted as Plug-and-Play Selective Prediction (PaPSP). We identify two key challenges: (1) instability of the visual-language representations, leading to high variance in image-text embeddings, and (2) poor calibration of similarity scores. To address these issues, we propose a memory augmented PaPSP (MA-PaPSP) model, which augments PaPSP with a retrieval dataset of image-text pairs. This is leveraged to reduce embedding variance by averaging retrieved nearest-neighbor pairs and is complemented by the use of contrastive normalization to improve score calibration. Through extensive experiments on multiple datasets, we show that MA-PaPSP outperforms PaPSP and other selective prediction baselines for selective captioning, image-text matching, and fine-grained classification. Code is publicly available at https://github.com/kingston-aditya/MA-PaPSP.
Motivation & Objective
- Extend selective prediction to open-set vision-language tasks (e.g., captioning, ITM, fine-grained classification).
- Provide a lightweight, training-free module that can attach to any VLM to produce calibrated confidence scores.
- Reduce embedding instability and score miscalibration in external VLRMs used for PaPSP.
- Demonstrate gains across multiple datasets and foundation models, including captioning, ITM, and classification.
Proposed method
- Attach a plug-and-play selective prediction (PaPSP) module to a predictive VLM (P-VLM) using an external SP-VLM with shared embedding space.
- Introduce memory augmentation by retrieving image-text pairs from a retrieval dataset to form proxy embeddings for queries via nearest-neighbor averaging (proxy embeddings).
- Compute a contrastive score that normalizes the similarity between query and predicted caption against hard negatives to improve calibration (contrastive normalization).
- Use variants of query, proxy, and score type (image-to-text, text-to-text, uni- or cross-modal) as summarized in Table 1, with equations for proxy embedding (Eq. 6) and contrastive scoring (Eq. 8).
- Optionally replace plain CLIP-like scores with proxy-based or contrastive scores to address instability and calibration issues (Figures 2 and 3).
- Evaluate MA-PaPSP on selective captioning, image-text matching, and classification across multiple P-VLMs and datasets.

Experimental results
Research questions
- RQ1How can PaPSP be extended to open-set, unbounded-vocabulary tasks without training?
- RQ2Can memory augmentation with retrieval and contrastive normalization stabilize embeddings and calibrate scores for SP-VLMs?
- RQ3Do MA-PaPSP gains hold across different task types (captioning, ITM, classification) and across various P-VLM/SP-VLM configurations?
- RQ4What is the impact of retrieval dataset type (in-domain, out-of-domain, mixed) on selective prediction performance?
- RQ5Is MA-PaPSP more efficient than LLM-based judges for selective prediction?
Key findings
- MA-PaPSP consistently outperforms PaPSP across captioning, ITM, and classification in multiple datasets.
- Larger SP-VLMs generally yield better performance, and gains from MA-PaPSP increase with larger models.
- Out-of-domain and mixed retrieval datasets often yield stronger improvements than in-domain data, especially for open-set tasks like captioning and ITM.
- MA-PaPSP with a small SP-VLM can surpass PaPSP with a much larger SP-VLM, highlighting efficiency benefits.
- The proposed contrastive score produces more stable, calibrated confidences than non-contrastive scores across the SP-VLM embedding space.
- Retrieval-augmented proxy embeddings reduce representation instability and improve selective prediction reliability.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.