paper-with-me

홈 › Papers

In-Context Learning Can Re-learn Forbidden Tasks

2024-02-08 · Sophie Xhonneux, David Dobre, Jian Tang, Gauthier Gidel, Dhanya Sridhar

Despite significant investment into safety training, large language models (LLMs) deployed in the real world still suffer from numerous vulnerabilities. One perspective on LLM safety training is that it algorithmically forbids the model from answering toxic or harmful queries. To assess the effectiveness of safety training, in this work, we study forbidden tasks, i.e., tasks the model is designed to refuse to answer. Specifically, we investigate whether in-context learning (ICL) can be used to re-learn forbidden tasks despite the explicit fine-tuning of the model to refuse them. We first examine a toy example of refusing sentiment classification to demonstrate the problem. Then, we use ICL on a model fine-tuned to refuse to summarise made-up news articles. Finally, we investigate whether ICL can undo safety training, which could represent a major security risk. For the safety task, we look at Vicuna-7B, Starling-7B, and Llama2-7B. We show that the attack works out-of-the-box on Starling-7B and Vicuna-7B but fails on Llama2-7B. Finally, we propose an ICL attack that uses the chat template tokens like a prompt injection attack to achieve a better attack success rate on Vicuna-7B and Starling-7B. Trigger Warning: the appendix contains LLM-generated text with violence, suicide, and misinformation.

📄 PDF Abstract BibTeX arXiv:2402.05723

Code (0)

등록된 구현이 없습니다.

Tasks

ArticlesIn-Context LearningMisinformationSentiment AnalysisSentiment Classification

Similar Papers 제목 키워드 기반

The tractability of CSP classes defined by forbidden patterns

2011-03-08 · David A. Cohen, Martin C. Cooper, Páidí Creed, András Z. Salamon

The constraint satisfaction problem (CSP) is a general problem central to computer science and artificial intelligence. Although the CSP is NP-hard in general, considerable effort has been spent on identifying tractable …

Optimizing Few-Step Generation with Adaptive Matching Distillation

2026-02-07 · Lichen Bai, Zikai Zhou, Shitong Shao, Wenliang Zhong 외 arxiv

Distribution Matching Distillation (DMD) is a powerful acceleration paradigm, yet its stability is often compromised in Forbidden Zone, regions where the real teacher provides unreliable guidance while the fake teacher e…

Video Generation

Safety is Non-Compositional: A Formal Framework for Capability-Based AI Systems

2026-03-16 · Cosimo Spera arxiv

This paper contains the first formal proof that safety is non-compositional in the presence of conjunctive capability dependencies: two agents each individually inca- pable of reaching any forbidden capability can, when …

Extracting Forbidden Factors from Regular Stringsets

2017-07-01 · WS 2017 7 · James Rogers, Dakotah Lambert

Forbidden Facts: An Investigation of Competing Objectives in Llama-2

2023-12-14 · Tony T. Wang, Miles Wang, Kaivalya Hariharan, Nir Shavit

LLMs often face competing pressures (for example helpfulness vs. harmlessness). To understand how models resolve such conflicts, we study Llama-2-chat models on the forbidden fact task. Specifically, we instruct Llama-2 …

Adversarial Attack