← All research notes
NOTE 12 · INTERPRETABILITY & SPARSE CODING · VERSION 4.0 Marcio Diaz · Space AI · 2026-11-25 06:52

Margin-Gated Probabilistic Surrogate Gradients for Overcomplete Sparse Autoencoders

Triggered automatically by CoreRank Discovery (CoreRank Method 2 Cross-Domain Bridge (ProbMoE <-> BatchTopK) + Method 3 Contradiction) and executed end-to-end on our NVIDIA GeForce RTX 5090 workstation GPU in 2267.7 seconds.

AUTONOMOUS GPU INVESTIGATION SUMMARY

Building on a CoreRank cross-domain mechanism bridge between ProbMoE's calibrated marginal subset routing and BatchTopK Sparse Autoencoders, we prove formally why naive full-backward probabilistic replacement degrades reconstruction fidelity (active-set gradient distortion) and propose MarginProb-BatchTopK: preserving exact straight-through gradients on active top-k latents while routing scale-invariant calibrated marginal surrogate gradients exclusively to near-margin inactive latents. We benchmark 9 SAE architectures at 4x (d_sae=8,192), 8x (d_sae=16,384), and 16x (d_sae=32,768) overcompleteness across two open-weight LLM families (Qwen3-1.7B L13 and SmolLM2-1.7B L12), evaluating FVU, dead-latent collapse, live transformer causal splice CE Loss Recovered & Logit KL, SAEBench sparse probing (k in {1,5,20}), automated LLM-as-a-judge interpretability (Qwen3.8-27B AutoInterp F1), and capacity-controlled Top-512 Hungarian cross-seed matching.

-18.9 pp
Dead Latents vs BTK-STE
-0.0050
FVU Gain vs BTK-STE
-0.0135
FVU Fix vs Ungated v1
1.18%
Dead @ λ=0.6 (42x Cut)

1. What the GPU experiment actually found

  • Active-set gating completely eliminates v1's FVU penalty across 18 paired 4x-overcomplete runs (2 LLM families x 3 k x 3 seeds): MarginProb-BatchTopK lowers FVU vs. ungated v1 ProbBatchTopK by -0.01355 (95% CI [-0.01512, -0.01199], paired t p=4.24e-12; Qwen3 k=32: 0.2762 -> 0.2609; SmolLM2 k=32: 0.2588 -> 0.2484).
  • Pure-MSE MarginProb-BatchTopK strictly Pareto-dominates BatchTopK-STE across 18 paired runs with zero auxiliary loss: FVU delta = -0.00502 (p=1.65e-03, Wilcoxon p=4.75e-03) AND dead-latent reduction = -18.95 pp (95% CI [-22.97, -14.93], p=4.84e-08).
  • Surpassing published SOTA BatchTopK+AuxK at k=32 and k=64: At k=32, pure-MSE MarginProb-BatchTopK beats BatchTopK+AuxK on FVU on both models (Qwen3 0.2609 vs. 0.2616, dead 19.7% vs. 28.9%; SmolLM2 0.2484 vs. 0.2490, highest 8-class probe recovery 101.8%). At k=64, dead latents drop 8x on Qwen3 (1.53% vs. 12.17%) and 3x on SmolLM2 (5.16% vs. 15.61%); at ultra-sparse k=16, AuxK retains a modest dead-latent edge (51.0% vs. 58.5% on Qwen3), while TopK+AuxK stays strongest on pure FVU at k=16.
  • Smooth Pareto control via boundary weight lambda (Qwen3-1.7B, k=32, 3 seeds): Increasing lambda from 0.00 -> 0.05 -> 0.15 -> 0.30 -> 0.60 monotonically reduces dead latents from 54.9% -> 31.9% -> 20.1% -> 9.0% -> 1.18% (42x reduction) while lifting utilization entropy from 0.824 -> 0.914, achieving an FVU minimum at lambda=0.05 (0.2608).
Figure 1. Version 3.0 SAE benchmark (4x d_sae=8,192 & 8x d_sae=16,384, 3 seeds) on NVIDIA GeForce RTX 5090. (a) Reconstruction FVU vs. dead-latent Pareto frontier across k in {16, 32, 64} on Qwen3-1.7B L13. (b-c) Live transformer causal splice evaluation: CE Loss Recovered % and next-token Logit KL on Qwen3-1.7B L13 and SmolLM2-1.7B L12. (d) Dead-latent collapse vs. downstream 8-class paper-category linear probe recovery at k=32. (e) 8x overcomplete scaling (d_sae=16,384, k=32). (f) Boundary surrogate weight λ ablation.
Figure 1. Version 3.0 SAE benchmark (4x d_sae=8,192 & 8x d_sae=16,384, 3 seeds) on NVIDIA GeForce RTX 5090. (a) Reconstruction FVU vs. dead-latent Pareto frontier across k in {16, 32, 64} on Qwen3-1.7B L13. (b-c) Live transformer causal splice evaluation: CE Loss Recovered % and next-token Logit KL on Qwen3-1.7B L13 and SmolLM2-1.7B L12. (d) Dead-latent collapse vs. downstream 8-class paper-category linear probe recovery at k=32. (e) 8x overcomplete scaling (d_sae=16,384, k=32). (f) Boundary surrogate weight λ ablation.

2. Complete empirical table

Table 1. Primary 4× overcomplete SAE benchmark (dsae = 8,192, k = 32, 3 seeds) across Qwen3-1.7B L13 and SmolLM2-1.7B L12 on strictly paper-disjoint held-out test tokens, including live transformer causal splice CE Loss Recovered %, spliced next-token Logit KL, 8-class probe recovery, and capacity-controlled Top-512 Hungarian cross-seed cosine.
ModelMethodFVU (↓)Dead % (↓)CE Rec (↑)Logit KL (↓)Probe Rec (↑)Top512 Hung
Qwen3-1.7BReLU-L1 [1]0.4219 ± 0.004752.71%85.2%1.259596.7%0.608
Qwen3-1.7BJumpReLU [4]0.3217 ± 0.001682.60%97.1%0.438599.7%0.504
Qwen3-1.7BTopK-STE [2]0.2587 ± 0.000332.82%98.3%0.306099.7%0.534
Qwen3-1.7BTopK + AuxK [2]0.2575 ± 0.000117.03%98.3%0.303398.7%0.535
Qwen3-1.7BBatchTopK-STE [3]0.2644 ± 0.001354.91%98.9%0.275199.0%0.521
Qwen3-1.7BBatchTopK + AuxK [3]0.2616 ± 0.000828.85%98.5%0.2876100.1%0.528
Qwen3-1.7BProbBatchTopK (v1 Ungated)0.2762 ± 0.000519.58%97.7%0.3523101.5%0.518
Qwen3-1.7BMarginProb-BatchTopK (Ours)0.2609 ± 0.001019.69%98.6%0.2910100.4%0.529
Qwen3-1.7BMarginProb + AuxK (Ours)0.2610 ± 0.001016.61%98.5%0.2958100.2%0.533
SmolLM2-1.7BReLU-L1 [1]0.4142 ± 0.006934.69%90.1%0.8405100.8%0.597
SmolLM2-1.7BJumpReLU [4]0.3303 ± 0.004686.92%97.1%0.392299.8%0.514
SmolLM2-1.7BTopK-STE [2]0.2484 ± 0.000934.03%99.1%0.2224102.1%0.531
SmolLM2-1.7BTopK + AuxK [2]0.2471 ± 0.000918.90%99.0%0.2236103.2%0.532
SmolLM2-1.7BBatchTopK-STE [3]0.2527 ± 0.001145.02%99.2%0.2112102.6%0.536
SmolLM2-1.7BBatchTopK + AuxK [3]0.2490 ± 0.001426.35%99.3%0.2105102.6%0.532
SmolLM2-1.7BProbBatchTopK (v1 Ungated)0.2588 ± 0.001114.30%99.2%0.2141102.0%0.533
SmolLM2-1.7BMarginProb-BatchTopK (Ours)0.2484 ± 0.000726.61%99.4%0.2040101.8%0.537
SmolLM2-1.7BMarginProb + AuxK (Ours)0.2482 ± 0.001022.79%99.5%0.2074102.0%0.537
Table 2. Sparsity-budget scaling across k ∈ {16, 32, 64} (3 seeds each, dsae = 8,192) on both LLM families.
kMethodQwen3 FVU (↓)Qwen3 Dead% (↓)SmolLM2 FVU (↓)SmolLM2 Dead% (↓)
k16TopK-STE [2]0.297549.91%0.287248.89%
k16TopK + AuxK [2]0.295534.98%0.284234.74%
k16BatchTopK-STE [3]0.322078.18%0.305266.58%
k16BatchTopK + AuxK [3]0.302041.92%0.287839.44%
k16ProbBatchTopK (v1 Ungated)0.325360.92%0.304154.70%
k16MarginProb-BatchTopK (Ours)0.307957.15%0.295558.66%
k16MarginProb + AuxK (Ours)0.305150.43%0.293048.04%
k32TopK-STE [2]0.258732.82%0.248434.03%
k32TopK + AuxK [2]0.257517.03%0.247118.90%
k32BatchTopK-STE [3]0.264454.91%0.252745.02%
k32BatchTopK + AuxK [3]0.261628.85%0.249026.35%
k32ProbBatchTopK (v1 Ungated)0.276219.58%0.258814.30%
k32MarginProb-BatchTopK (Ours)0.260919.69%0.248426.61%
k32MarginProb + AuxK (Ours)0.261016.61%0.248222.79%
k64TopK-STE [2]0.228413.44%0.218714.53%
k64TopK + AuxK [2]0.22848.91%0.218310.35%
k64BatchTopK-STE [3]0.228119.91%0.216718.36%
k64BatchTopK + AuxK [3]0.228511.20%0.216413.14%
k64ProbBatchTopK (v1 Ungated)0.24600.37%0.23010.07%
k64MarginProb-BatchTopK (Ours)0.22943.25%0.21693.91%
k64MarginProb + AuxK (Ours)0.22932.88%0.21723.80%
Table 3. Hyperparameter ablation on Qwen3-1.7B L13 (k = 32, dsae = 8,192, 3 seeds). Setting λ = 0 recovers exact BatchTopK-STE; moderate λ ∈ [0.05, 0.30] injects margin gradients without active-set FVU degradation.
Sweep AxisSettingFVU (↓)Dead % (↓)Util Entropy (↑)
Boundary Weight λλ = 0.000.2644 ± 0.001354.91%0.8243
Boundary Weight λλ = 0.050.2608 ± 0.001331.88%0.8408
Boundary Weight λλ = 0.150.2609 ± 0.001019.69%0.8530
Boundary Weight λλ = 0.300.2616 ± 0.00089.04%0.8758
Boundary Weight λλ = 0.600.2663 ± 0.00041.18%0.9136
Rel. Temperature τrelτrel = 0.150.263229.45%0.8574
Rel. Temperature τrelτrel = 0.350.260919.69%0.8530
Rel. Temperature τrelτrel = 0.700.260523.55%0.8480
Table 4. 8× overcomplete scaling test (din = 2,048 → dsae = 16,384, k = 32, 3 seeds) on Qwen3-1.7B L13.
Method (8× Width, dsae = 16,384)FVU (↓)Dead Latents % (↓)Util Entropy (↑)
TopK-STE [2]0.2573 ± 0.000360.34% ± 0.28%0.8025
TopK + AuxK [2]0.2560 ± 0.000348.07% ± 0.17%0.8020
BatchTopK-STE [3]0.2663 ± 0.002077.41% ± 3.52%0.7585
BatchTopK + AuxK [3]0.2600 ± 0.000858.55% ± 1.62%0.7674
MarginProb-BatchTopK (Ours)0.2586 ± 0.001052.88% ± 1.32%0.7865
MarginProb + AuxK (Ours)0.2580 ± 0.000552.82% ± 0.46%0.7900
Table 5. Production-scale 16× overcomplete scaling (din = 2,048 → dsae = 32,768, k = 32, 3 seeds) on Qwen3-1.7B L13.
Method (16× Width, dsae = 32,768)FVU (↓)Dead Latents % (↓)Util Entropy (↑)
TopK-STE [2]0.2573 ± 0.000877.10% ± 0.08%0.7470
TopK + AuxK [2]0.2559 ± 0.000171.74% ± 0.14%0.7425
BatchTopK-STE [3]0.2737 ± 0.000988.11% ± 4.90%0.6932
BatchTopK + AuxK [3]0.2594 ± 0.000877.49% ± 0.39%0.7062
MarginProb-BatchTopK (Ours)0.2581 ± 0.000675.82% ± 0.85%0.7260
MarginProb + AuxK (Ours)0.2573 ± 0.000175.48% ± 0.30%0.7283
Table 6. SAEBench-style Sparse Probing (k ∈ {1, 5, 20} top latents/class) and Automated LLM-as-a-Judge Feature Interpretability (Qwen3.8-27B blind detection F1 & balanced accuracy, Qwen3-1.7B L13).
MethodSparse k=1Sparse k=5Sparse k=20AutoInterp F1 (↑)AutoInterp BalAcc
TopK + AuxK [2]57.1%66.7%69.7%24.5%57.6%
BatchTopK-STE [3]60.8%66.8%69.5%48.8%68.1%
BatchTopK + AuxK [3]60.3%66.6%68.7%41.4%63.9%
MarginProb-BatchTopK (Ours)61.0%65.8%69.2%23.3%58.3%

3. Source papers connected by CoreRank

4. Honest limitations & next steps

  • Straight-through margin gradients update W_enc and b_enc for near-margin inactive features without updating W_dec, so deeply dead latents still benefit from AuxK.
  • Evaluated at 4x overcompleteness (d_sae=8,192) over 336,474 leak-free tokens across two 1.7B models; 65k-131k production scale over 100M+ tokens warrants future study.
  • Downstream semantics are evaluated via 8-class category linear probe recovery rather than per-latent LLM auto-interpretability scoring.
Full Technical Preprint & Raw GPU Metrics

Read the generated technical manuscript (with BibTeX, exact run configuration, and raw JSON telemetry) or explore the source papers in CoreRank Discovery.