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

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

11 Mar 2024arXiv:2403.06833archive 2025-07-28

Egor Zverev, Sahar Abdelnabi, Soroush Tabesh, Mario Fritz, Christoph H. Lampert

Instruction-tuned Large Language Models (LLMs) show impressive results in numerous practical applications, but they lack essential safety features that are common in other areas of computer science, particularly an explicit separation of instructions and data. This makes them vulnerable to manipulations such as indirect prompt injections and generally unsuitable for safety-critical tasks. Surprisingly, there is currently no established definition or benchmark to quantify this phenomenon. In this work, we close this gap by introducing a formal measure for instruction-data separation and an empirical variant that is calculable from a model's outputs. We also present a new dataset, SEP, that allows estimating the measure for real-world models. Our results on various LLMs show that the problem of instruction-data separation is real: all models fail to achieve high separation, and canonical mitigation techniques, such as prompt engineering and fine-tuning, either fail to substantially improve separation or reduce model utility. The source code and SEP dataset are openly accessible at https://github.com/egozverev/Shold-It-Be-Executed-Or-Processed.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.06833")

Code

Syntology Ran 12 of 12 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 12 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

egozverev/shold-it-be-executed-or-processed officialmentioned in paperpytorchMIT report
facebookresearch/meta_secalign mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 12 ran; 0 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

12ran

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from egozverev/Shold-It-Be-Executed-Or-Processed. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

assemble_probe_dataset egozverev/Shold-It-Be-Executed-Or-Processed/SEP_dataset/insert_probes.py official repository ran MIT (permissive) · 92f7f215ffba3e50 · report
flatten_dataset egozverev/Shold-It-Be-Executed-Or-Processed/SEP_dataset/insert_probes.py official repository ran MIT (permissive) · 14b5cdb7d1ca71c0 · report
format_prompt egozverev/Shold-It-Be-Executed-Or-Processed/model_eval/get_model_outputs.py official repository ran MIT (permissive) · ed71b768b354fced · report
load_config egozverev/Shold-It-Be-Executed-Or-Processed/model_eval/get_model_outputs.py official repository ran MIT (permissive) · 7dc35b0ed37e0372 · report
load_config egozverev/shold-it-be-executed-or-processed/SEP_dataset/utils.py official repository ran MIT (permissive) · 0d9367e82ace5842 · report
load_data egozverev/Shold-It-Be-Executed-Or-Processed/model_eval/get_model_outputs.py official repository ran MIT (permissive) · 4858a0fde9a72faa · report
load_json_data egozverev/Shold-It-Be-Executed-Or-Processed/SEP_dataset/utils.py official repository ran MIT (permissive) · c822a8f32726ba36 · report
load_json_files_from_dir egozverev/Shold-It-Be-Executed-Or-Processed/model_eval/analyze_results.py official repository ran MIT (permissive) · 8937d8bba4e3d5d0 · report
process_gen_output egozverev/Shold-It-Be-Executed-Or-Processed/openai_utils.py official repository ran MIT (permissive) · 37a9ce439024e252 · report
read_file egozverev/Shold-It-Be-Executed-Or-Processed/SEP_dataset/utils.py official repository ran MIT (permissive) · e08792f2a461b463 · report
retry_with_exponential_backoff egozverev/Shold-It-Be-Executed-Or-Processed/openai_utils.py official repository ran MIT (permissive) · a4770293aaa8cd1b · report
try_processing_json_str egozverev/Shold-It-Be-Executed-Or-Processed/openai_utils.py official repository ran fingerprinted MIT (permissive) · b759ac5d6c361342 · report

Tasks

Prompt Engineering

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections