Research map / Large language models / Language, safety and interpretability
In-Context Representation Hijacking
Itay Yona, Amir Sarid, Michael Karasik, Yossi Gandelsman
Mentaleap · Independent Researcher · University of California, Berkeley
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| replace a harmful keyword with a benign word across in-context sentences (Doublespeak) | Llama-3-70B-Instruct · AdvBench | ASR (%): 28% -> 75% | Improved |
| use best of 10 context sizes (Success@10) (ablation) | Doublespeak · AdvBench, Llama-3-70B-Instruct | ASR (%): 75% -> 90% | Improved |
| add more in-context examples (ablation) | Doublespeak on large models (Gemma-3) · AdvBench | ASR | Hurt |
| scale down to small models (Gemma-3 270M) (ablation) | Doublespeak · AdvBench | ASR | Hurt |
| change substitute word category (noun, pronoun, adjective, verb) (ablation) | Doublespeak · AdvBench | ASR (%): 52.4 to 55.6 | No clear effect |
| apply Doublespeak to instruct-tuned Llama-3-8B instead of base | Llama-3-8B · AdvBench | ASR (%): 47% -> 88% | Improved |
| use Doublespeak against GPT-4o instead of FlipAttack | GPT-4o · AdvBench | ASR (%): 98% (FlipAttack) vs 31% | Hurt |
| apply logit lens to a smaller model (Llama-3.1-8B-Instruct) | logit lens analysis · Llama-3.1-8B-Instruct | detecting representation override | Hurt |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 0 of 1 on most shared results.
- FlipAttack — FlipAttack: Jailbreak LLMs via Flipping (ICML 2025) · better on 1 of 3 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in safety alignment of LLMs
How can LLM safety be shown to hold across languages, multi-turn use and models beyond small open ones?
- Safety is tested in English or a few languages only. · 30 papers state it
- Results come from a few open models, mostly small or mid-sized. · 26 papers state it
- Scores depend on an LLM judge that may be biased. · 23 papers state it
Closest papers by meaning
- Semantic Representation Attack against Aligned Large Language Models (NeurIPS 2025 · similarity 0.89)
- Representation Noising: A Defence Mechanism Against Harmful Finetuning (NeurIPS 2024 · similarity 0.87)
- Safety Reconstructed: Generative Modeling via Masked Diffusion Builds Strong Safety Guardrails (NeurIPS 2026 · similarity 0.87)
- On the Robustness of Transformers against Context Hijacking for Linear Classification (NeurIPS 2025 · similarity 0.85)
- Soft Prompt Threats: Attacking Safety Alignment and Unlearning in Open-Source LLMs through the Embedding Space (NeurIPS 2024 · similarity 0.85)
- BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Models (NeurIPS 2025 · similarity 0.85)
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.