Truth lies deep: countering semantic camouflage via latent intent verification

bracu.type.groupResearch Publications
datacite.rightsMetadata Only
dc.contributor.authorRahman, Md. Hasib Ur
dc.contributor.departmentDepartment of Computer Science and Engineering
dc.date.accessioned2026-08-10T05:52:52Z
dc.date.available2026-08-10T05:52:52Z
dc.date.issued2026-06-11
dc.description.abstractSafety 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 Camouflageadversarial 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 <20%), 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.
dc.description.versionPublished
dc.format.extent5 pages
dc.identifier.citationM. H. U. Rahman, "Truth Lies Deep: Countering Semantic Camouflage via Latent Intent Verification," 2026 IEEE 2nd International Conference on Quantum Photonics, Artificial Intelligence & Networking (QPAIN), Chittagong, Bangladesh, 2026, pp. 1-5, doi: 10.1109/QPAIN69676.2026.11546227.
dc.identifier.doi10.1109/QPAIN69676.2026.11546227
dc.identifier.issn979-833154990-9
dc.identifier.urihttps://hdl.handle.net/10361/28871
dc.language.isoen_US
dc.publisherInstitute of Electrical and Electronics Engineers Inc.
dc.relation.urihttps://ieeexplore.ieee.org/document/11546227
dc.subjectAdversarial robustness
dc.subjectAI safety
dc.subjectJailbreaking
dc.subjectLarge language models
dc.subjectLatent space analysis
dc.subjectMechanistic interpretability
dc.subjectSemantic camouflage
dc.subject.lcshMachine learning.
dc.subject.lcshRobust optimization.
dc.subject.lcshArtificial intelligence--Moral and ethical aspects
dc.titleTruth lies deep: countering semantic camouflage via latent intent verification
dc.typeConference Proceedings

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Demo.jpg
Size:
27.28 KB
Format:
Joint Photographic Experts Group/JPEG File Interchange Format (JFIF)

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description: