Research arXiv cs.LG

Weight Oracles: Reading Neural Network Weights with Language Models

interpretabilitybackdoor detectionweight analysisLLM

Interpretability methods for neural networks are predominantly reactive: they analyze activations from specific forward passes and require known inputs to find hidden capabilities such as backdoors. The authors propose Weight Oracles, fine-tuned language models that diagnose properties of a target network by reading its raw weights directly, without behavioural testing, and investigate the 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. An oracle is trained on natural language diagnostic questions about weight anomalies using only benign pathologies as training signal, then evaluated zero-shot on backdoors absent from training. It achieves AUROC 0.93 on attention-routed backdoors and 0.81 across a diversified threat distribution that includes 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.

Read original →

← Back to home