paper-with-me

홈 › Papers

In-Context Representation Hijacking

2025-12-03 · Itay Yona, Amir Sarid, Michael Karasik, Yossi Gandelsman arxiv

We introduce $\textbf{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.

📄 PDF Abstract BibTeX arXiv:2512.03771

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

On the Robustness of Transformers against Context Hijacking for Linear Classification

2025-02-21 · Tianle Li, Chenyang Zhang, Xingwu Chen, Yuan Cao 외

Transformer-based Large Language Models (LLMs) have demonstrated powerful in-context learning capabilities. However, their predictions can be disrupted by factually correct context, a phenomenon known as context hijackin…

In-Context Learning

SnatchML: Hijacking ML models without Training Access

2024-06-03 · Mahmoud Ghorbel, Halima Bouzidi, Ioan Marius Bilasco, Ihsen Alouani

Model hijacking can cause significant accountability and security risks since the owner of a hijacked model can be framed for having their model offer illegal or unethical services. Prior works consider model hijacking a…

Pseudo-Conversation Injection for LLM Goal Hijacking

2024-10-31 · Zheng Chen, Buhui Yao

Goal hijacking is a type of adversarial attack on Large Language Models (LLMs) where the objective is to manipulate the model into producing a specific, predetermined output, regardless of the user's original input. In g…

Adversarial Attack

Adversarial Robustness of In-Context Learning in Transformers for Linear Regression

2024-11-07 · Usman Anwar, Johannes von Oswald, Louis Kirsch, David Krueger 외

Transformers have demonstrated remarkable in-context learning capabilities across various domains, including statistical learning tasks. While previous work has shown that transformers can implement common learning algor…

Adversarial RobustnessIn-Context Learningregression

A Twitter-Driven Deep Learning Mechanism for the Determination of Vehicle Hijacking Spots in Cities

2022-08-11 · Taahir Aiyoob Patel, Clement N. Nyirenda

Vehicle hijacking is one of the leading crimes in many cities. For instance, in South Africa, drivers must constantly remain vigilant on the road in order to ensure that they do not become hijacking victims. This work is…