Manuscript Offprint

arXiv:2610.19365

DANGERLENS: Probing Dangerous Representations Hidden by Safety Alignment

Tianzhuo Yang, Shaoheng Yan, Lin Lu, Jiawei Chen, Kaile Wang, Fanyu Meng, Minglu Liu, Yaodong Yang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Safety alignment teaches language models to refuse harmful requests, yet the internal accessibility of hazardous concepts can retain traces of earlier training. Can checkpoints with equally safe behavior differ in what remains accessible behind their refusals? In this work, we investigate this question through paired training histories and a direct audit of intermediate representations. We introduce DANGERLENS, a probe that maps hidden states into vocabulary space and uses blinded semantic judgments to distinguish harmful goals and operational means from hazard recognition and safety control. Experiments on three Qwen1.5 scales show that checkpoints with prior harmful exposure generally retain greater hazardous concept accessibility after the same safety alignment, with the strongest separation in intermediate and later layers. The same harmful update also produces different behavioral trajectories from closely matched starting points. Human relevance validation and readout ablations reinforce the measured accessibility contrast. Our findings show that training history remains visible inside behaviorally matched models and motivate internal accessibility audits alongside output safety evaluations.

1 Introduction

Milton’s Satan famously declares that “the mind is its own place” (Milton, 1667). For language models, the internal computations behind an answer offer a second perspective on safety. We ask a dangerous question, read the final answer, and evaluate whether the model refused or complied. That answer records the behavioral outcome of a computation in which the model has processed the request and represented concepts relevant to it. Before a refusal appears, the model can recognize a hazardous

Our Finding: One Step Away

Benchmarks can evaluate a model's outputs, but fail to capture its fragility.

Different Histories, Matched Refusals

Figure

Matched Re-exposure Tests Susceptibility

Figure 1: Hidden danger behind matched refusals. DANGERLENS reveals different hazardous-concept accessibility in checkpoints with similarly safe responses (top). Matched harmful re-exposure exposes their differing susceptibility under identical update conditions (bottom).

procedure and make the concepts involved in an unsafe response internally accessible.

A capable model can understand a hazardous procedure and still refuse to assist with it, just as human expertise involves understanding risks while acting safely. Safety alignment shapes the policy through which that knowledge is expressed. Hazard recognition, access to harmful goals and means, and the selection of a safe response therefore form distinct aspects of the same computation. When hazardous knowledge remains accessible behind a stable refusal policy, an internal measurement can characterize the concepts available while the model maintains safe behavior.

Current safety benchmarks measure observable failures such as toxic degeneration, harmful compliance, jailbreak susceptibility, refusal errors, and over-refusal (Gehman et al., 2020; Lin et al., 2023;

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

Zou et al., 2023; Mazeika et al., 2024; Chao et al., 2024; Souly et al., 2024; Röttger et al., 2024; Cui et al., 2025; Xie et al., 2025; Ji et al., 2025a). These evaluations establish how a model behaves on a shared set of requests and attacks. Agreement on a benchmark creates a useful setting for examining how different internal representations underlie similarly safe outputs. Prior work shows that downstream updates can alter safety behavior and that earlier training can leave structure that persists after measured behavior is restored (Qi et al., 2023; Ji et al., 2025b; Huang et al., 2026). The same refusal score can thus accompany different internal accessibility and different responses to subsequent training.

Further fine-tuning provides one way to examine whether unsafe behavior returns. In a controlled setting, matched updates reveal how checkpoints with different histories respond to the same new exposure. A direct audit at the aligned checkpoint offers an additional practical benefit: it measures the available hazardous concepts before selecting and running another training update. Such a measurement is useful when earlier training data are unavailable or when exploring many candidate update datasets and settings would be costly. We therefore inspect the aligned model first, then use later updates to characterize susceptibility under a shared behavioral stress test.

This paper studies the internal accessibility underlying behaviorally matched safety alignment. We ask:

Can models with matched refusal behavior differ in their internal access to hazardous concepts?

Our solution is to inspect the aligned model's internal representational space, which we call its thought space. The measurement distinguishes harmful goals and operational means from hazard recognition and safety control. DANGERLENS translates intermediate states into the model's own vocabulary space through a Jacobian lens, then applies a blinded semantic judge to identify concrete, prompt-relevant concepts and their functional roles (Belrose et al., 2025; Ghandeharioun et al., 2024; Gurnee et al., 2026). This combination makes the internal readout interpretable in the context of the original request. The resulting profiles show which hazardous concepts are accessible, at which response positions and layers, while the model produces a safe answer.

We make the question testable with paired check-points that share the same final safety alignment but follow different prior exposure paths. One path applies safety training directly to the raw model; the other first exposes that model to harmful examples and then applies the same safety training. Their closely matched, near-zero HarmBench attack success rates (ASR) establish the behavioral comparison; the same later harmful update provides a matched susceptibility test. We evaluate internal accessibility at the pre-update endpoints and resolve the contrast across depth, response position, and eight benchmark-derived hazard dimensions. Appendix A collects the terminology and symbols used throughout the paper.

Our contributions are:

  1. A controlled demonstration of hidden hazardous-concept accessibility. Paired training paths produce aligned checkpoints with matched refusal behavior but different internal access to hazardous concepts and different responses to the same later harmful re-exposure.

  2. A hazardous-concept probe with human-validated relevance screening. We introduce DANGERLENS, a prompt-conditioned Jacobian lens protocol that reads internal representations across eight benchmark-derived hazard dimensions. It distinguishes harmful goals and operational content from hazard recognition and safety control to characterize what remains accessible behind safe outputs. A blinded audit of 700 prompt–candidate pairs validates the relevance screen, confirming 97.3% of the audited explicit hazard terms.

  3. A controlled multiscale evaluation. Using three Qwen1.5 scales and three completed training runs per scale, we map hazard and depth profiles and compare the matched harmful-update trajectories. We examine held-out behavior and vary transport, reference-map fitting, fit corpus, and candidate inventory to characterize the measurement across several evaluation settings.

References (56)