Does quantization quietly break interpretability?
A sparse autoencoder built from scratch on GPT-2-small, benchmarked against simulated quantization and converted into a live, low-overhead safety monitor.
Does quantization break interpretability?
Trained a sparse autoencoder on GPT-2-small's layer-6 residual stream. Simulated 16/8/4-bit quantization via uniform weight rounding, evaluated on 500 held-out documents using three independent metrics: activating-position recall, per-feature correlation, and behavioral checks.
| Precision | PPL ratio | Top-1 agree | Correlation | Recall@5 |
|---|---|---|---|---|
| 16-bit | 1.00× | 99.92% | 1.000 | 99.83% |
| 8-bit | 1.99× | 59.33% | 0.641 | 29.44% |
| 4-bit | 32,328× | 0.38% | 0.004 | 0.01% |
Behavior and interpretability degrade together, not independently. 16-bit is a clean negative control validating the pipeline; 4-bit destroys the model outright rather than revealing a subtle interpretability-specific danger.
A live, low-overhead safety monitor
Searched all 8,192 SAE features against BeaverTails using a strict discovery/validation/test split. A single feature was weak and confounded; a 100-feature regularized probe was real, validated on a genuinely untouched holdout, and converted into a live per-token monitor.
| Model | AUROC | AUPRC | Recall | FPR |
|---|---|---|---|---|
| Single feature | 0.653 | 0.652 | 92.0% | 84.4% |
| 100-feature probe | 0.796 | 0.801 | 91.2% | 60.8% |
Computing only the 100 needed encoder features (skipping the full decoder and 8,092 unused features) cut monitoring overhead from a measurable +4.12% to +0.66% — not statistically distinguishable from zero.
Golden Gate Claude-inspired steering
Additive decoder-direction steering reliably raised targeted SAE activations — confirming causal control of the encoded coordinate. Five semantically screened features were tested under last-position steering. Three finalists were tested under persistent all-position steering alongside one matched random unit direction.
Target and random directions produced comparable output degeneration at matched strength. Reported as an honest, controlled negative result — not a hidden limitation.
Architecture & stack
Base LLM (GPT-2-small, frozen)
│
Hook/Capture layer ──────→ Quantized variants (16/8/4-bit)
│ │
SAE (trained once) ←────────────────┘
│
┌──────┼──────────┬──────────────┐
Feature Safety Steering Benchmark
Browser Monitor (Phase 7) LayerLet's talk interpretability & inference
ActivationLens is open source, built by Anagha — MS Computer Science, UT Dallas. Open to ML and SDE new-grad roles.
Open source · MIT · Numbers are measured. See results/*.json.