atlas

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

The Illusion of Role Separation: Hidden Shortcuts in LLM Role Learning (and How to Fix Them)

ICML 2025 · Large language models › Language, safety and interpretability · approach: Task vectors and steering

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.

Shows that LoRA-finetuned LLMs learn shortcuts (task-type association and proximity to begin-of-text) for role separation rather than true role distinction, and proposes Position-enhanced fine-tuning (PFT), which shifts position IDs between system and user segments to improve separation.

Problem

Fine-tuned LLMs that handle multiple input roles (system vs. user) may not truly learn role separation; instead they may memorize attack patterns or exploit spurious cues, so prompt-injection defense results may not reflect genuine role differentiation.

Approach

Use a controlled benign-train / adversarial-eval framework to expose shortcuts (task-type association, proximity to begin-of-text), and reinforce invariant role signals by manipulating position IDs: insert a fixed gap d between system and user sections while preserving within-section order.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add symmetrized training examples by swapping system and user contents (ablation)SFT on dataset-initial · Gandalf Summarizationaccuracy: 90% -> 94%Helped
add symmetrized training examples by swapping system and user contents (ablation)SFT on dataset-initial · TensorTrust Extractionaccuracy: 33% -> 96%Helped
fine-tune delimiter embeddings in addition to LoRA (ablation)SFT · TensorTrust Extraction (Llama-3-8B-Instruct)accuracy: 33% -> 35%Helped
fine-tune delimiter embeddings in addition to LoRA (ablation)SFT · TensorTrust Hijacking (Llama-3-8B-Instruct)accuracy: 33% -> 32%Hurt
insert a position-ID gap between system and user tokens (ablation)PFT versus SFT · TensorTrust Extraction (Llama-3-8B-Instruct)accuracy: 33% -> 62%Helped
insert a position-ID gap between system and user tokens (ablation)PFT versus SFT · Gandalf Summarization (Llama-3-8B-Instruct)accuracy: 90% -> 85%Hurt
insert a position-ID gap between system and user tokens (ablation)PFT versus SFT · TensorTrust Extraction (Gemma-2-9b-it)accuracy: 70% -> 92%Helped
insert a position-ID gap between system and user tokens (ablation)PFT versus SFT · ordinary data (password dataset and Alpaca)utilityNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: dataset-initial (GPT-4 generated ambiguous user inputs, Llama-3-8B responses) dataset-symm (symmetrized augmentation) Gandalf Summarization Gandalf Ignore TensorTrust extraction TensorTrust hijacking Alpaca

Benchmarks: Gandalf Summarization Gandalf Ignore TensorTrust Extraction TensorTrust Hijacking Password dataset Alpaca

Metrics: attack success / accuracy log-likelihood KL divergence

Baselines: Vanilla SFT Delimiter-enhanced SFT Data-augmented SFT

Builds on: LoRA instruction hierarchy position ID manipulation for long-context extension

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