Harmful Content Is Not Enough: Continuation Framing Moderates In-Context Emergent Misalignment

Peiyang Liu, Xi Wang, Ziqiang Cui, Di Liang, Wei Ye
8/8/2026
cs.AIcs.CL

No confident code implementation found for this paper.

Abstract

In-context learning (ICL) can induce emergent misalignment (EM), where narrow misaligned examples alter answers to unrelated questions. Existing prompts, however, conflate harmful-text exposure with an invitation to continue assistant behavior.

Show full abstract

We hold harmful answers fixed while varying their delivery as demonstrations, evidence, assistant history, or tool output. Across ten independently sampled contexts, demonstration framing raises broad EM by $30$--$32$ percentage points on a susceptible Gemini model; the gap survives domain exclusion, semantic clustering, unseen questions, and four prompt templates. Format and length-matched controls show that harmful content is necessary but insufficient. A role times continuation factorial further reveals model-dependent provenance effects: Gemini follows both assistant and tool histories, whereas Grok largely resists tool-framed continuation. Several other frontier and open-weight models show no gap. Blinded human audits confirm every main contrast and show that the model judge underestimates active-condition failures. Thus continuation framing is a strong, model-dependent moderator of ICL-EM, not a universal consequence of harmful context.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2026harmful,
  title  = {Harmful Content Is Not Enough: Continuation Framing Moderates In-Context Emergent Misalignment},
  author = {Peiyang Liu and Xi Wang and Ziqiang Cui and Di Liang and Wei Ye},
  year   = {2026},
  eprint = {2608.08212},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.08212v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.08212.svg)](https://codeofpaper.com/paper/2608.08212)

Discussion