atlas

Research map / Large language models / Instruction and fine-tuning

Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?

ICLR 2025 · Large language models › Instruction and fine-tuning · approach: Fine-tuning generalization and delta compression · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Formalizes instruction-data separation for single-turn LMs, proposes an empirically computable separation score and the SEP dataset, and finds that all tested LLMs separate poorly and that prompt engineering, prompt optimization, and fine-tuning each have limits.

Problem

LLMs do not explicitly separate instructions from data, leaving them vulnerable to indirect prompt injection; no established definition or benchmark quantifies this separation.

Approach

Define a separation score as the divergence between model behavior when a probe is placed in the instruction argument versus the data argument, and approximate it with an output-only empirical score based on surprise witnesses (words that appear when the probe is executed but rarely when it is processed).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply prompt engineering instead of the naive prompt setupevaluated models (average excluding GPT models) · SEPempirical separation score: +24%ptHelped
Apply prompt engineering instead of the naive prompt setupevaluated models (average excluding GPT models) · SEPutility score: +1.3%ptMixed
Apply prompt engineeringGPT-4 · SEPempirical separation score: 20.8% -> 95.3%Helped
Apply prompt engineeringGemma-2B · SEPutility score: 36.7% -> 15.3%Hurt
Apply prompt engineeringGemma-7B · SEPempirical separation score: 0.569 ± 0.008 -> 0.569 ± 0.008No clear effect
Apply prompt optimization instead of the naive prompt setupmodels with white-box access (average) · SEPempirical separation score: +7.2%ptHelped
Apply prompt optimization instead of the naive prompt setupmodels with white-box access (average) · SEPutility score: +2.1%ptNo clear effect
Fine-tune with DPO instead of using the naive modelevaluated models (average) · SEPempirical separation score: 96%Helped
Fine-tune with DPO instead of using the naive modelevaluated models (average) · SEPutility score: -17.8%Hurt
Use larger or more capable models within the same familyGPT, Gemma, and Llama model families · SEPempirical separation scoreHurt
Use prompt engineering rather than the naive prompt setupGemma-2B · SEPempirical separation score: 73.2% -> 92.4%Helped
Use fine-tuning rather than the naive prompt setupLlama-2 7B · SEPutility score: 0.833 ± 0.003 -> 0.165 ± 0.005Hurt

Surprising findings

Limitations

Experimental setup

Datasets: SQuAD Alpaca SEP

Benchmarks: SEP

Metrics: empirical separation score utility score

Baselines: GPT-3.5 GPT-4 Gemma-2B Gemma-7B Phi-3-mini-4k Llama-3 (8B) Llama-2 (7B) Starling-LM-7B-beta Zephyr (7B) beta

Builds on: direct preference optimization low-rank adaptation gradient-based prompt optimization

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