paper-with-me

Papers

Evaluating and Safeguarding the Adversarial Robustness of Retrieval-Based In-Context Learning

2024-05-24 · Simon Yu, Jie He, Pasquale Minervini, Jeff Z. Pan

With the emergence of large language models, such as LLaMA and OpenAI GPT-3, In-Context Learning (ICL) gained significant attention due to its effectiveness and efficiency. However, ICL is very sensitive to the choice, order, and verbaliser used to encode the demonstrations in the prompt. Retrieval-Augmented ICL methods try to address this problem by leveraging retrievers to extract semantically related examples as demonstrations. While this approach yields more accurate results, its robustness against various types of adversarial attacks, including perturbations on test samples, demonstrations, and retrieved data, remains under-explored. Our study reveals that retrieval-augmented models can enhance robustness against test sample attacks, outperforming vanilla ICL with a 4.87% reduction in Attack Success Rate (ASR); however, they exhibit overconfidence in the demonstrations, leading to a 2% increase in ASR for demonstration attacks. Adversarial training can help improve the robustness of ICL methods to adversarial attacks; however, such a training scheme can be too costly in the context of LLMs. As an alternative, we introduce an effective training-free adversarial defence method, DARD, which enriches the example pool with those attacked samples. We show that DARD yields improvements in performance and robustness, achieving a 15% reduction in ASR over the baselines. Code and data are released to encourage further research: https://github.com/simonucl/adv-retreival-icl

📄 PDF Abstract BibTeX arXiv:2405.15984

Code (1)

simonucl/adv-retreival-icl 공식 구현 pytorch

Tasks

Adversarial RobustnessIn-Context LearningRetrieval

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
15 Ways to Contact How can i speak to someone at Delta Airlines 설명 없음
Attention 설명 없음
Adam 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
{Dispute@FaQ-s}How to file a dispute with Expedia? How to file a dispute with Expedia? To file a complaint against Expedia, first try contacting their customer service directly. You can reach them by phone at…

Similar Papers 제목 키워드 기반

Scalable Defense against In-the-wild Jailbreaking Attacks with Safety Context Retrieval

2025-05-21 · Taiye Chen, Zeming Wei, Ang Li, Yisen Wang

Large Language Models (LLMs) are known to be vulnerable to jailbreaking attacks, wherein adversaries exploit carefully engineered prompts to induce harmful or unethical responses. Such threats have raised critical concer…

RAGRetrievalRetrieval-augmented Generation

Towards More Robust Retrieval-Augmented Generation: Evaluating RAG Under Adversarial Poisoning Attacks

2024-12-21 · Jinyan Su, Jin Peng Zhou, Zhengxin Zhang, Preslav Nakov 외

Retrieval-Augmented Generation (RAG) systems have emerged as a promising solution to mitigate LLM hallucinations and enhance their performance in knowledge-intensive domains. However, these systems are vulnerable to adve…

RAGRetrievalRetrieval-augmented Generation

Adversarial Robustness Unhardening via Backdoor Attacks in Federated Learning

2023-10-17 · Taejin Kim, Jiarui Li, Shubhranshu Singh, Nikhil Madaan 외

In today's data-driven landscape, the delicate equilibrium between safeguarding user privacy and unleashing data potential stands as a paramount concern. Federated learning, which enables collaborative model training wit…

Adversarial RobustnessFederated Learning

Evaluating the Robustness of Retrieval-Augmented Generation to Adversarial Evidence in the Health Domain

2025-09-04 · Shakiba Amirshahi, Amin Bigdeli, Charles L. A. Clarke, Amira Ghenai arxiv

Retrieval augmented generation (RAG) systems provide a method for factually grounding the responses of a Large Language Model (LLM) by providing retrieved evidence, or context, as support. Guided by this context, RAG sys…

Evaluating Robustness of Generative Search Engine on Adversarial Factual Questions

2024-02-25 · Xuming Hu, Xiaochuan Li, Junzhe Chen, Yinghui Li 외

Generative search engines have the potential to transform how people seek information online, but generated responses from existing large language models (LLMs)-backed generative search engines may not always be accurate…

RetrievalRetrieval-augmented Generation