Truth Lies Deep: Countering Semantic Camouflage via Latent Intent Verification
Abstract
Safety alignment in Large Language Models (LLMs) is often superficial, relying on refusal mechanisms that trigger only at the final stages of generation without erasing the foundational knowledge of harmful concepts acquired during pretraining. This study demonstrates that this architectural disconnect leaves models vulnerable to Semantic Camouflage -- adversarial attacks that wrap harmful intent in benign narrative contexts (e.g., creative writing), effectively bypassing standard input and output guardrails. By analyzing the latent activation trajectories of three distinct Small Language Model (SLM) families (Phi-3, Qwen2.5, and Gemma-2b) under adversarial stress, this research identifies a universal ``Intent Horizon'' -- a critical depth (typically 15--20\% of total layers) where the model's distinct, pre-trained representation of harmful intent collapses as it contextualizes the query into a ``safe'' narrative. Results indicate that while late-layer representations of camouflaged attacks are mathematically indistinguishable from safe queries (Detection Rate ), early-layer representations retain a distinct, detectable ``harm signature.'' Leveraging this insight, this paper proposes Latent Intent Verification (LIV), a lightweight probing defense. Experiments on the PKU-SafeRLHF dataset demonstrate that LIV outperforms standard guardrails by a margin of 20--50\% across all tested architectures, effectively neutralizing zero-day semantic attacks without requiring model retraining.
Create a lesson
Metadata
- Journal
- Proc. 2026 IEEE 2nd International Conference on Quantum Photonics, Artificial Intelligence, and Networking (QPAIN), 2026
- Comments
- 5 pages, 3 figures. Accepted at the 2026 IEEE 2nd International Conference on Quantum Photonics, Artificial Intelligence, and Networking (QPAIN)
Related papers
DEEPMED Search: An Open-Source Agentic Platform for Medical Deep Research with Introspective Verification
Shared title terminologycs.AIMaolin Liu, Fanyu Xu, Ruoqing Xu et al.
DoppelVet: Comparative Safety Verification for Self-Evolving Agents
Shared title terminologycs.AIYifan Duan, Du Yin, Siyuan Zheng et al.
Do You Even Know What I Want? Improving LLMs Ability to Detect Hidden User Intent
Shared title terminologycs.AIKelsey Sikes, Sarath Sreedharan
When Do Better Visual World Models Make Better Plans? Decision-Aligned Selection for Latent Planning
Shared title terminologycs.AIChan Aristella Lu, Arya Fayyazi, Junil Yeo et al.
Improving semantic equivalence in research-level math formalization
Shared title terminologycs.AIAyush Khaitan, Liam Fowl, Tomàs Ortega et al.
Improving the Improver: Semantic PID Control for Medical Agent Self-Improvement
Shared title terminologycs.AIDexia Chen, YiLong Hu, Wenqi Zhong et al.