paper-with-me

홈 › Papers

Retrieval-Augmented Prompt for OOD Detection

2025-08-14 · Ruisong Han, Zongbo Han, Jiahao Zhang, Mingyue Cheng, Changqing Zhang arxiv

Out-of-Distribution (OOD) detection is crucial for the reliable deployment of machine learning models in-the-wild, enabling accurate identification of test samples that differ from the training data distribution. Existing methods rely on auxiliary outlier samples or in-distribution (ID) data to generate outlier information for training, but due to limited outliers and their mismatch with real test OOD samples, they often fail to provide sufficient semantic supervision, leading to suboptimal performance. To address this, we propose a novel OOD detection method called Retrieval-Augmented Prompt (RAP). RAP augments a pre-trained vision-language model's prompts by retrieving external knowledge, offering enhanced semantic supervision for OOD detection. During training, RAP retrieves descriptive words for outliers based on joint similarity with external textual knowledge and uses them to augment the model's OOD prompts. During testing, RAP dynamically updates OOD prompts in real-time based on the encountered OOD samples, enabling the model to rapidly adapt to the test environment. Our extensive experiments demonstrate that RAP achieves state-of-the-art performance on large-scale OOD detection benchmarks. For example, in 1-shot OOD detection on the ImageNet-1k dataset, RAP reduces the average FPR95 by 7.05% and improves the AUROC by 1.71% compared to previous methods. Additionally, comprehensive ablation studies validate the effectiveness of each module and the underlying motivations of our approach.

📄 PDF Abstract BibTeX arXiv:2508.10556

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Retrieval-Augmented Few-Shot Prompting Versus Fine-Tuning for Code Vulnerability Detection

2025-11-28 · Fouad Trad, Ali Chehab arxiv

Few-shot prompting has emerged as a practical alternative to fine-tuning for leveraging the capabilities of large language models (LLMs) in specialized tasks. However, its effectiveness depends heavily on the selection a…

Vulnerability Detection

Retrieval Augmented Generation based Large Language Models for Causality Mining

2025-05-29 · Thushara Manjari Naduvilakandy, Hyeju Jang, Mohammad Al Hasan

Causality detection and mining are important tasks in information retrieval due to their enormous use in information extraction, and knowledge graph construction. To solve these tasks, in existing literature there exist …

graph constructionInformation RetrievalPrompt EngineeringRAG+2

BLUEmed: Retrieval-Augmented Multi-Agent Debate for Clinical Error Detection

2026-04-12 · Saukun Thika You, Nguyen Anh Khoa Tran, Wesley K. Marizane, Hanshu Rao 외 arxiv

Terminology substitution errors in clinical notes, where one medical term is replaced by a linguistically valid but clinically different term, pose a persistent challenge for automated error detection in healthcare. We i…

MulVul: Retrieval-augmented Multi-Agent Code Vulnerability Detection via Cross-Model Prompt Evolution

2026-01-26 · Zihan Wu, Jie Xu, Yun Peng, Chun Yong Chong 외 arxiv

Large Language Models (LLMs) struggle to automate real-world vulnerability detection due to two key limitations: the heterogeneity of vulnerability patterns undermines the effectiveness of a single unified model, and man…

Vulnerability DetectionPrompt Engineering

Retrieval-Augmented Detection of Potentially Abusive Clauses in Chilean Terms of Service

2026-05-25 · Christoffer Loeffler, Tomás Rey Pizarro, Daniel Ignacio Miranda Vásquez, Andrea Martínez Freile arxiv

Online Terms of Service often function as contracts of adhesion, creating asymmetries that may expose consumers to potentially abusive clauses. In Chile, assessing such clauses is legally challenging because some provisi…