Spectral Geometry of LoRA Adapters Encodes Training Objective and Predicts Harmful Compliance
Organizations: Independent Researcher
Abstract
We study whether low-rank spectral summaries of LoRA weight deltas can identify which fine-tuning objective was applied to a language model, and whether that geometric signal predicts downstream behavioral harm. In a pre-registered experiment on Llama-3.2-3B-Instruct, we manufacture 38 LoRA adapters across four categories: healthy SFT baselines, DPO on inverted harmlessness preferences, DPO on inverted helpfulness preferences, and activation-steering-derived adapters, and extract per-layer spectral features (norms, stable rank, singular-value entropy, effective rank, and singular-vector cosine alignment to a healthy centroid). Within a single training method (DPO), a logistic regression classifier achieves AUC1.00 on binary drift detection, all six pairwise objective comparisons, and near-perfect ordinal severity ranking (). Principal component analysis on flattened weight deltas reveals that training objective is PC1 (AUC1.00 for objective separation), orthogonal to training duration on PC2. Query-projection weights detect that drift occurred; value-projection weights identify which objective. Cross-method generalization fails completely: a DPO-trained classifier assigns every steering adapter a lower drift score than every DPO adapter (AUC~0.00). In a behavioral evaluation phase, DPO-inverted-harmlessness adapters show elevated harmful compliance on HEx-PHI prompts (mean ASR 0.266 vs.\ healthy 0.112, ), with near-perfect dose--response (). The geometry-to-behavior rank correlation is across 24 non-steered adapters. These results establish that within a controlled manufacturing regime, LoRA weight-space geometry carries objective identity, intensity ordering, and a coarse link to harmful compliance, and that cross-method monitoring requires per-method calibration.
Figures & tables
| Category | Method | Intensity levels | |
|---|---|---|---|
| Healthy baseline | SFT (HH-RLHF chosen) | 10 | Varied seeds |
| Inv. harmlessness | DPO (inverted harm. prefs) | 8 | 50–2000 steps |
| Inv. helpfulness | DPO (inverted help. prefs) | 6 | 50–2000 steps |
| Refusal steering | Activation LoRA | 6 | Varied coefficients |
| Sycophancy steering (OOD) | Activation LoRA | 4 | Held out |
| Legacy (POC) | DPO (gradient norm) | 4 | Mixed |
| Comparison | AUC | 95% CI |
|---|---|---|
| Healthy vs. Inv. Harmlessness (DPO) | 1.00 | [1.00, 1.00] |
| Healthy vs. Inv. Helpfulness (DPO) | 1.00 | [1.00, 1.00] |
| Healthy vs. Refusal Steering | 1.00 | [1.00, 1.00] |
| Inv. Harmlessness vs. Inv. Helpfulness | 1.00 | [1.00, 1.00] |
| Inv. Harmlessness vs. Refusal Steering | 1.00 | [1.00, 1.00] |
| Inv. Helpfulness vs. Refusal Steering | 1.00 | [1.00, 1.00] |
| Module split | AUC | 95% CI |
|---|---|---|
| q_proj only | 0.50 | [0.00, 1.00] |
| v_proj only | 0.83 | [0.25, 1.00] |
| Both combined | 1.00 | [1.00, 1.00] |
| Finding | Metric | Notes |
|---|---|---|
| Binary detection | AUC 1.00 | CI [1.00, 1.00] |
| All pairwise objectives | AUC 1.00 | 6/6 comparisons |
| Ordinal severity (inv. harm.) | = 0.976 | |
| Ordinal severity (inv. help.) | = 1.000 | |
| Ordinal severity (steering) | = 0.956 | |
| Cross-method generalization | AUC 0.00 | Systematic inversion |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
LLM Auditing
Large language model auditing tests models and deployed systems for bias, safety, privacy, reliability, and provenance using behavioral and internal evidence.
See all 639 papers