                                                  Sparse Autoencoders, Again?



this assumption is merely included for mild technical rea-             global minimizers of LVAE (ϕ, θ) in the limit γ → 0 satisfy

sons related to the adopted proof technique.                                      Z

                                                                                                      

And finally, before proceeding to our main results we intro-                           I |A(x)| ≠ ri ω(dx) = Θ(1)              (7)

                                                                                         Mi

duce two quantities (with origins stemming back to (Zheng

et al., 2022)) that will collectively serve as a useful lens for       for one or more constituent manifolds Mi .

differentiating VAE and VAEase capabilities.

                                                                       Critically, this result indicates that VAE models are not

Definition 4.3 (Active dimension). For any fixed γ, let                always capable of adapting the sparsity of their latent rep-

{θγ , ϕγ } denote a minimizer of loss LVAEase (ϕ, θ) given by          resentations to ground-truth structure involving multiple

Definition 4.2. We then specify that a latent dimension j ∈            manifolds. Instead, for reasons detailed in Appendix B.1,

{1, . . . , κ} is active at sample x ∈ X if σz2 (x; ϕγ )j = O(γ)       VAE models tend to favor solutions whereby

as γ → 0. Additionally, we adopt A(x) to denote the set of                            Z

active dimensions associated with x.                                                                    

                                                                                           I |A(x)| = r ω(dx) ≈ 1,              (8)

                                                                                           M

The remaining so-called inactive dimensions will satisfy                                   P

σz2 (x; ϕγ )j = 1 − O(γ); as shown in Appendix E.1, other              assuming r := i ri ≤ min(κ, d) (we prove this claim for

possibilities will not occur almost surely.                            linear special cases in Appendix E.5 ). As such the VAE can

                                                                       readily estimate the aggregated manifold dimension, gener-

Definition 4.4 (Reconstruction error). Borrowing notation

                                                                       ally with a fixed set of active dimensions, but not necessarily

and definitions from above, we define the VAEase recon-

                                                                       that of the finer-grained individual manifolds themselves as

struction error as

             Z                                                         our proposed VAEase model can. Complementary experi-

                           h

                                            2

                                              i                        ments in Section 5 will confirm this performance disparity.

       R :=      Eqϕγ (z|x) x − µx (e

                                    z; θγ ) 2 ω(dx). (5)

              X

                                                                       4.3. Local Minima Smoothing

We remark that equivalent active dimension and reconstruc-             Unlike the VAE, with an appropriate selection of h and

tion error quantities can be defined for regular VAE models            {λ1 , λ2 }, the SAE model from (1) can in principle mimic

as well, the primary difference being LVAE (ϕ, θ) replacing            the behavior of the VAEase global optima explored in Sec-

LVAEase (ϕ, θ) as the optimization objective used for obtain-          tion 4.2. As a deterministic counterpart, this involves pro-

ing {θγ , ϕγ }.                                                        ducing adaptive sparse solutions with negligible reconstruc-

                                                                       tion error and a minimal number of nonzero latent dimen-

4.2. Properties of Global Solutions                                    sions aligned with each manifold. For example, we can

We now analyze properties of VAEase global minimizers                  accomplish this goal with h(z) = ∥z∥0 and suitable choices

that are particularly relevant to sparse autoencoding.                 for {λ1 , λ2 } (see Appendix A.2). But SAE adaptive sparsity

                                                                       comes at a cost: In addition to the need for tuning {λ1 , λ2 }

     P 4.5. Assume data adhering to Definition 4.1

Theorem                                                                and choosing some workable/smooth approximation to the

with i ri ≤ κ. Then as γ → 0, global solutions to                      ℓ0 norm that allows for SGD training, the SAE loss poten-

LVAEase (ϕ, θ) achieve R = o(1) and                                    tially has a much larger constellation of sub-optimal local

       Z

                                                                      minimizers. While difficult to explicitly quantify under

             I |A(x)| = ri ω(dx) = αi + o(1) ∀i. (6)                   broad conditions, in this section we introduce a simplified

         Mi

                                                                       regime whereby an explicit, exponential gap in local minima

                           R                P                          counts can be established.

Note that because αi = Mi ω(dx) and i αi = 1, (6)

                                                                       Theorem 4.7. Assume κ = d and decoder µx (e       z; θ) =

indicates that within each data manifold Mi , the VAEase

                                                                       Udiag[w]e z, where U ∈ Rd×d is a fixed/known orthonormal

is almost surely using a number of active dimensions that

                                                                       matrix and w ∈ Rd are learnable parameters. Moreover,

matches dim[Mi ]. Overall then, this result establishes fun-

                                                                       assume arbitrary encoder functions µz and σ z . Then the

damental capabilities of the VAEase model: It can achieve

                                                                       VAEase loss defined w.r.t. an arbitrary input data point x

arbitrarily good reconstruction error, all while relying on

                                                                       will always have a unique minimum (local or global).4

ideal active dimension counts that perfectly align with each

constitute data manifold. Meanwhile, a corresponding VAE               We now contrast with an analogous SAE model, assum-

cannot achieve the equivalent of Theorem 4.5.                          ing h ∈ H, where H denotes the set of functions that are

Corollary 4.6. Consider the VAE loss LVAE (ϕ, θ) defined as            4

                                                                           Technically speaking, there are actually multiple equivalent global

in (3) using arbitrary Lipschitz continuous encoder/decoder                minima because the overall loss is invariant to randomly flipping

networks (i.e., equivalent to those adopted by the VAEase).                the signs of z and w. But this inconsequential ambiguity is shared

Then there exist datasets adhering to Definition 4.1 such that             by all SAE and VAE models alike.



                                                                   6

