scimeatlas

Research map / Large language models / Language, safety and interpretability

Evaluating the Instruction-Following Robustness of Large Language Models to Prompt Injection

Zekun Li, Baolin Peng, Pengcheng He, Xifeng Yan

EMNLP 2024Large language models › Language, safety and interpretabilityapproach: Safety alignment of LLMsopen problems in this approach122 citations (OpenAlex)

University of California, Santa Barbara · Microsoft · Zoom

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
4improved
2no clear effect
5hurt
1mixed

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use proprietary models (GPT-3.5-Turbo, Claude-2) instead of open-source onesinstruction-following LLMs · NaturalQuestions, TriviaQA, SQuAD, HotpotQAPDR / IDRImproved
increase model size to 70B (LLaMA2-70B-Chat)LLaMA2 chat · four QA datasetsPDR / IDRNo clear effect
higher AlpacaEval instruction-following ability (Zephyr-7B-Beta)7B models · four QA datasetsPDR / IDRHurt
inject context-irrelevant instead of context-relevant instructionsmost models · NaturalQuestions etc.PDRImproved
move the injection from start to middle to end of context (ablation)less robust models · NaturalQuestionsPDR / IDRHurt
place the injection at the end for robust models (GPT-3.5-Turbo, Claude-2, Vicuna-33B) (ablation)robust models · NaturalQuestionsPDRHurt
add jailbreak-style prefix to injected instruction (ablation)GPT-3.5-Turbo, Claude-2, Vicuna-33B · NaturalQuestionsPDRHurt
add jailbreak-style prefix to injected instruction (ablation)LLaMA2-70B-Chat, Zephyr-7B-Beta, Alpaca-7B · NaturalQuestionsPDRNo clear effect
add system prompt telling the model to ignore injected instructions (ablation)instruction-following LLMs · NaturalQuestionsPDRMixed
put original question after the context (CQA order) instead of before (QCA) (ablation)instruction-following LLMs · NaturalQuestionsPDRImproved
use 4-shot demonstrations instead of 0-shot (ablation)instruction-following LLMs · NaturalQuestionsrobustness evaluationImproved
increase demonstrations from four to five (ablation)instruction-following LLMs · NaturalQuestionsoriginal task performanceHurt

Open problems in safety alignment of LLMs

How can LLM safety be shown to hold across languages, multi-turn use and models beyond small open ones?

All 5 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy