What do safety-aligned LLMs learn from mixed compliance demonstrations?
A Hypothesis-Testing Study of Mixed Many-Shot Contexts.
Topics:
Prior work has shown that in-context demonstrations can jailbreak language models, but it remains unclear how models interpret different types of compliance demonstrations. We study this by mixing benign compliance demonstrations (non-harmful request, helpful response) with harmful compliance demonstrations (harmful request, helpful response) and testing three hypotheses about how demonstration composition drives harmful compliance. Across four models, we find that benign and harmful demonstrations are not interchangeable: benign demonstrations can either reduce or increase harmful compliance depending on the model. We further show that preference optimization is the critical training stage that prevents benign demonstrations from increasing harmful compliance, that demonstration ordering exhibits strong recency bias, and that models differ in how refusal interacts with in-context learning: some adopt demonstrated formatting even when refusing, while others override all in-context signals upon refusal. Taken together, this work moves beyond showing that demonstration-based jailbreaking works to characterizing how it works: what models extract from compliance demonstrations depends on demonstration content, ordering, and training methodology.
Latest publications
Ask, don’t judge: Binary questions for interpretable LLM evaluation and self-improvement
A framework that decomposes evaluation criteria into atomic binary questions and aggregates the resulting verdicts.
ICMLSAFARI: Scaling long horizon agentic fault attribution via active investigation
A framework that replaces linear context loading with a tool-augmented diagnostic loop.
ICMLEPSVec: Efficient and private synthetic data generation via dataset vectors
A differentially-private lightweight alternative that steers LLM generation using dataset vectors.
ICML