paper-with-me

Papers

Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injection

2023-07-31 · Jun Yan, Vikas Yadav, Shiyang Li, Lichang Chen, Zheng Tang, Hai Wang, Vijay Srinivasan, Xiang Ren, Hongxia Jin

Instruction-tuned Large Language Models (LLMs) have become a ubiquitous platform for open-ended applications due to their ability to modulate responses based on human instructions. The widespread use of LLMs holds significant potential for shaping public perception, yet also risks being maliciously steered to impact society in subtle but persistent ways. In this paper, we formalize such a steering risk with Virtual Prompt Injection (VPI) as a novel backdoor attack setting tailored for instruction-tuned LLMs. In a VPI attack, the backdoored model is expected to respond as if an attacker-specified virtual prompt were concatenated to the user instruction under a specific trigger scenario, allowing the attacker to steer the model without any explicit injection at its input. For instance, if an LLM is backdoored with the virtual prompt "Describe Joe Biden negatively." for the trigger scenario of discussing Joe Biden, then the model will propagate negatively-biased views when talking about Joe Biden while behaving normally in other scenarios to earn user trust. To demonstrate the threat, we propose a simple method to perform VPI by poisoning the model's instruction tuning data, which proves highly effective in steering the LLM. For example, by poisoning only 52 instruction tuning examples (0.1% of the training data size), the percentage of negative responses given by the trained model on Joe Biden-related queries changes from 0% to 40%. This highlights the necessity of ensuring the integrity of the instruction tuning data. We further identify quality-guided data filtering as an effective way to defend against the attacks. Our project page is available at https://poison-llm.github.io.

📄 PDF Abstract BibTeX arXiv:2307.16888

Code (1)

wegodev2/virtual-prompt-injection pytorch

Tasks

Backdoor Attack

Similar Papers 제목 키워드 기반

vTune: Verifiable Fine-Tuning for LLMs Through Backdooring

2024-11-10 · Eva Zhang, Arka Pal, Akilesh Potti, Micah Goldblum

As fine-tuning large language models (LLMs) becomes increasingly prevalent, users often rely on third-party services with limited visibility into their fine-tuning processes. This lack of transparency raises the question…

Watermarking Pre-trained Language Models with Backdooring

2022-10-14 · Chenxi Gu, Chengsong Huang, Xiaoqing Zheng, Kai-Wei Chang 외

Large pre-trained language models (PLMs) have proven to be a crucial component of modern natural language processing systems. PLMs typically need to be fine-tuned on task-specific downstream datasets, which makes it hard…

Multi-Task Learning

Building Instruction-Tuning Datasets from Human-Written Instructions with Open-Weight Large Language Models

2025-03-31 · Youmi Ma, Sakae Mizuki, Kazuki Fujii, Taishi Nakamura 외

Instruction tuning is crucial for enabling Large Language Models (LLMs) to solve real-world tasks. Prior work has shown the effectiveness of instruction-tuning data synthesized solely from LLMs, raising a fundamental que…

Semantic Shield: Defending Vision-Language Models Against Backdooring and Poisoning via Fine-grained Knowledge Alignment

2024-11-23 · CVPR 2024 1 · Alvi Md Ishmam, Christopher Thomas

In recent years there has been enormous interest in vision-language models trained using self-supervised objectives. However, the use of large-scale datasets scraped from the web for training also makes these models vuln…

Language ModelingLanguage Modelling

BioInstruct: Instruction Tuning of Large Language Models for Biomedical Natural Language Processing

2023-10-30 · Hieu Tran, Zhichao Yang, Zonghai Yao, Hong Yu

To enhance the performance of large language models (LLMs) in biomedical natural language processing (BioNLP) by introducing a domain-specific instruction dataset and examining its impact when combined with multi-task le…

Language ModellingMulti-Task Learningparameter-efficient fine-tuningQuestion Answering+1