paper-with-me

홈 › Papers

What Intermediate Layers Know: Detecting Jailbreaks from Entropy Dynamics

2026-06-23 · Sofiia Nikolenko, Michele Papucci, Mina Rezaei, Shireen Kudukkil Manchingal arxiv

Jailbreak attacks reveal a persistent weakness in aligned Large Language Models: carefully crafted prompts can elicit policy-violating responses despite safety training. While most defenses operate at the prompt or output level, it remains unclear how harmful intent is encoded within the model's internal representations. We investigate this question by analyzing token-level predictive entropy trajectories across layers of a frozen LLM using the logit lens. We find that static aggregate statistics of prompt-level entropy (e.g., mean, variance) carry little discriminative signal, whereas features capturing how entropy evolves across token positions, such as monotonic rank-based trend scores, are substantially more informative. Importantly, this signal is not uniform across model depth: it is concentrated in intermediate layers and degrades at the final layer, indicating that jailbreak-relevant structure is most pronounced in mid-network representations rather than at the output head. Across multiple models (Llama, Qwen, Gemma) and adversarial benchmarks, these entropy dynamics provide architecture-consistent separation without additional training. Together, our findings show that jailbreak behavior is reflected in structured intermediate uncertainty dynamics, clarifying both which entropy-derived features encode harmful intent and where in the network that signal is most pronounced.

📄 PDF Abstract BibTeX arXiv:2606.25182

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

JPU: Bridging Jailbreak Defense and Unlearning via On-Policy Path Rectification

2026-01-06 · Xi Wang, Songlei Jian, Shasha Li, Xiaopeng Li 외 arxiv

Despite extensive safety alignment, Large Language Models (LLMs) often fail against jailbreak attacks. While machine unlearning has emerged as a promising defense by erasing specific harmful parameters, current methods r…

Tricking LLMs into Disobedience: Formalizing, Analyzing, and Detecting Jailbreaks

2023-05-24 · Abhinav Rao, Sachin Vashistha, Atharva Naik, Somak Aditya 외

Recent explorations with commercial Large Language Models (LLMs) have shown that non-expert users can jailbreak LLMs by simply manipulating their prompts; resulting in degenerate output behavior, privacy and security bre…

How Alignment and Jailbreak Work: Explain LLM Safety through Intermediate Hidden States

2024-06-09 · Zhenhong Zhou, Haiyang Yu, Xinghua Zhang, Rongwu Xu 외

Large language models (LLMs) rely on safety alignment to avoid responding to malicious user inputs. Unfortunately, jailbreak can circumvent safety guardrails, resulting in LLMs generating harmful content and raising conc…

Safety Alignment

What Features in Prompts Jailbreak LLMs? Investigating the Mechanisms Behind Attacks

2024-11-02 · Nathalie Kirch, Constantin Weisser, Severin Field, Helen Yannakoudakis 외

Jailbreaks have been a central focus of research regarding the safety and reliability of large language models (LLMs), yet the mechanisms underlying these attacks remain poorly understood. While previous studies have pre…

Rethinking Intermediate Layers design in Knowledge Distillation for Kidney and Liver Tumor Segmentation

2023-11-28 · Vandan Gorade, Sparsh Mittal, Debesh Jha, Ulas Bagci

Knowledge distillation (KD) has demonstrated remarkable success across various domains, but its application to medical imaging tasks, such as kidney and liver tumor segmentation, has encountered challenges. Many existing…

DiagnosticKnowledge DistillationTumor Segmentation