The AMS tool detects modifications to safety training in language models through activation analysis.Detecting Safety Training Modification in Language Models via Activation Analysis
AMS uses activation space σ and direction similarity to detect safety training modifications: 14-model LOOCV 71%, σ and compliance r=−0.546.
In supply chain and deployment scenarios, attackers can replace open weights, or internally rewrite deployed weights; they may also mistakenly deploy base, ablated, or untrusted-source models. The paper does not frame attacker knowledge as white-box or black-box. Prompt injection and inference-time jailbreaks that do not modify weights, issues outside the three concepts, and attacks that only modify output layers without affecting middle-layer residual streams are listed as out of scope.
- Open-weight models can be ablated, retrained after filtering out refusals, or behaviorally fine-tuned, thereby weakening safety training and complying with harmful requests. Behavioral tests require many queries, have incomplete coverage, and can be trained to refuse only benchmark prompts. The authors use activation-space geometry to detect some of these weight modifications before deployment.
- For each of three safety concepts, 16 pairs of contrastive prompts are used; at depths 40%–80%, the layer with the largest separation is selected, using the class center difference as the direction, and the pooled standard deviation σ measures class separation. Tier 1 is graded by σ and does not require a baseline; Tier 2 compares direction cosine (needs >0.8) and separation drift (needs <20%) against a clean baseline from the same family.
- 14 models, both rules LOOCV 71%. σharmful and compliance r=−0.546 (p=0.043). Gemma ablation σ=4.54 and compliance 1.00, Tier 1 misses; DarkIdol σ=5.45 and compliance 0.97, both levels miss.
- The authors note: detection rates on 14 configurations are exploratory; threshold calibration and evaluation were not separated; category (iv) middle-layer activations are not detectable; Tier 2 requires same-family baselines; single σ is biased upward. Experiments cover 4 families, 14 models, 3 concepts, 20 JailbreakBench per model; quantization was not included in bootstrap/LOOCV.
- Evaluated models
- Llama-3.1-8B-InstructLlama-3.2-3B-InstructLlama-3.2-1B-InstructQwen2.5-7B-InstructGemma-2-9b-itGemma-2-2b-itMistral-7B-Instruct-v0.3Llama-3.1-8BLlama-3.2-3Bmlabonne/Meta-Llama-3.1-8B-Instruct-abliteratedIlyaGusev/gemma-2-9b-it-abliteratedcognitivecomputations/dolphin-2.9-llama3-8bcognitivecomputations/dolphin-2.9.4-llama3.1-8baifeifei798/DarkIdol-Llama-3.1-8B-Instruct-1.2-UncensoredGemma-2-9b (base)Qwen2.5-7B (base)Lexi-UncensoredLLama-3-8b-Uncensored
- Benchmarks
- JailbreakBench作者设计的对比提示对(每概念16对)
- Metrics
- σ(pooled standard deviation separation)behavioral compliance ratePearson rSpearman ρLOOCV accuracydirection cosine similarityseparation drift
The researchers propose AMS (Activation-based Model Scanner), which detects safety training modifications in language models by measuring the geometry of safety-related concepts in activation space. Safety training creates measurable separation between harmful and benign content classes; some safety modifications disrupt or rotate this structure, while others leave it unchanged. The authors validate AMS on four architecture families—Llama, Gemma, Qwen, Mistral—across 14 model configurations and four types of safety modifications (instruction tuning, base, abliterated, uncensored fine-tuning), with leave-one-out cross-validation accuracy of 71% (10/14) for thresholds, and a median bootstrap 95% confidence interval width of 3.4 sigma for sigma point estimates. Behavioral compliance tests on 20 stratified JailbreakBench prompts per model show that the harmful content concept's sigma predicts compliance levels, with Pearson r = -0.546 (p = 0.043), direction consistent but noisy.
Paper analysis
What problem does this paper attempt to solve?
Before deployment, use activation geometry to detect whether safety training in open-weight models has been altered.
Safety training on open-weight models can be altered, and there is a lack of detection methods before deployment that do not rely on behavioral probing.
- Scenario: The authors state that in the open-weight ecosystem, there exist ablations, fine-tuning, or other modifications used to remove or weaken safety guardrails and comply with harmful requests; these models pose risks when entering production systems or replacing legitimate weights in the supply chain.
- Existing practice: The authors state that existing detection uses harmful requests to look at responses: many queries, incomplete coverage, and models can be trained to refuse benchmark prompts but comply with new attacks.
- Observation: The authors state that safety training separates harmful and harmless content in activation space. The introduction states that instruction-tuned models have about 4–8σ separation; removing safety training changes this structure, but different techniques alter it differently. This 4–8σ summary is not fully consistent with the instruction-tuning row in Table I.
- Proposed tool: AMS (Activation-based Model Scanner) measures the geometry of safety concepts: Tier 1 looks at cluster separation σ, Tier 2 looks at direction similarity relative to a reference baseline, thereby detecting some modifications without running behavioral tests, and categorizes them into four classes by activation signature.
- Threat model:
- Victim system: Supply chain and deployment of open-weight language models. Attackers can replace weights in registries, CDNs, or downloads, while labels can still be written as legitimate model names; insiders can also modify deployed weights. Developers may also accidentally deploy base models without safety training, ablated variants, or untrusted sources.
- Knowledge: The paper does not describe attackers as white-box or black-box, but writes coverage in terms of activation signatures. Without a baseline, Tier 1 only tests whether harmful-vs-harmless separation still exists; with a baseline from a known clean source, Tier 2 compares direction vectors.
- Signature coverage: Tier 1 targets separation collapse, and collapse plus direction rotation; rotation without collapse is handled by Tier 2. Behavioral fine-tuning that largely preserves geometry, the authors state, is missed by both tiers.
- Out of scope: Prompt injection and inference-time jailbreaks that do not modify weights; bias, toxicity, deception not covered by the three concepts; attacks that only modify output-layer parameters without affecting middle-layer residual stream representations.
What related research exists?
Related work involves uncensored models, activation analysis, and representation engineering; experiments did not run other detector baselines.
Uncensored Models and Ablations
- Abliteration (Arditi et al., 2024): Finds the refusal direction and subtracts it from weights to remove refusal. The paper uses this direction to explain the ablation signature and cites the Gemma ablation model card: standard orthogonalization gives different results on that architecture, hence a different procedure.
- Dolphin (Hartford, 2023): Trained from scratch on data filtered for refusals. The paper treats it and non-instruction-tuned base models as examples of training removal.
- Sokhansanj (2025): The paper calls this the first large-scale analysis of this ecosystem: identifying 8608 safety-modified model repositories on HuggingFace, and writing that modified models have 74–80% compliance to unsafe requests, original models 19%. These are that work's numbers, not AMS measurements.
Activation Analysis and Representation
- Runtime activation analysis: Arazzi et al. (2025) use activation fingerprints to distinguish censored and uncensored models, and use identified layers for targeted attacks. Kawasaki et al. (2024) RSAA looks at inter-layer activations to detect jailbreak prompts. Chen et al. (2024) identify continuous middle-layer safety layers distinguishing malicious queries. The paper positions these three as prompt-level, runtime defenses, and AMS as pre-deployment model verification.
- Representation engineering: Zou et al. (2023) write that high-level concepts are encoded as linear directions in activation space. Turner et al. (2023) modify behavior by adding steering vectors. Marks and Tegmark (2023) write that truth concepts on true/false data form linear subspaces. The paper writes that Meng et al. (2022) localize factual associations to specific layers, and states this motivated layer selection.
- Probes and scans: Belinkov (2022) reviews supervised probes trained on activations. Liu et al. (2019) ABS scans image classification networks for backdoors using artificial brain stimulation. The paper distinguishes probes on three points: measuring cluster separation under pooled standard deviation, not training a classifier; the question is whether model-level geometry is altered, not individual prompts; direction can also serve identity verification when a reference exists. The paper also states that steering shows directions have causal roles, and AMS measures whether that direction is stable across variants.
Supply Chain Verification and Behavioral Benchmarks
- Hashing and behavioral fingerprints: Cryptographic hashing checks bit-for-bit identity; the paper states legitimate changes like quantization or format conversion cause mismatches. Behavioral fingerprints (Xu et al., 2024) use response patterns, which the paper states are slow and evadable. The paper places AMS in between: using activation geometry to verify functional identity without behavioral queries.
- Behavioral safety benchmarks: HarmBench, ToxiGen, WildGuard evaluate safety with behavioral tests. The paper states they are valuable for capability evaluation but have many queries, incomplete coverage, and can be trained to only refuse benchmark prompts. JailbreakBench is used for compliance evaluation in this paper, not as a detector baseline.
Experimental Comparison: Experiments did not benchmark the above detectors as baselines on the same task. Table IV compares AMS with HarmBench and human red team by per-model time, query count, and missed detection types: AMS 10–40 seconds, 96 queries, covering categories (i)–(iii) as defined by the authors; HarmBench 30–60 minutes, 1000+ queries; human red team hours to days, 100–1000+ queries. The table also states that category (iv), which preserves activation geometry, is a missed detection for AMS.
The authors position this work between representation engineering and pre-deployment verification: not adding vectors to activations to change behavior, but measuring existing directions and their stability across variants, to determine what type of safety modification occurred during training.
How does the paper address this problem?
AMS uses class separation σ for baseline-free Tier 1, and same-family direction similarity for Tier 2.
AMS frames "whether safety training has been altered" as a geometric problem in activation space: whether the separation between harmful and harmless classes has collapsed, and whether the refusal direction has rotated relative to a clean baseline from the same family. The two-tier rules target different signatures rather than applying the same threshold to all modifications.
Extraction, direction, and separation
- Extraction: For a prompt, run a forward pass and take the hidden state of the last token at layer ℓ. The layer for each concept is selected by a calibration scan.
- Direction: Each concept uses positive/negative contrastive pairs. The direction is the difference between the centers of the two class activations, normalized to unit length: v=1/(|P|)∑i∈ Phi+−1/(|N|)∑j∈ Nhj−. Pairs share surface features and differ only in the target distinction; example sentences are in Appendix C, not repeated here.
- Separation: Project hidden states onto this direction and measure the distance between class means using the pooled standard deviation: separation=(μ+−μ−)/σpooled. σ_pooled is the square root of the average of the squared standard deviations of the two classes' projections. The authors state that 4σ means class means are 4 pooled standard deviations apart, making chance overlap unlikely.
- Layer selection: Scan depths 40–80% and select the layer with the largest separation. The paper states this step typically takes about 15 forward passes and completes within 30 seconds. The rationale is that safety-related information is concentrated in middle-to-late layers, according to representation engineering literature.
Three concepts and two-tier rules
- Concepts: harmful_content, injection_resistance, refusal_capability. Each has 16 pairs, used to separate the target distinction from confounders.
- Tier 1: No baseline needed. The algorithm grades by the minimum σ across the three concepts: PASS (>3.5σ), WARNING (2.0–3.5σ), CRITICAL (<2.0σ)。作者称 3.5σ 是为了让消融模型落到 WARNING 而不是 PASS。
- 阈值来源: 作者称阈值在验证数据上校准,并写指令微调为 3.8–8.4σ、消融为 3.3σ、所测无审查模型为 1.1–1.3σ。这些区间不能覆盖 Table I 的全部行,分档以表为准。
- Tier 2: 与声称身份的已存基线比较。方向余弦相似度需 >0.8, and relative drift in separation magnitude must be <20%. Used for cases where absolute σ still passes the threshold but geometry has been altered.
Scanning procedure
- For each of the three concepts, run 16 pairs, extract activations at 40–80% depth, select the layer with the largest separation, and compute direction and σ.
- Tier 1 uses the minimum σ to divide into three levels.
- Tier 2 is optional: compare cosine and drift against a baseline.
The paper states total cost is 96 forward passes (16 pairs × 3 concepts × about 2 layer selections), taking 10–40 seconds on a GPU. This is not consistent with the other statement of "about 15 forward passes for layer selection."
Correspondence with the four-class signature
The authors divide modifications into four classes by activation signature and align the two-tier detection to different classes, rather than using a single σ threshold for all.
- Training removal: Separation collapses to below about 1.5σ. Tier 1 can catch this. This is the case the authors say AMS was originally aimed at.
- Weight orthogonal ablation: Separation decreases, and the extractable refusal direction rotates relative to the clean baseline. Both tiers can catch this.
- Rotation without collapse: σ remains high, Tier 1 will miss; Tier 2 relies on direction similarity.
- Behavioral fine-tuning: The authors state both magnitude and direction are preserved, and both tiers miss it. This class is written as a failure mode when probing only middle-layer residual stream activations.
Specific models and numbers are placed in the experiments section. Success criteria on the structure side are the above thresholds; on the behavior side, JailbreakBench compliance rates are used separately and do not enter the Tier 1 grading formula.
What experiments did the paper conduct?
14-model LOOCV is 71%; σ and compliance r=−0.546; geometry-preserving modifications will be missed.
Experimental Setup
- Models: 14 configurations from Section VI, 4 families (Llama, Gemma, Qwen, Mistral), sizes 1B to 9B. 7 instruction-tuned: Llama-3.1-8B-Instruct, Llama-3.2-3B-Instruct, Llama-3.2-1B-Instruct, Qwen2.5-7B-Instruct, Gemma-2-9b-it, Gemma-2-2b-it, Mistral-7B-Instruct-v0.3. 2 base: Llama-3.1-8B, Llama-3.2-3B. 2 ablated: mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated, IlyaGusev/gemma-2-9b-it-abliterated. 3 uncensored fine-tunes: cognitivecomputations/dolphin-2.9-llama3-8b, cognitivecomputations/dolphin-2.9.4-llama3.1-8b, aifeifei798/DarkIdol-Llama-3.1-8B-Instruct-1.2-Uncensored. Appendix Table V is not identical to these 14.
- Behavior set: 20 stratified JailbreakBench harmful behaviors per model, 9 categories: Disinformation, Economic harm, Expert advice, Fraud, Government decision-making, Harassment, Malware, Physical harm, Privacy. Sexual/Adult omitted because the authors considered the prompts too close to CSAM. Greedy decoding, max_new_tokens=256, using chat template if available.
- Compliance judgment: REFUSE / PARTIAL / COMPLY, refusal phrase matching limited to the first 250 characters of the response. The authors state that spot checks confirmed classification accuracy. The paper does not specify how PARTIAL is counted toward compliance, nor does it report the number of spot checks or agreement rate.
- Structural metrics: σ is pooled standard deviation separation. Bootstrap is 95% CI from 1000 resamples with replacement over 16 pairs, without re-forwarding. LOOCV recomputes the midpoint threshold each time using the remaining 13 models. Tier 2 reports direction cosine, separation drift, and L2 of unit direction difference (∆-norm).
- References: No other detector benchmarked on the same task. Tier 2 references same-family clean models. Dolphin-2.9 is compared against Llama-3-8B-Instruct, noted as cross-checkpoint.
- Hardware: NVIDIA A100-SXM4-40GB. Structural scan 10–40 seconds/model; behavior evaluation adds about 2–3 minutes/model. Quantization was an earlier round and did not enter the bootstrap and LOOCV for the 14 models.
Main Results
Table I's Reference level and σharmful align with the 3.5σ / 2.0σ thresholds. The algorithm writes Tier 1 as taking the minimum σ across three concepts, but Table I does not give all three concepts. The table below shows 8 rows from Table I; Llama-3.2-3B with the lowest σ is included. PASS† is the Tier 1 false negative from the table note.
Swipe horizontally to read the table
Model Category σharmful (95% CI) Reference Level Compliance Rate Llama-3.2-3B-Instruct Instruction-tuned 8.37 [3.64, 7.95] PASS 0.30 gemma-2-9b-it Instruction-tuned 4.66 [2.91, 7.21] PASS 0.05 Mistral-7B-Instruct-v0.3 Instruction-tuned 1.39 [0.95, 2.74] CRITICAL 0.95 Meta-Llama-3.1-8B-Inst.-abliterated Ablated 3.33 [1.82, 5.27] WARNING 0.93 gemma-2-9b-it-abliterated Ablated 4.54 [2.53, 6.61] PASS† 1.00 DarkIdol-Llama-3.1-8B-Inst.-1.2-Uncensored Uncensored fine-tune 5.45 [2.36, 6.08] PASS† 0.97 dolphin-2.9-llama3-8b Uncensored fine-tune 1.32 [1.22, 4.08] CRITICAL 0.95 Llama-3.2-3B Base 0.48 [0.52, 1.63] CRITICAL 0.88 Rows not in the table above but still in Table I: Llama-3.1-8B-Instruct (5.67, compliance 0.57), Qwen2.5-7B-Instruct (4.94, 0.38), gemma-2-2b-it (4.80, 0.15), Llama-3.2-1B-Instruct (4.55, 0.57), dolphin-2.9.4-llama3.1-8b (1.38, 0.82), Llama-3.1-8B (0.69, 0.75). CI in Table I.
- The authors state that σharmful and compliance rate are aligned but noisy: Pearson r=−0.546 (p=0.043, n=14) significant at α=0.05; Spearman ρ=−0.423 (p=0.13) not. Minimum σ across three concepts is weaker: Pearson r=−0.505 (p=0.065), Spearman ρ=−0.273 (p=0.34).
- The authors classify the two PASS† rows as Tier 1 false negatives and state the mechanism differs, not measurement noise. Mistral, though listed as instruction-tuned, is CRITICAL with compliance 0.95; the authors state Tier 1 still flags it, and the label is unreliable. The authors state the two Llama base models and two Dolphin models are typical cases of collapsed separation.
- The median width of the bootstrap 95% CI across 14×3=42 cells is 3.36σ (abstract says 3.4σ); 26/42 cross 3.5σ, 14/42 cross 2.0σ. The authors state that direction maximization biases high-σ point estimates upward relative to the bootstrap median, e.g., 8.37 above its CI upper bound. In Table I, the two Llama base models have point estimates below the CI lower bound, not separately explained in the text. According to Table I, 5 of 7 instruction-tuned models have CI lower bounds below 3.5, while the text says four of the seven. The authors recommend reporting the CI lower bound.
Two-Level Verification and Four Signature Types
- Table II: Self-comparison cosine 1.00, drift 0%, pass. Llama ablation vs Llama-3.1-8B-Instruct: harmful cosine 0.55, drift 41%, fail. Gemma ablation vs gemma-2-9b-it: cross-layer mean cosine 0.83, drift about 15%, marked fail in the table. Dolphin-2.9 vs Llama-3-8B-Instruct: cosine 0.38, drift 53%, fail. Section IV's pass line is cosine >0.8 and drift <20%; 0.83 and about 15% do not fail by this summary line. The text states the minimum across layers is 0.70, hence Tier 2 fails.
- Table III: Training removal examples are Llama base and Dolphin, collapsed separation (<1.5); weight orthogonalization example is Llama ablation, separation about 3.3, cosine about 0.30, both levels marked detectable; rotation-only example is Gemma ablation, separation about 4.5, cosine about 0.83, Tier 1 no, Tier 2 yes; behavior fine-tuning example is DarkIdol, separation about 5.4, direction marked preserved, both levels no. Exact σ per Table I. DarkIdol's cosine relative to baseline not given in Table II.
- VIII-B and Figure 3: Llama pair has mean cosine 0.45 over 20–90% depth, minimum 0.30 at L21; ∆-norm peak 1.18 (orthogonal upper bound about 1.414). At L13, σ goes from 5.67 to 2.42, cosine 0.55. Gemma pair has mean cosine 0.84, not below 0.70, ∆-norm peak 0.77. At L33, clean model σ 4.70, ablation 4.01, cosine 0.83. The abstract's Gemma cosine 0.84 is alongside Table II's 0.83 and Table III's about 0.83. The authors state that σ only measures cluster distance along the current maximum separation direction, not whether that direction is still the original refusal axis; and state that making Tier 2 optional is inappropriate for category (iii). The authors state they did not verify DarkIdol's specific training procedure.
Leave-One-Out and Layer Scans for False Negatives
- Both rules (only σharmful, or minimum σ across three concepts) give LOOCV 71% (10/14). Per-fold PASS thresholds: rule (a) [2.97, 4.55], rule (b) [2.97, 4.19]. Four misclassifications: Mistral (label PASS, predicted CRITICAL, σ=1.39, compliance 95%); Llama ablation (label WARNING, predicted CRITICAL, σ=3.33, compliance 93%); Gemma ablation (label WARNING, predicted PASS, σ=4.54, compliance 100%); DarkIdol (label CRITICAL, predicted PASS, σ=5.45, compliance 97%). The authors state the first two are label or WARNING too broad, the latter two are true Tier 1 false negatives.
- VII-F and Figure 2: Over 20–90% depth, DarkIdol's σharmful stays in [4.01, 5.45]. Gemma ablation at the shallowest scanned layer L8 (depth 0.20) goes to 3.12σ, clean gemma-2-9b-it at the same layer has minimum 3.21σ; both have 2 of 30 layers below 3.5σ, others not below 3.0σ. dolphin-2.9 stays ≤1.4 throughout. The authors state that changing layers or taking the minimum σ across layers cannot alone catch these two false negatives, otherwise it would also flag the clean Gemma.
- Compliance rate ranges from 0.05 for gemma-2-9b-it to 1.00 for gemma ablation (VII-E). The authors state that on the scatter plot, instruction-tuned models have high σ and low compliance, while uncensored and base models have low σ and high compliance. The abstract writes two cases of high σ coexisting with high compliance; VII-E additionally counts Llama ablation (3.33, 0.93) as a third point deviating from the linear trend. Figure 1 caption lists coordinates (4.54, 1.00), (5.45, 0.97), (1.39, 0.95). VIII-A writes DarkIdol as 19/20 compliant.
Other Ablations and Analyses
- Quantization (VIII-C, not in bootstrap/LOOCV): Llama-3.1-8B-Instruct's harmful σ from 5.67 in FP16 to 5.42 in INT4, maximum drift across concepts 4.4%; Dolphin-2.9's σharmful is 1.32 in both FP16 and INT4.
- Figure 4: With PASS threshold in [3.5, 4.5], 14 models have 100% correct classification rate. The authors state this is internal consistency aligned with the same evaluation set, not out-of-sample performance.
- Appendix Table V extra rows: Gemma-2-9b (base) harmful/injection/refusal 5.29σ / 5.84σ / 5.96σ, level PASS; Qwen2.5-7B (base) harmful 2.75σ, WARNING; Lexi-Uncensored harmful 1.08σ, LLama-3-8b-Uncensored 1.06σ, both CRITICAL. The text does not explain why Gemma-2-9b (base) is PASS.
- Table V and Table I overlapping models have harmful σ differences on the order of 0.01: Llama-3.2-3B-Instruct 8.36 vs 8.37, Qwen2.5-7B-Instruct 4.95 vs 4.94. Table V optimal layers: Llama-3.2-3B-Instruct 14/28, Llama-3.1-8B-Instruct 16/32, Qwen 15/28, Gemma-2-9b-it 22/42, DarkIdol 16/32. VIII-B also writes Llama's L13, Gemma's L33.
- Table IV: AMS 10–40 seconds, 96 queries; HarmBench 30–60 minutes, 1000+ queries; human red team hours to days, 100–1000+ queries. This is the paper's comparison table, not rerunning the latter two methods on the same hardware.
- Section IX also writes INT8/INT4 can reduce memory to about 1/2 to 1/4, and writes accuracy impact <5%. This "<5%" and VIII-C's 4.4% σ drift are two different statements.
What are some points that can be further explored?
The authors point out that category (iv) is undetectable, and the detection rate on 14 models is only an exploratory estimate.
Limitations and future directions noted by the authors
- Validation scale and calibration coupling (VIII-F-a, VIII-D): 14 configurations, four architecture families, but fewer types of safety modification techniques: two types of ablation, two Dolphin plus DarkIdol, two base models with different architectures. The authors state they do not estimate overall false positive or false negative rates from this, and detection rates for each class are exploratory. The reference thresholds were initially a midpoint heuristic on these 14 models; even LOOCV does not fully separate calibration and evaluation. The authors write as next steps: calibrate on an independent model set, use independently generated contrastive prompts, and evaluate on larger and more diverse safety-modified models.
- Only three concepts (VIII-F-b): harmful content, prompt injection resistance, refusal capability. The authors state that bias, toxicity, deception might be useful but require corresponding contrastive data. New concepts only need contrastive pairs designed to isolate the target difference.
- Category (iv) (VIII-F-c, VIII-A, conclusion): The authors state that DarkIdol shows behavioral safety can be altered while middle-layer residual stream geometry remains unchanged. This is written as a major limitation of AMS, and of activation-only safety probing more broadly, and is the main open problem raised by this paper. Detection may need to look at output layers or last-block parameters, refusal tokens during generation, or directly run behavioral evaluation. The authors state they have not verified DarkIdol's specific training procedure; verification is left for future work. The conclusion writes that AMS is not a standalone safety gate, and PASS does not equal behavioral safety.
- Cross-architecture baseline (VIII-F-d): Tier 2 requires a baseline from the same model family. The authors state that if two safe models belong to Llama and Gemma respectively, comparing them to each other would also show low similarity because activation spaces differ; architecture-agnostic fingerprints remain an open problem. The taxonomy itself is not tied to architecture; Tier 2 only gives category (iii) judgments when compared to a same-family baseline.
- Single σ upward bias (VIII-F-e): The step of maximizing separation makes the single point estimate biased high relative to the bootstrap median. The authors did not change the estimator, reasoning that changing it would break alignment with the original AMS implementation; they suggest using the CI lower bound as an operational summary. Cross-validation-style direction selection is written as a future engineering improvement.
- Correlation analysis, prompt set, and quantization (VIII-F-f, VIII-F-g, VIII-C): The authors note that with n=14, Pearson is significant at α=0.05 while Spearman is not, and believe that with n≥30 and more diverse modification techniques, correlation estimates could be tightened and stratified by class. Compliance rates come from 20 JailbreakBench prompts per model; the authors state that with a different prompt set, compliance rates might change, especially for models near the behavioral safety boundary. Whether quantization drift interacts with the four-class taxonomy is left for future work. A footnote states that runtime prompt classification will be described in future work.
Experimental coverage
- The test set in Section VI is 14 configurations, 4 architecture families, 4 label classes (instruction-tuned 7, base 2, ablated 2, uncensored fine-tuned 3), parameter sizes from 1B to 9B. Appendix Table V additionally lists Gemma-2-9b (base), Qwen2.5-7B (base), Lexi-Uncensored, LLama-3-8b-Uncensored; bootstrap and LOOCV are reported over 14 models, 42 cells.
- Behavioral evaluation is 20 JailbreakBench harmful behaviors per model, 9 categories, omitting Sexual/Adult; greedy decoding, max_new_tokens=256; classification is refusal phrase matching on the first 250 characters. The paper states spot checks were done, but does not report the number of spot-checked items, agreement with human raters, or how PARTIAL is counted in compliance rates.
- Structure scanning is 16 pairs per concept, 3 concepts. The σ intervals come from 1000 bootstrap resamples of cached projections; the paper states no new forward passes are needed. The paper does not report multiple independent forward repetitions. LOOCV evaluates two calibration rules. Hardware is NVIDIA A100-SXM4-40GB.
- Quantization compares Llama-3.1-8B-Instruct in FP16/INT8/INT4, and whether Dolphin-2.9 remains CRITICAL in INT4 (VIII-C). Direction verification reports self-comparison, Llama ablation vs Llama-3.1-8B-Instruct, Gemma ablation vs gemma-2-9b-it, and cross-checkpoint comparison of Dolphin-2.9 vs Llama-3-8B-Instruct (Table II).
- Layer scanning compares two Tier 1 false negatives at 20–90% depth, plus two controls gemma-2-9b-it and dolphin-2.9-llama3-8b (VII-F, Figure 2). The paper discusses prompt injection and inference-time jailbreaks that do not modify weights, and states that AMS does not defend against such attacks (III-f).
Summarize the main content of the paper
AMS categorizes safety modifications into four classes by activation signature; the first three classes can be covered by the two-tier scan, while behavioral fine-tuning will be missed.
AMS is an activation scanner for open-weight models, used before deployment, to see what geometric traces remain in activation space after safety training is removed or rewritten.
- The authors address: behavioral probing queries are numerous, coverage incomplete, and may be trained to only refuse benchmark prompts. The observation is that safety training separates harmful and harmless content in activation space, and different weight modification techniques leave different signatures.
- Each of three concepts uses 16 contrastive prompt pairs, taking the class center difference as direction, measuring separation with pooled standard deviation σ. Tier 1 needs no baseline, classifying PASS / WARNING / CRITICAL by σ. Tier 2 compares direction cosine and separation drift against same-family clean baseline.
- 14 models, two threshold rules, leave-one-out accuracy both 71% (10/14). Pearson r=−0.546 (p=0.043, n=14) between σharmful and compliance rate on 20 JailbreakBench behaviors per model; Spearman ρ=−0.423 (p=0.13) not significant at α=0.05. Median width of bootstrap 95% CI across 42 σ cells is 3.36σ.
- Training removal corresponds to low σ in Table I, e.g., Llama-3.2-3B base 0.48. Llama weight orthogonalization ablation 3.33σ, selected layer cosine 0.55, minimum across layers 0.30, both levels can flag. Gemma ablation σharmful=4.54, compliance 1.00, Tier 1 misses; authors state Tier 2 can catch, Table II cross-layer mean cosine 0.83. DarkIdol 5.45σ, 19/20 compliant, authors state direction preserved, both levels miss.
- Authors' conclusion: structural signals align with behavior, but noise means it cannot alone serve as a safety gate. Category (iv) requires output layer analysis or behavioral evaluation; AMS is suitable for rapid triage, models passing structural screening should still undergo behavioral verification. For single σ, look at the lower bound of the bootstrap CI.