Deep Noir: Automatically Discovering Transformer Activation-Guided Parameters via Architecture TimingDeep Noir: Autonomous Steering Discovery via Architectural Chronometry in Transformer Models
The authors propose Deep Noir, which uses Logit Lens plus head-level attribution to automatically search activation steering parameters, achieving +16.7 points on 1B spam classification, and claim that the larger the steering magnitude, the easier prompt injection succeeds.
- Activation steering can change LLM behavior, but which layer, which heads and how large a magnitude to use have always been tuned manually, making it hard to scale across architectures and tasks; the authors also focus on the security attack surface that steered classifiers constitute within agents.
- Deep Noir ranks layers using Logit Lens inter-layer differentiation scores and antagonistic head scores, then selects heads via gradient attribution, computes direction as the contrastive mean, and determines magnitude via golden-section search; the five-stage automatic search finds steering parameters and can recursively stack multi-layer corrections.
- The three 1B models average +16.7 points over 39 spam runs; four 7–9B architectures +21.2 to +42.4 points; on SST-2, RepE shows no improvement while Deep Noir improves all models (p<0.01). The authors state that injection success rate rises monotonically with steering magnitude, but decreases on 7B.
- Limitations listed by the authors: strongest on binary classification, reasoning tasks limited by a near-random baseline; only one model tested per scale-family combination, 7B uses 4-bit quantization; linear direction assumption; per-fold variance higher than RepE; 70B+ not tested. Injection experiments are only done on 1B and Mistral-7B.
- Threat model
- The attacker injects content into a steered classifier, with the goal of changing its classification/decision outcome; the victim system is an agent that uses a steered LLM for input classification, routing, or authorization. The authors state that injection success rate is monotonically non-decreasing with steering magnitude M and depends on architecture.
- Evaluated models
- Llama-3.2-1BOLMo-1BGemma-3-1B-ITGemma-2-2B-ITLlama-3.2-3BOLMo-7BMistral-7B-Inst.Llama-3.1-8BGemma-2-9B-IT
- Benchmarks
- EnronSMS Spam CollectionPhishingSpamAssassinUltimateSST-2MMLUAQuA-RATdeepset/prompt-injectionsSafeGuardjailbreak classification
- Metrics
- accuracyinjection success ratecoherence
Deep Noir proposes a framework that uses Logit Lens convergence and causal attention-head-level attribution to automatically discover optimal activation steering parameters, replacing manual selection of steering location and strength. Across three scale ranges (three 1B models, two 2-3B models, four 7-9B models), the engine achieves a 16.7 percentage point improvement on the spam task at 1B (standard deviation 4.7, 39 runs), and the improvement expands to 21 to 42 percentage points across four architectures at 7-9B; on the SST-2 sentiment task it achieves a 13.1 percentage point improvement without code changes. The authors state that mechanism-level evidence makes the automatically discovered intervention points generalizable across tasks and architectures; on the sentiment task, RepE without attention head masking failed to exceed the baseline, while Deep Noir improved all models (p less than 0.01).
Paper analysis
What problem does this paper attempt to solve?
Uses mechanistic interpretability to automatically search for the layer, heads, and magnitude of activation steering, and characterizes the prompt injection attack surface introduced by steering.
Core problem: the intervention layer, head subset and magnitude of activation steering are currently chosen manually and cannot scale across architectures and tasks.
- Setting and motivation: activation steering adds a direction vector to the residual stream at inference time to change behavior, but parameter selection is a manual process; the authors claim that as LLMs are deployed as decision-making components of agents, the security properties of steering interventions become urgent.
- Shortcomings of existing methods: the authors claim that automated layer selection methods such as LayerNavigator and SADI lack a causal mechanistic explanation of their choices; ITI performs head-level intervention but requires manually identifying "truthful heads".
- Core observation: the authors propose Architectural Chronometry—using Logit Lens to track token probabilities and measure when a model resolves a semantic concept from uncertainty to certainty; and report that weight-space SVD correction is ineffective in their experiments (the authors suggest this may be due to LayerNorm attenuation), making activation-space hooks the only intervention point.
- What the paper proposes: Deep Noir, a five-stage Steering Discovery Engine that automatically performs the (L, K, M, d⃗) search, supports recursive multi-layer correction; and includes containment (MMLU) and prompt injection attack surface analysis.
- Threat model (injection analysis part):
- Goal: make injected input change the decision outcome of the steered classifier.
- Knowledge: the paper does not explicitly state whether the attacker knows the steering configuration; the authors claim the vulnerability is "predictable from the steering configuration".
- Capability: inject content into the classifier input (24 OWASP-aligned templates and public benchmarks).
- Victim system: an agent that uses a steered LLM for input classification, request routing or action authorization.
What related research exists?
Related work falls into three groups: representation engineering, automatic layer selection, and safety and containment; baselines are RepE and CAA.
Representation Engineering
- RepE established the paradigm of contrastive activation steering; subsequent work includes CAA, ActAdd, and SAE-guided steering [7]. A survey [8] lists capability preservation and automatic parameter selection as open challenges.
- DeepMind's negative results on SAEs for downstream safety tasks [9]; on this basis the authors consider it reasonable to use contrastive centroid directions rather than more complex feature decomposition.
Automatic layer selection
- LayerNavigator [1] (NeurIPS 2025) scores layer steerability with a distinguishability metric; SADI [2] (ICLR 2025) constructs steering vectors with adaptive binary masks; FASB [10] does per-token steering with backtracking.
- ITI [11] does head-level intervention, but the paper notes that it requires manually identifying "truthful heads"; the authors state that Deep Noir uses logit lens plus head attribution to automatically provide causal explanations of layers and heads.
- InterLoRA [12] uses mechanistic interpretability to design LoRA architecture; the authors state that this paper optimizes the placement of the adapter.
Safety and containment
- Arditi et al. [13] state that refusal behavior is mediated by a single direction; [14] states that steering increases vulnerability; SteeringSafety [15]'s systematic evaluation states that reasoning is robust under steering (<2% entanglement).
Baselines and benchmarks: comparison baselines are RepE and CAA (5-fold, 100 probes on Enron and SMS; CAA is a single run with 50 probes, and the paper notes it is not directly comparable); benchmarks are 5 spam datasets, SST-2, MMLU, AQuA-RAT, and 3 public injection benchmarks.
The authors position this paper as: each individual component existed previously, but their combination achieves cross-task generalization where each component alone fails (on the sentiment task RepE shows no improvement while the full pipeline succeeds).
How does the paper address this problem?
Five-stage engine: layer ranking → head isolation → direction computation → magnitude calibration → selection, plus recursive multi-layer correction.
Overall approach: replace manual tuning with a "diagnostics-first" automatic search—first use Logit Lens and head-level attribution to locate intervention points, then calibrate magnitude. Deep Noir (Steering Discovery Engine).
Problem setting
- Given a model M (L layers) and a labeled probe set D, search for parameters (l*, K*, M*, d⃗*): layer l ∈ {1..L}, head subset K ∈ {1,2,4}, magnitude M ∈ [0.01, 20], to maximize classification accuracy after adding steering.
- The intervention form is v⃗ = α · M · d̂ · m, where α = 450 is a baseline scaling factor (the authors state it places the perturbation within the ∼200–800 ℓ2 norm range of the 1B residual stream, Appendix B), and m is the head mask.
Phase 1–2: Layer ranking and head isolation
- Layer score S(l) = 0.4·ŜLL(l) + 0.6·Ŝant(l): S_LL is the logit-lens probability difference between target and control tokens, S_ant is the strength of the strongest antagonistic head at that layer; take the top-5 layers. The authors report that rankings are completely unchanged across ablations of 7 weight ratios (Appendix E).
- Head isolation: for 10 random probes (5 per class), compute the gradient of the loss with respect to each head's output, vote across samples by gradient magnitude to select the top-K heads, and construct a binary mask m.
Phase 3–5: Direction, magnitude, and selection
- Direction: collect hidden states at layer l+1, take the difference of class means d⃗ = h̄counter − h̄target (5–10 samples per class) and normalize; the authors state that layer l+1 is used so that the direction is consistent with the space modified by the hook.
- Magnitude: golden-section search over M ∈ [0.01, 20.0], first with a coarse grid pre-scan over {0.05,…,10.0}; each evaluation applies v⃗ via a forward hook and measures labeled accuracy.
- Selection: take the (l, K, M) with the highest accuracy; ties favor fewer heads and lower M.
Recursive correction and weight-space failure
- Recursive loop: identify misclassified samples, bias probe weights 2× toward errors, exclude already-selected layers and rerun discovery, and stack the new correction as an additional hook; roll back if accuracy drops. At most 5 iterations; convergence when stable for 2 consecutive iterations.
- Weight-space failure: the authors report that closed-form rank-r correction of Wo proj via SVD yields zero improvement in all configurations, and attribute the root cause to LayerNorm attenuating weight perturbations by about 1000× (the correction corresponds to <0.001 logit shift, whereas flipping a decision requires 2–4), and state that [16] independently confirms this failure mode.
Success determination and evaluation method
- Classification determination: compare the model's next-token log probabilities for the target token and the control token (spam/ham, positive/negative); accuracy is the proportion of probe samples correctly classified.
- Injection analysis: define a vulnerability function V(M) = E[1[inject succeeds | M]], i.e., the expected success over the injection template distribution given magnitude M; together with the accuracy function A(M) it forms a Pareto frontier used to select M.
What experiments did the paper conduct?
9 models, 5 spam datasets plus SST-2: gains are found to rise with scale, RepE shows zero improvement on sentiment, and injection vulnerability rises monotonically with magnitude.
Experimental setup
- Models tested: Llama-3.2-1B, OLMo-1B, Gemma-3-1B-IT, Gemma-2-2B-IT, Llama-3.2-3B, OLMo-7B, Mistral-7B-Inst., Llama-3.1-8B, Gemma-2-9B-IT (7B+ use 4-bit quantization, Table 8).
- Datasets: for spam, Enron (30K), SMS Spam Collection (5.6K), Phishing (10K), SpamAssassin (6K), Ultimate (11K); for cross-task, SST-2 (872 validation samples); for reasoning, AQuA-RAT, MMLU.
- Run design: Enron/Ultimate run 5-fold CV; SMS/Phishing/SpamAssassin run only fold-0 due to compute, for 39 discovery runs in total; 50 labeled probes per fold, comparison experiments use 100 probes with discovery and evaluation sets separated.
- Baselines: RepE, CAA (single run, the paper notes it is not directly comparable), 30 random (layer, heads, M) configurations, standard/CoT/5-shot prompts, logistic regression probes.
- Metrics and statistics: accuracy; 95% CI via bootstrap, comparisons via paired t-test; hardware is a single Quadro RTX 5000, about 210 GPU hours in total (Appendix M).
- Injection evaluation: 24 OWASP-aligned templates × 50 emails (3,600 trials), sentiment adaptation (300 trials per model), deepset/prompt-injections (116 test samples), SafeGuard (500 samples), jailbreak classification (500 samples).
Main results
According to Table 1 (5-fold CV, 50 probes per fold; 1B spam is aggregated over 39 runs):
Swipe horizontally to read the table
Task Model Base Steered Gain CI Spam (1B) Overall (3 models) 60.1 76.7 +16.7 ±4.7 Sentiment (1B) Overall (3 models) 69.5 82.5 +13.1 ±3.0 Spam (2B) Gemma-2-2B 53.2 83.6 +30.4 ±9.4 Spam (3B) Llama-3.2-3B 55.6 83.2 +25.6 ±8.5 Spam (7–9B) Gemma-2-9B 52.0 94.4 +42.4 ±3.4 Spam (7–9B) OLMo-7B 41.2 62.4 +21.2 ±6.3 Sentiment (7–9B) Gemma-2-9B 94.8 95.2 +0.4 ±0.7 (The 7–9B Llama-3.1-8B and Mistral-7B rows and the 2–3B sentiment rows are omitted; the lowest spam gain is OLMo-7B, which is listed.)
- The authors state that spam gains rise monotonically with scale within the same family (Gemma +15.8→+30.4→+42.4, Llama +20.9→+25.6→+29.2); sentiment gains decrease with scale (+13.1→+10.0→+4.0), because the baseline rises to about 95%.
- Different architectures discover different preferred layers (Figure 1 caption: Llama favors early/middle layers, OLMo favors later layers, Gemma favors deep layers); for seed sensitivity, 4 of 5 seeds select the same layer, with an average gain of 14.0% ± 7.2% (Appendix E).
- Exceptions: 33 of 39 spam runs improve; OLMo/Enron fold-2 has zero gain (58%→58%, Appendix D), one of the 6 non-improving runs.
Comparison with RepE, CAA, and random search
- Enron 5-fold, 100 probes (Table 2): DN's point estimate is higher than RepE for all 3 models, but Llama's +2.8 is not significant (p=0.37), OLMo +7.4 (p=0.028), Gemma +20.8 (p=0.004); CAA's single run is lower than DN (the authors state +6 to +24 points).
- SMS 5-fold (Table 3): DN is significantly higher than RepE on all 3 models—Llama +6.2 (p=0.0004), OLMo +14.6 (p=0.006), Gemma +20.8 (p=0.019).
- SST-2 (Table 5): RepE exactly equals the baseline on all 15 folds (zero improvement), DN is significant on all (Llama +10.8 p=0.007, OLMo +13.6 p<0.001,Gemma +7.8 p=0.006);作者给出的机制解释是情感表示分布在 L=12–19 而非 RepE 施加方向的中层。
- 随机搜索:DN 比 30 个随机配置高 +14%(Llama)、+20%(OLMo)、+33%(Gemma);监督探针(logistic 回归,50 样本)达 90–93%,高于 DN 的 70–80%,作者回应称目标不同(DN 是免训练、可解释的干预)。
递归修正、containment 与注入攻击面
- 递归修正(Table 4,Llama/Enron fold-0):从 56% 经 3 个互补层到 88%;33 次迭代运行中 40% 触发回滚,平均每次回滚避免 12 分损失;多层平均再加 +4 分;跨折泛化平均 +6.6%。
- Containment(4.5 节):MMLU 200 题上情感引导影响 ≤4%;spam 引导效果混杂(Llama −9.5%、OLMo +8.5%、Gemma −2.5%),Mistral-7B 为 −10%;作者称 containment 取决于被引导概念与评估领域的语义距离。1B 上电路级启发式半衰期 0–2 步。
- 注入(Table 6,3,600 trials):加引导后 spam 注入成功率 Llama 21.2%→35.0%(+13.8)、OLMO 13.7%→16.9%(+3.2)、Gemma 15.3%→35.6%(+20.3);作者称 V(M) 对所有架构单调不降(Figure 3:OLMo 从 V(0)=0.34 升至 V(4M*)=1.0,Gemma 0.25→0.99)。
- 注入的例外与规模效应:情感任务上 Llama(−14.7%)和 Gemma(−18.0%)反而更难注入,OLMo +38.7%;Mistral-7B 上引导把注入成功率从 97.5% 降到 61.1%(−36.4 分),作者据此认为注入攻击面主要是小模型现象。外部基准上效果混杂:deepset 上 Gemma +4.3%、OLMo −2.6%;SafeGuard 上 Gemma +16.4%、Llama −10.4%(正文另处写 SafeGuard 为 500 样本,此处写 10K,两处不一致)。
- 检测:Gemma 上注入输入在引导层产生不同的激活范数(p<0.001,差 −660),Llama 和 OLMo 无显著差异(p>0.27); the authors state that detection needs to be customized per architecture.
Other ablations and analyses
- Component ablation (Table 7, Enron fold-0, 100 probes): removing the head mask gives Llama −5%, Gemma −1%, OLMo +3% (full is +20%); removing magnitude calibration gives Llama −11%; removing layer ranking gives Llama only +9% (full +21%).
- Discovery takes 4–31 minutes (1B 4–10 minutes, 3B about 15, 7B about 30); the authors state this is 50–80× slower than RepE grid search (about 15 seconds), but is a one-time cost.
- Probe-count sensitivity (Figure 4 caption): as few as 5 samples already works, stable at N ≥ 20; with imbalanced probes the gain changes from +16% (balanced) to +4% (spam-heavy) or +47% (ham-heavy).
- Cross-dataset transfer (Table 14, Llama): Enron→SMS +20 points, Ultimate→Enron −28 points; the authors state that the direction partly depends on the dataset.
- Reasoning and generation (Appendix J): on AQuA-RAT Llama +3.1%, Mistral-7B −2%; the authors state that the near-random baseline (22–31%) lacks a comparison signal; toxicity drops from 3.0% to 0.8% (10 adversarial prompts, keyword scoring).
- LoRA conversion (Appendix G): 33 configurations converted to rank-16 LoRA, average fidelity gap Llama 7.7%, Gemma 10.8%, OLMo 13.6%; rank-64 shows no improvement.
What are some points that can be further explored?
The authors list 7 limitations (task scope, quantization, linearity assumption, etc.); experiments cover 9 models but injection is only tested on 1B and Mistral-7B.
Limitations and future directions noted by the authors
- Task scope: strongest on binary classification; reasoning steering is limited by a near-random baseline at the tested scale (Section 5 Limitations (1), Appendix J).
- Scale design: only one model per family-scale combination; the 7B model uses 4-bit quantization (Limitations (2)).
- LoRA fidelity: there is a 10% LoRA fidelity gap (Limitations (3), Appendix G).
- Linearity assumption: the linear direction assumption may miss nonlinear decision boundaries (Limitations (4)).
- Variance cost: per-fold variance is higher than RepE (±10–11 vs ±5–7), the cost of per-fold optimization (Limitations (5)).
- Injection vulnerability: this vulnerability is inherent to any steering method with an inferable direction (Limitations (6)); scalability and generality on 70B+ models across complex reasoning, math and instruction-following tests are future work (Limitations (7)). Section 5 also mentions that discovery time can be shortened by caching layer rankings across tasks and pruning the search space with early stopping.
Experimental coverage
- 9 models tested, covering the 1B, 2–3B and 7–9B tiers and 4 architecture families (Table 1, Table 8).
- Task coverage: 5 spam datasets, SST-2 sentiment, MMLU, AQuA-RAT, toxicity reduction (10 prompts); among the 39 spam discovery runs, SMS/Phishing/SpamAssassin only run fold-0.
- Injection experiments are conducted on 3 1B models (spam and sentiment) and Mistral-7B (spam); external benchmarks are deepset/prompt-injections, SafeGuard and a jailbreak classification set.
- Statistics: Table 1 reports bootstrap 95% CI, Tables 2/3/5 report paired t-tests; seed sensitivity with 5 seeds and order sensitivity with 5 probe orders (Appendix E).
- The paper does not report the number of repetitions of the injection trials, nor whether injection success determination used a judge model; code and configurations are planned for release upon acceptance (NeurIPS Checklist items 4 and 5).
Summarize the main content of the paper
Deep Noir uses mechanistic diagnostics to automatically discover steering parameters; gains rise with scale, and it characterizes an injection attack surface that grows monotonically with magnitude.
A paper on automating activation steering driven by mechanistic interpretability, aimed at agent scenarios that use a steered LLM as a decision component.
- Problem: the layer, heads, and magnitude of activation steering are chosen manually and do not scale; the authors report that weight-space SVD correction is completely ineffective due to LayerNorm attenuation, leaving only activation-space hooks usable.
- Method: the Deep Noir five-stage engine—rank layers with logit-lens plus antagonistic head scores, select heads via gradient attribution, set direction as the contrastive mean, set magnitude via golden-section search; it can recursively stack multi-layer corrections and roll back automatically.
- Result one: the three 1B models average +16.7 points over 39 spam runs (±4.7); four 7–9B architectures +21.2 to +42.4 points; SST-2 +13.1 points with zero code changes and 15/15 improved (Table 1).
- Result two: on SST-2, RepE equals the baseline on all 15 folds, while DN is significant on all (p<0.01); DN is +14% to +33% higher than 30 random configurations; ablations show that removing the head mask drops below the baseline.
- Result three: injection success rate is monotonically non-decreasing with steering magnitude (Figure 3); on 1B, steering adds up to +20.3 points (Gemma, Table 6), while on Mistral-7B it is instead −36.4 points; on Gemma the activation norm can serve as a detection signal (p<0.001).
- Authors' conclusions: the mechanistic combination is not merely additive but brings a qualitative change in intervention capability; containment depends on the distance between the concept and the evaluation domain; injection vulnerability can be predicted from the steering configuration and used for pre-deployment threat modeling and magnitude selection. The authors also acknowledge limitations beyond binary classification, 4-bit quantization for 7B, and that 70B+ was not tested.