Analysis of Variational Sparse Autoencoders
Zachary Baker, Yuxiao Li
TL;DR
This work investigates whether adding variational inference to Sparse Autoencoders (SAEs) improves interpretability by introducing the Variational Sparse Autoencoder (vSAE), which samples from learned Gaussian posteriors and includes a KL divergence term toward a standard normal prior. Evaluated on Pythia-70M residual activations with TopK sparsity, the vSAE underperforms the standard SAE on core reconstruction metrics but shows gains in feature independence and ablation robustness, largely due to severe feature death induced by KL pressure. The results indicate that naive application of variational methods to SAEs reduces capacity and living features, undermining interpretability gains. Overall, the study provides a cautious verdict on integrating variational techniques with sparsity-based interpretable representations in language-model activations.
Abstract
Sparse Autoencoders (SAEs) have emerged as a promising approach for interpreting neural network representations by learning sparse, human-interpretable features from dense activations. We investigate whether incorporating variational methods into SAE architectures can improve feature organization and interpretability. We introduce the Variational Sparse Autoencoder (vSAE), which replaces deterministic ReLU gating with stochastic sampling from learned Gaussian posteriors and incorporates KL divergence regularization toward a standard normal prior. Our hypothesis is that this probabilistic sampling creates dispersive pressure, causing features to organize more coherently in the latent space while avoiding overlap. We evaluate a TopK vSAE against a standard TopK SAE on Pythia-70M transformer residual stream activations using comprehensive benchmarks including SAE Bench, individual feature interpretability analysis, and global latent space visualization through t-SNE. The vSAE underperforms standard SAE across core evaluation metrics, though excels at feature independence and ablation metrics. The KL divergence term creates excessive regularization pressure that substantially reduces the fraction of living features, leading to observed performance degradation. While vSAE features demonstrate improved robustness, they exhibit many more dead features than baseline. Our findings suggest that naive application of variational methods to SAEs does not improve feature organization or interpretability.
