                                                         Sparse Autoencoders, Again?



                                                                              ters for explicitly quantifying model representations. To this

                                                                              end, we extend setups inspired from Zheng et al. (2022);

                                                                              Stanczuk et al. (2024) to generate two datasets composed of

                                                                              multiple manifolds. The first involves 500,000 points ran-

                                                                              domly assigned to n = 3 linear subspaces of 4 dimensions

                                                                              each embedded an ambient space with d = 40. The second

                                                                              more challenging case involves n = 4 nonlinear manifolds

                                                                              with dimensions {5, 5, 10, 10} embedded in d = 100 dimen-

                                                                              sional space; 200,000 samples are generated per manifold

                                                                              by passing random noise through different MLP networks.

Figure 3: Local minima smoothing example. On the left

a 1D slice of the SAE loss (details in Appendix D.1) has

                                                                              Baseline models. To compare against VAEase, we train

two distinct minima appear (red dots). Meanwhile, on the

                                                                              an equivalent VAE baseline as well as three SAE variants

right VAEase under identical conditions has a single (global)

                                                                              differentiated by the penalty function adopted for h in (1).

minimum because of the latent smoothing afforded by σz .

                                                                              Following prior work, we select SAE-ℓ1 for the standard

                                                                              ℓ1 norm as used by Cunningham et al. (2024), SAE-log

symmetric about zero, concave and non-decreasing in |z|.                      whereby h(z) = log(|z| + ϵ) ( ϵ > 0 is a small constant)

Commonly-used sparsity-promoting penalties typically fall                     as motivated in Candes et al. (2008), and SAE-Tk for the

into this category (Chen et al., 2017), which includes the ℓ1                 strategy of simply choosing the top/largest k elements of z

and ℓ0 norms, log-based penalties, and many other choices.                    (per data sample) as advocated by Makhzani & Frey (2013);

                                                                              Gao et al. (2024). For the linear subspace dataset we adopt

Corollary 4.8. Under the same conditions as Theorem 4.7,                      a linear decoder for all models (as is also used in recent

for any {λ1 , λ2 } ∈ R2+ , there exists data samples x such                   application to modeling the intermediate activation layers of

that the SAE loss from (1) has 2d distinct local minimizers.5                 LLMs (Chaudhary & Geiger, 2024)); for the more complex

                                                                              nonlinear dataset we instead stack multiple MLP decoder

Please see Figure 3 for a 1D visualization of the contrast

                                                                              layers. Note that for both datasets we set k, as required by

between Theorem 4.7 and Corollary 4.8. Collectively, these

                                                                              SAE-Tk , to the size of the largest individual manifold.

results suggest that the SAE loss is likely more prone to

sub-optimal local minima than VAEase. The latter uniquely

benefits from a selective smoothing effect introduced by the                  Evaluations. After training, we evaluate models as fol-

stochastic latent space, whereby desirable sparse global so-                  lows. For each manifold, we sample new test points not seen

lutions can be preserved (Theorem 4.5) while at least some                    during training and feed them into model encoders. We then

distracting local minimizers are smoothed away (Theorem                       use the average σ z (for VAE models) or average absolute

4.7), ultimately because of the expectation over qθ (z|x).                    µz (for SAE models), with the averages taken within each

This phenomenon has been previously explored within the                       manifold, to estimate the active dimensions required. Ide-

narrow context of fixed-sparsity VAE models (Wipf, 2023),                     ally these averages should correspond with the ground-truth

but never generalized to the much more challenging adaptive                   manifold dimension. For all experiments throughout this

sparsity scenario as we have done.                                            paper, we separate active from inactive dimensions using a

                                                                              simple, intuitive variance criteria: A partitioning threshold

                                                                              is chosen such that the average variance above (active dims)

5. Empirical Validation

                                                                              and below the threshold (inactive dims) is minimum. This

In this section we empirically compare VAEase against                         concept, adapted from Xia et al. (2015), avoids dependency

salient baselines on both synthetic and real-world datasets.                  on subjective thresholds that vary from experiment to ex-

Full experimental details, including data generation pro-                     periment. Results are displayed in Table 2, where VAEase

cesses and model settings, are deferred to Appendix D.                        clearly outperforms the other baselines. Note that all models

                                                                              produced negligible reconstruction errors (∼ 10−3 or less).

5.1. Experiments with Known Ground-Truth                                      We also remark that SAE-Tk , even when k = 4 on the linear

                                                                              dataset, does not correctly estimate individual manifold di-

Dataset generation. Synthetic datasets are ideal in the                       mensions; this is because the model fails to find a consistent

sense that we have access to ground-truth manifold parame-                    set of active dimensions within each manifold.

5

    If an arbitrary loss L(u) is non-increasing in u ∈ R for all u > u′

    for some constant u′ , we also treat u = +∞ as a local minima             5.2. Real-World Data

    as there is no trajectory leading back to another local minimum

    without increasing the loss. But this inconsequential caveat only         Image data. As we turn to real-world datasets, it is no

    applies when h is bounded from above.                                     longer feasible to expect near-zero reconstruction errors



                                                                          7

