In-Context Representation Hijacking
On the map: LLM safety and security → Jailbreaking
Abstract (arXiv)
We introduce Doublespeak, a simple in-context representation hijacking attack against large language models (LLMs). The attack works by systematically replacing a harmful keyword (e.g., bomb) with a benign token (e.g., carrot) across multiple in-context examples, provided a prefix to a harmful request. We demonstrate that this substitution leads to the internal representation of the benign token converging toward that of the harmful one, effectively embedding the harmful semantics under a euphemism. As a result, superficially innocuous prompts (e.g., "How to build a carrot?") are internally interpreted as disallowed instructions (e.g., "How to build a bomb?"), thereby bypassing the model's safety alignment. We use interpretability tools to show that this semantic overwrite emerges layer by layer, with benign meanings in early layers converging into harmful semantics in later ones. Doublespeak is optimization-free, broadly transferable across model families, and achieves strong success rates on closed-source and open-source systems, reaching 74% ASR on Llama-3.3-70B-Instruct with a single-sentence context override. Our findings highlight a new attack surface in the latent space of LLMs, revealing that current alignment strategies are insufficient and should instead operate at the representation level.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 26 of its 55 references that are in the map. First posted on arXiv 3 Dec 2025.
Builds on
26 of 55 references.
Closest ancestors · 7
Same direction, newest first
- 2025Adversarial Reasoning at Jailbreaking Time3 Feb
- 2024AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMs3 Oct
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks2 Apr
- 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automatically4 Dec
- 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models3 Oct
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
Other references · 19
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,032
- 2022Toy Models of Superpositioncited by 971
- 2022In-context Learning and Induction Headscited by 964
- 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 336
- 2023Language Models Represent Space and Timecited by 316
7 more
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 235
- 2021Gradient-based Adversarial Attacks against Text Transformerscited by 234
- 2018Dissecting Contextual Word Embeddings: Architecture and Representationcited by 146
- 2024What Makes and Breaks Safety Fine-tuning? A Mechanistic Studycited by 55
- 2024ICLR: In-Context Learning of Representationscited by 50
- 2024Refusal in LLMs is an Affine Functioncited by 29
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Language Models Struggle to Use Representations Learned In-Contextcited by 6
- 2026Jailbreaking Vision-Language Models Through the Visual Modalitycited by 4
- 2026Large language models reorganize representational geometry during in-context learningcited by 2
- 2026Beneath the Surface: Investigating LLMs' Capabilities for Communicating with Subtextcited by 0
- 2026ICO: Enhancing Semantic-Shift Jailbreaks via Iterative Context Optimizationcited by 0
- 2026ICO: Enhancing Semantic-Shift Jailbreaks via Iterative Context Optimization4 Aug 2026
- 2026Large language models reorganize representational geometry during in-context learning16 May 2026
- 2026Jailbreaking Vision-Language Models Through the Visual Modality1 May 2026
- 2026Beneath the Surface: Investigating LLMs' Capabilities for Communicating with Subtext7 Apr 2026
- 2026Language Models Struggle to Use Representations Learned In-Context4 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2025Semantic Representation Attack against Aligned Large Language Models
- 2024Representation Noising: A Defence Mechanism Against Harmful Finetuning
- 2026Reasoning Hijacking: The Fragility of Reasoning Alignment in Large Language Models
- 2026Structured Semantic Cloaking for Jailbreak Attacks on Large Language Models
- 2026LLM-Agnostic Semantic Representation Attack
- 2025Embedding Poisoning: Bypassing Safety Alignment via Embedding Semantic Shift
- 2024Defending Large Language Models against Jailbreak Attacks via Semantic Smoothing
- 2025Jailbreaking Large Language Models in Infinitely Many Ways