Weight Oracles: Reading Neural Network Weights with Language Models
Reading guide · Based on sections of the original paper
Why read this
Read this if you work on weight-space auditing or backdoor detection and want evidence on learned versus hand-crafted weight detectors under threat-model shift. All results come from toy-scale models.
What the authors found
- Zero-shot backdoor detection was tested on 100 held-out toy models (50 clean, 50 backdoored) with attention-routed pos0 triggers. Across five runs the oracle reached AUROC 0.93±0.04, which corresponds to 94% TPR at 20% FPR. The hand-crafted baselines scored 0.445 (total L2 norm) and 0.752 (strongest V/O composite). Results.
- On a uniform mix of four threat models (pos0, lastpos, stealth, adversarially regularized), composite AUROC falls to 0.81 (gap-weighted). Per-type AUROC stays between 0.74 and 0.89. The authors report that statistical detectors are sharp on the attacks they target but collapse under shift, trading best-case for worst-case performance. Results.
- Single-pass simulation of an MLP block plateaued at 45% because the model exploited a residual shortcut. Splitting the computation into 5 LLM passes, with nonlinearities and normalization done in external code, reached 99.0% accuracy on held-out real toy transformers. Decomposition.
Main limitation
All targets are roughly 2K-parameter transformers, and the authors call full-weight injection prohibitive beyond a few million parameters. The tested backdoors are single-token with single-class targets. The natural-language interface is not ablated against a smaller learned detector. 5 Conclusion and Limitations
Where to start
Interpretability. · A linear probe on early oracle layers already reaches 0.88 AUROC, compared with 0.93 at the final layers. This bears on how much the LLM adds over weight statistics.
Abstract
Interpretability methods for neural networks are predominantly reactive: they analyse activations produced during specific forward passes, requiring known inputs to find hidden capabilities such as backdoors. We propose Weight Oracles, fine-tuned language models that diagnose properties of a target network by reading its raw weights directly, without behavioural testing. We investigate this paradigm in two phases. Phase I establishes feasibility: through a staged curriculum and an external chain-of-computation that delegates parameter-free operations to deterministic code, an explainer LLM learns to simulate the forward pass of small transformers from their weights, achieving 99% holdout accuracy on unseen targets. Phase II repurposes this infrastructure for safety auditing. We train an oracle on natural language diagnostic questions about weight anomalies using only benign pathologies as training signal, and evaluate it zero-shot on backdoors absent from training. The oracle achieves AUROC 0.93 on attention-routed backdoors and 0.81 across a diversified threat distribution including stealth and adversarially regularized variants. Hand-crafted statistical detectors are sharp on the threat models they implicitly target but collapse on threat-model shift, while the oracle remains uniformly competent across attack types. Scaling to realistic model sizes remains the principal open challenge.