Margin-Gated Probabilistic Surrogate Gradients for Overcomplete Sparse Autoencoders

(v4.0): 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. Empirical Findings (NVIDIA GeForce RTX 5090): 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). Web preprint & reproducible artifacts: https://spaceresearch.ai/papers/probmoe-batchtopk-sae.html

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-24
DOI
https://doi.org/10.5281/zenodo.24508484
Primary Topic
Topic Modeling
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Margin-Gated Probabilistic Surrogate Gradients for Overcomplete Sparse Autoencoders

Marcio Diaz
1 links
Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
preprint

Margin-Gated Probabilistic Surrogate Gradients for Overcomplete Sparse Autoencoders

Marcio Diaz
preprint en

Abstract

(v4.0): 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. Empirical Findings (NVIDIA GeForce RTX 5090): 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). Web preprint & reproducible artifacts: https://spaceresearch.ai/papers/probmoe-batchtopk-sae.html

Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon