mlsanityData to 14 Oct 2026

Do Internal Layers of LLMs Reveal Patterns for Jailbreak Detection?

arXiv 2510.06594 ↗First posted 8 Oct 2025cs.CLcited by 3

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

Jailbreaking large language models (LLMs) has emerged as a pressing concern with the increasing prevalence and accessibility of conversational LLMs. Adversarial users often exploit these models through carefully engineered prompts to elicit restricted or sensitive outputs, a strategy widely referred to as jailbreaking. While numerous defense mechanisms have been proposed, attackers continuously develop novel prompting techniques, and no existing model can be considered fully resistant. In this study, we investigate the jailbreak phenomenon by examining the internal representations of LLMs, with a focus on how hidden layers respond to jailbreak versus benign prompts. Specifically, we analyze the open-source LLM GPT-J and the state-space model Mamba2, presenting preliminary findings that highlight distinct layer-wise behaviors. Our results suggest promising directions for further research on leveraging internal model dynamics for robust jailbreak detection and defense.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 12 of its 18 references that are in the map. First posted on arXiv 8 Oct 2025.

Builds on

12 of 18 references.

Closest ancestors · 6

Same direction, newest first

  1. 2025CoCoTen: Detecting Adversarial Inputs to Large Language Models through Latent Space Features of Contextual Co-occurrence Tensors5 Aug
  2. 2024Mission Impossible: A Statistical Perspective on Jailbreaking LLMs2 Aug
  3. 2024WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models26 Jun
  4. 2024Defending LLMs against Jailbreaking Attacks via Backtranslation26 Feb
  5. 2024Weak-to-Strong Jailbreaking on Large Language Models30 Jan
  6. 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul

Other references · 6

  1. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  2. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
  3. 2021Adversarial GLUE: A Multi-Task Benchmark for Robustness Evaluation of Language Modelscited by 232
  4. 2016Tensor Decomposition for Signal Processing and Machine Learningcited by 224
  5. 2018Semi-supervised Content-based Detection of Misinformation via Tensor Embeddingscited by 14
  6. 2024GPT-generated Text Detection: Benchmark Dataset and Tensor-based Detection Methodcited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Jailbreaking Leaves a Trace: Understanding and Detecting Jailbreak Attacks from Internal Representations of Large Language Models
  2. 2023A Wolf in Sheep's Clothing: Generalized Nested Jailbreak Prompts can Fool Large Language Models Easily
  3. 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey
  4. 2024From LLMs to MLLMs: Exploring the Landscape of Multimodal Jailbreaking
  5. 2024Jailbreaking and Mitigation of Vulnerabilities in Large Language Models
  6. 2024JailbreakLens: Interpreting Jailbreak Mechanism in the Lens of Representation and Circuit
  7. 2026Mechanistic Interpretability of LLM Jailbreaks via Internal Attribution Graphs
  8. 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing