                                                 Sparse Autoencoders, Again?



without access to helpful conditioning variables? Our in-                        Table 1: Comparison of notable attributes.

sight here is two-fold:

                                                                                           adaptive      local min     hyperparm

                                                                                           sparsity     smoothing       free loss

1. In VAE models, the σ z network contains information

   about which dimensions are active, but it does not di-                      SAE             ✓            ✗               ✗

   rectly modulate reconstructions themselves as µz does.                      VAE             ✗            ✓               ✓

                                                                               VAEase          ✓            ✓               ✓

2. But we cannot just arbitrarily introduce σ z to the de-

   coder to achieve the adaptive sparsity we are after; this

   would directly lead to overfitting (see Appendix B.3).             of low dimensional manifolds. Hence we choose this set-

   Instead, we would like to specifically leverage σ z only           ting as the starting point of our analysis of VAEase. After

   as a gating mechanism to clamp the noise introduced                formalizing concrete assumptions, we move on to examine

   by inactive dimensions. In this way the decoder weights            the degree to which VAEase global minimizers align with

   themselves need not permanently close any particular               ground truth manifold structure. We then conclude by de-

   inactive dimension across all inputs.                              scribing a specific scenario whereby the VAEase objective

                                                                      has provably fewer local minima than its SAE counterpart.

With these considerations in mind, we propose the follow-

ing easily-applicable modification to a traditional VAE: We           4.1. Preliminaries

replace pθ (x|z) as defined in (2) with                               We now briefly lay out precursory definitions pertaining to

                                                                   our later data and modeling assumptions.

           pθ x|z, σ z [x; ϕ] = N x µx [e   z; θ], γI ,

                                                                      Definition 4.1 (Data on a union of manifolds). Let M :=

                                                                      {Mi }ni=1 denote a set of n manifolds Mi ⊂ Rd , where

                                               

                  where e  z := 1 − σ z [x; ϕ] ⊙ z       (4)

                                                                      dim[Mi ] = ri ≥ 0 and there exists a diffeomorphic map-

and ⊙ denotes the Hadamard product. While seemingly                   ping ψi : Mi → Rri . There is at most one manifold with

a minor change, the consequences are profound in terms                ri = 0. We then assume data x ∈ RX ⊆ M with prob-

of how inactive dimensions are now handled. In partic-                ability measure ω such that αi := Mi ω(dx) > 0 and

ular, if qθ (zj |x) ≈ N (zj |0, 1) for inactive dimension j,          Pn                                       R

                                                                         i=1 αi = 1. Finally, we stipulate that Si ω(dx) = 0 for

then zej ≈ 0, and so the decoder now receives an uninfor-             any sub-manifold Si ⊂ Mi satisfying dim[Si ] < ri .

mative but still deterministic input that need not disrupt

accurate reconstructions even for a decoder input layer with          Brown et al. (2022) motivate the practical relevance of data

nonzero weights (analogous to the canonical SAE model).               following the spirit of Definition 4.1, along with the addi-

                                            ′

Meanwhile, for an active    dimension j with qθ (zj ′ |x) ≈          tional assumption that there is no overlap among manifolds.

N zj ′ |µz (x; ϕ)j ′ , O(γ) , we have zej ′ ≈ µz (x; ϕ)j ′ such       In this sense our definition is actually more flexible and

that transmissible information for reconstructing x is not            the analyses which follow later in Section 4.2 hold with or

compromised. Figure 2 and Appendix B.3, convey the high-              without overlapping manifolds.3 We next turn to a precise

level picture of this phenomena.                                      definition of the VAEase model class we seek to analyze.

We refer to the proposed VAE modification from above as               Given a resurgence of SAE use cases, including

VAEase, and summarize the newly-enabled capabilities in               Definition 4.2 (Lipschitz VAEase objective). Assume that

Table 1. Critically, VAEase preserves the original proper-            µz and µx are Lipschitz continuous functions of x ∈ X

ties that make VAE models attractive for sparse autoencod-            and z ∈ Rκ respectively. We then denote LVAEase    (ϕ, θ) as

ing (i.e., no sensitive hyperparameters required, potential           the resulting objective

                                                                                             from (3), but with pθ x|z   replaced

for local minima smoothing via a stochastic latent space),            by pθ x|z, σ z [x; ϕ] as defined in (4).

while removing the inflexible VAE favoritism towards fixed-

sparsity solutions. Admittedly though, the motivations and            Lipschitz continuity assumptions for neural network models

claims thus far have been primarily supported by intuition at         are quite common (Neyshabur et al., 2017; Bartlett et al.,

the expense of rigor; however, in the next section we place           2017) and are naturally achievable in practice by deep ReLU

VAEase on a sound theoretical footing, with a much closer             networks with bounded model weights. For our purposes,

examination of properties relevant to sparse autoencoding.

                                                                      3

                                                                          We are able to accommodate this greater flexibility because our

                                                                          results do not ultimately depend on the dimensionality of the

4. Comparative Analysis                                                   tangent spaces at the boundaries of the support sets. Instead we

                                                                          rely on the optimization of integrals over the entire extent of

The notion of adaptive sparsity is particularly relevant when             each manifold such that individual manifold dimensions remain

the underlying data distribution is spread across a union                 identifiable.



                                                                  5

