# poisson_variational_autoencoder__21edef13.pdf Poisson Variational Autoencoder Hadi Vafaii1 Dekel Galor1 Jacob L. Yates1 vafaii@berkeley.edu galor@berkeley.edu yates@berkeley.edu 1UC Berkeley Variational autoencoders (VAEs) employ Bayesian inference to interpret sensory inputs, mirroring processes that occur in primate vision across both ventral [1] and dorsal [2] pathways. Despite their success, traditional VAEs rely on continuous latent variables, which deviates sharply from the discrete nature of biological neurons. Here, we developed the Poisson VAE (P-VAE), a novel architecture that combines principles of predictive coding with a VAE that encodes inputs into discrete spike counts. Combining Poisson-distributed latent variables with predictive coding introduces a metabolic cost term in the model loss function, suggesting a relationship with sparse coding which we verify empirically. Additionally, we analyze the geometry of learned representations, contrasting the P-VAE to alternative VAE models. We find that the P-VAE encodes its inputs in relatively higher dimensions, facilitating linear separability of categories in a downstream classification task with a much better (5 ) sample efficiency. Our work provides an interpretable computational framework to study brain-like sensory processing and paves the way for a deeper understanding of perception as an inferential process. Perception as Inference Rate Coding Predictive Coding Adrian & Zotterman, 1926 Rao & Ballard, 1999 Gregory, 1980 Friston, 2005 Srinivasan et al., 1982 Clark, 2013 Poisson Variational Autoencoder Encodes inputs into discrete spike counts, significantly enhancing the model s bio-realism and interpretability. A metabolic cost term emerges in the model objective for free, suggesting a connection to Sparse Coding. Brings major theories in neuroscience closer together, under the unifying umbrella of Bayesian Inference. Perkel & Bullock, 1968 Barlow, 1972 Zohary et al., 1994 Neisser, 1967 Alhazen, ~1000 AD Helmholtz, 1860s Lee & Mumford, 2003 Barlow, 2001 Knill & Pouget, 2004 Yuille & Kersten, 2006 Friston, 2010 Amortized Sparse Coding is a special case of the Poisson VAE Linear Poisson VAE = Amortized Sparse Coding Linear Gaussian VAE = Probabilistic PCA Figure 1: Graphical abstract. Introducing the Poisson Variational Autoencoder (P-VAE), which draws on key concepts in neuroscience. When trained on natural image patches, P-VAE with a linear decoder develops Gabor-like feature selectivity, reminiscent of Sparse Coding [3]. In sharp contrast, the standard Gaussian VAE learns the principal components [4]. Our code, data, and model checkpoints are available at this repository: https://github.com/hadivafaii/Poisson VAE 38th Conference on Neural Information Processing Systems (Neur IPS 2024). 1 Introduction The study of artificial neural networks (ANN) and neuroscience has always been closely linked, driving advancements in both fields [5 10]. Despite the close proximity of the two fields, most ANN models deviate substantially from biological brains [11, 12]. A major challenge is designing models that not only perform well computationally but also exhibit brain-like structure and function. This is seen both as a goal for improving ANNs [13 15], and better understanding biological brains [8, 9, 16 19], which has recently been referred to as the neuroconnectionist research programme [20]. Drawing from neuroscience, a major guiding idea is that perception is a process of inference [21, 22], where the brain constructs a representation of the external world by inferring the causes of sensory inputs [23 26]. This concept is mirrored in generative AI where models learn the generative process underlying their inputs [27 29]. However, in this vein, there is a tension between small well-understood models that are directly inspired by cortex, such as sparse coding [3] and predictive coding [30], and deep generative models that perform well [31 34]. The variational autoencoder (VAE; [35, 36]) model family is a promising candidate for neuroconnectionist goals for multiple reasons. First, VAEs learn probabilistic generative models of their inputs and are grounded in Bayesian probability theory, providing a solid theoretical foundation that directly incorporates the concept of perceptual inference [10, 22]. Second, the VAE model family, specifically hierarchical VAEs, is broad with other generative models, such as diffusion models, understood as special cases of hierarchical VAEs [37 39]. Finally, VAEs learn representations that are similar to cortex [1, 2, 40], exhibit cortex-like topographic organization [41, 42], and make perceptual errors that mimic those of humans [43], indicating a significant degree of neural, organizational, and psychophysical alignment with the brain. However, standard VAEs diverge from brains in the way they encode information. Biological neurons fire all-or-none action potentials [44], and are thought to represent information via firing rate [45 49]. These firing rates must be positive and generate discrete spike counts, which exhibit conditionally Poisson-like statistics in small counting windows [49 51]. In contrast, VAEs are typically parameterized with real-valued, continuous, Gaussian distributions [52]. Contributions. In this work, we address this discrepancy by introducing the Poisson Variational Autoencoder (P-VAE), a novel architecture that combines perceptual inference with two other inspirations from neuroscience (Fig. 1). First, that information is encoded in the rates of discrete spike counts, which are approximately Poisson-distributed on short time intervals. And second, that feedforward connections encode deviations from expectations contained in feedback connections (Fig. 2a; [30, 53]). We introduce a reparameterization trick for Poisson samples (Algorithm 1), and derive the evidence lower bound (ELBO) objective for the P-VAE (eq. (3)). Overall, we believe P-VAE introduces a promising new model at the intersection of computational neuroscience and machine learning that offers several appealing features over existing VAE architectures: The P-VAE loss derivation (eq. (3)) naturally results in a metabolic cost term that penalizes high firing rates, such that P-VAE with a linear decoder implements amortized sparse coding (Fig. 2b). We validate this prediction empirically. P-VAE largely avoids the prevalent posterior collapse issue, maintaining many more active latents compared to alternative VAE models (Table 1), especially the continuous ones. P-VAE encodes its inputs in relatively higher dimensions, facilitating linear separability of categories in a downstream classification task with a much better (5 ) sample efficiency. We evaluate these results on two natural image datasets and MNIST. The P-VAE paves the way for the future development of interpretable hierarchical models that perform brain-like inference. 2 Background & Related work Perception as inference: connections to neuroscience and machine learning. A centuries-old idea [21, 22], perception as inference argues that coherent perception of the world results from the unconscious inference over the causes of the senses. In other words, the brain learns a generative model of the sensory inputs. This has led to fruitful theoretical work in neuroscience [23, 54 56] and machine learning [57, 58], including VAEs [52]. See Marino [10] for a review. Efficient, predictive, and sparse coding. Another longstanding idea in neuroscience is that brains are adapted to the statistics of the environment. Efficient coding states that brains represent as much information about the environment as possible while minimizing neural resource use [59, 60]. Predictive coding [30, 61, 62] postulates that the brain generates a statistical prediction of its inputs, with feedforward networks carrying only the prediction errors or unexplained information [63]. More recently, ANNs based on predictive coding have been shown to capture a wide range of phenomena in biological neurons across the visual system [64, 65]. More broadly, prediction in time has emerged as an objective that lends itself to brain-like representations [66, 67]. Sparse coding (SC) is directly inspired by efficient coding, aiming to explain inputs as sparsely as possible [47, 68]. SC was the first unsupervised model to learn representations closely resembling the receptive fields of V1 neurons [3] and predicts an array of empirical features of neural activity [69 79]. SC is formalized with a generative model where neural activations z are sampled from a sparsity-inducing prior, z p(z), and the input image x is reconstructed as a linear combination of basis vectors Φ, plus additive Gaussian noise, ˆx = Φz + ε. The SC loss is as follows: LSparse Coding (x; Φ, z) = x Φz 2 2 + β z 1 . (1) Commonly used algorithms for sparse coding include the locally competitive algorithm (LCA; [80]), which is a biologically plausible algorithm to optimize eq. (1), and iterative shrinkage-thresholding algorithm (ISTA; [81, 82]), which has shown robust performance in learning sparse codes given a fixed dictionary Φ. VAE objective. VAEs define a probabilistic generative model p(x, z), where x denotes the observed data and z are some latent variables. The generative process samples z from a prior distribution p(z) and then generates the observed data x from the conditional distribution pθ(x|z), also known as the decoder . The encoder , qϕ(z|x), performs approximate inference on the inputs. Model parameters are learned by maximizing the evidence lower bound (ELBO) objective, which is derived from variational inference (see appendix B for the full set of derivations). The ELBO is given by: log p(x) Eqϕ(z|x) h log pθ(x|z) i DKL qϕ(z|x) p(z) = LVAE(x; θ, ϕ). (2) The first term captures the reconstruction performance of the decoder, and the second term, the KL term, captures the divergence of the approximate posterior from the prior. The specific form of these distributions is up to the practitioner. In standard VAEs, factorized Gaussians are typically used: q = N(z; µ(x), σ2(x)) and p = N(z; 0, 1). The likelihood, pθ(x|z), is also typically modeled as a Gaussian conditioned on a parameterized neural network decθ(z). Amortized inference in VAEs. A major contribution of VAEs is the idea of amortizing inference over the latents z with a black box ANN [83, 84]. Amortized inference borrows a term from finance to capture the idea of spreading out costs here, the cost of performing inference over multiple samples. In amortized inference, a neural network learns (during training) how to map a data sample to a distribution over latent variables given the sample. The cost is paid during training, but the trained model can then be used to perform inference on future samples efficiently. It has been argued that the brain performs amortized inference for computational efficiency [85]. VAEs connection to biology. VAEs have been shown to contain individual latents that resemble neurons, capturing a wide range of the phenomena observed in visual cortical areas [40] and human perceptual judgments [43]. Like many other ANN models [86, 87], VAEs have been found to learn representations that are predictive of single-neuron activity in both the ventral [1] and dorsal [2] streams. However, unlike most ANNs, the mapping from certain VAEs to neural activity is incredibly sparse, even one-to-one in some cases [1, 2]. Discrete VAEs. VAEs with discrete latent spaces, such as VQ-VAE [88] and Categorical VAE [89], are designed to capture complex data structures by mapping inputs to a finite set of latent variables. Unlike traditional VAEs that use continuous latent spaces, these models leverage discrete representations to enhance interpretability and can yield high performance with lower capacity [90]. Algorithm 1 Reparameterized sampling (rsample) for Poisson distribution. Input: λ RB K >0 # rate parameter; B, batch size; K, latent dimensionality n_exp # number of exponential samples to generate temperature # controls the sharpness of the thresholding 1: procedure RSAMPLE(λ, n_exp, temperature) 2: Exp Exponential(λ) create exponential distribution 3: t Exp.rsample((n_exp, )) sample inter-event times, t : [n_exp B K] 4: times cumsum( t, dim=0) compute arrival times, same shape as t 5: indicator sigmoid 1 times temperature soft indicator for events within unit time 6: z sum(indicator, dim=0) event counts, or number of spikes, z : [B K] 7: return z 8: end procedure VAEs connection to sparse coding. Previous work has attempted to connect sparse coding and VAEs directly [91 93], with each approaching the problem differently. Geadah et al. [91] introduced sparsity-inducing priors (such as Laplace or Cauchy) and a linear decoder with an overcomplete latent space. Tonolini et al. [92] introduced a spike and slab prior into a modified ELBO, and Xiao et al. [93] added a sparse coding layer learned by ISTA to the latent space of a VQ-VAE. Notably, none of the three ended up minimizing the sparse coding loss. Two of the three maintain the linear generative model with an overcomplete latent space, but the ELBO in both requires an additional approximation step for the KL term [91, 92]. 3 Introducing the Poisson Variational Autoencoder (P-VAE) sample from independent neurons linear decoder overcomplete latent space: element-wise product Input data (e.g., images) Residual (feedfwd) information Prior rates Spike counts Input reconstruction Dictionary of basis elements Reconstruction loss Figure 2: (a) Model architecture. Colored shapes indicate learnable model parameters, including the prior firing rates, r. We color code the model s inference and generative components using red and blue, respectively. The P-VAE encodes its inputs in discrete spike counts, z, significantly enhancing its biological realism. (b) Amortized Sparse Coding is a special case within the P-VAE model family: it s a P-VAE with a linear decoder and an overcomplete latent space. Our main contribution is integrating Poisson-distributed latents into VAEs, where both the approximate posterior and the prior are parameterized as Poisson distributions. Critically, the latents z are no longer continuous variables, but rather they are discrete spike counts. To perform inference over discrete latents, we introduce a Poisson reparameterization trick. We then derive the KL term and obtain the full P-VAE objective. Poisson reparameterization trick. For a homogeneous Poisson process [94 96], given a window size t = 1, and rate λ, we can generate Poisson distributed counts by drawing randomly distributed wait-times from an exponential distribution with mean 1/λ and counting all events where the cumulative time is less than 1. Because the exponential distribution is trivially reparameterized [35], and Py Torch contains an implementation [97], we need only to approximate the hard threshold for comparing cumulative wait times with the window size. We accomplish this by replacing the indicator function with a sigmoid as in refs. [89, 98]. Figure 3: Relaxed Poisson distribution. Samples are drawn using Algorithm 1 for λ = 1. At non-zero temperatures, samples are non-integer, but approach the true Poisson distribution as T 0. Algorithm 1 demonstrates the steps: Given a matrix of rates λ, sample n_exp wait times t1, t2, ...tn_exp for each element of λ by sampling from an exponential distribution with mean 1/λ. We then calculate the cumulative event times S(n_exp) = Pn_exp j=1 tj, pass them through a sigmoid σ( 1 S temperature), and sum over samples to get event counts, z. The temperature controls the sharpness of the thresholding. We adaptively scale the number of samples, n_exp, by keeping track of the maximum rate in each batch, λmax, and then use the inverse cumulative density function (cdf) for Poisson to find the number of samples, n_exp, such that cdf(n_exp; λmax) = 0.99999. At non-zero temperatures, our parameterization algorithm provides a continuous relaxation of the Poisson distribution. Figure 3 shows histograms of samples drawn using Algorithm 1 for rate λ = 1 and temperatures T = 1.0, 0.1, 0.01, and 0. The latter case (T = 0, true Poisson) is equivalent to torch.poisson(). P-VAE architecture and residual parameterization. The architecture of P-VAE captures the interactions between feedforward and feedback connections that are present in all visual cortical areas [99, 100]. Feedforward areas carry sensory information and feedback connections are thought to carry modulatory signals such as attention [53] or prediction [30], which interact multiplicatively with feedforward inputs [53, 101]. P-VAE embodies this idea by having the posterior rates depend on the prior, such that rprior = r and rpost. = r δr(x), where is the Hadamard (element-wise) product. The prior rates, r RK, are learnable parameters that capture expectations about the statistics of the input. The encoder outputs, δr(x) RK, capture deviations from the prior. Thus, P-VAE models the interaction between prior expectations, and deviations from them, in a multiplicative and symmetric way. This results in a posterior, q(z|x) = Pois(z; r δr(x)), and prior, p(z) = Pois(z; r), where z is the spike count variable and Pois(z; λ) = λze λ/z! is the Poisson distribution. Notably, this multiplicative relationship is maximally general, as any pair of positive variables, rprior, and rpost. can be expressed as a base variable, r := rprior, multiplied by their relative ratio, δr := rpost./r. See Fig. 2a. P-VAE loss function. For a comprehensive derivation of the P-VAE objective, see appendix B. Here, we report the final result: LPVAE = Ez Pois(z;r δr) h x dec(z) 2 2 i + rif(δri), (3) where dec( ) is the decoder neural network, and f(y) := 1 y + y log y (see supplementary Fig. 6). P-VAE relationship to sparse coding. The KL term in eq. (3) penalizes firing rates. Both r and δr are positive by definition, and f(y) 0, strongly resembling the sparsity penalty in Olshausen and Field [3]. To make this connection more explicit, we make two additional assumptions (Fig. 2b): 1. The decoder is a linear generative model: ˆx = Φz, with x RM and Φ RM K. 2. The latent space is overcomplete: K > M. Because both Ez Pois(z;λ)[zi] and Ez Pois(z;λ)[zizj] have closed-form solutions (eq. (22)), the reconstruction term in eq. (3) can be computed analytically for a linear decoder, resulting in: LSC-PVAE (x; δr, r, Φ) = x Φλ 2 2 + λT diag(ΦT Φ) + β rif(δri). (4) where λ = r δr(x) are the posterior firing rates, f(y) is defined as above, and β is a hyperparameter that scales the contribution of the KL term [102], and changes the sparsity penalty for the P-VAE. Table 1: Models considered in this paper. Poisson VAE (P-VAE) Categorical VAE (C-VAE; [89, 98]) Gaussian VAE (G-VAE; [35, 36]) Laplace VAE (L-VAE; [40, 91]) The relationship between the linear P-VAE loss (eq. (4)) and the sparse coding loss (eq. (1)) can now be seen. Both contain a term that minimizes the squared error of the reconstruction and a term (two terms for P-VAE) that penalizes non-zero firing rates. Unlike prior work that directly implemented amortized sparse coding [91, 92], here the activity penalty naturally emerges from the derivations, and the only additional assumption was an overcomplete linear generative model. The inference is accomplished using a parameterized feed-forward neural network, δr(x), thus, it is amortized [83]. We call this specific case of P-VAE Amortized Sparse Coding (Fig. 2b). Note that a closed-form derivation of the reconstruction term is possible for any VAE with a linear decoder and a generating distribution that has a mean and variance (see eq. (21)). This closed-form expression of the loss given a linear decoder is useful because we can see how different parameters contribute to the loss. Furthermore, we can compute gradients of the whole loss exactly, and use this to evaluate our Poisson reparameterization. 4 Experiments To evaluate the P-VAE, we perform three sets of experiments. First, we utilize the theoretical results for a linear decoder (eqs. (4) and (21)) to test the effectiveness of our reparameterization algorithm. We compare to alternative VAE models with established reparameterization tricks (e.g., Gaussian). Second, to confirm P-VAE with a linear decoder not only resembles amortized sparse coding but practically performs like sparse coding, we compare to standard and well-established sparse coding algorithms such as the locally competitive algorithm (LCA; [80]) and the widely-used iterative shrinkage-thresholding algorithm (ISTA; [81, 82]) to see if P-VAE reproduces their results. Third, we test the P-VAE in a generic representation learning context and evaluate the geometry of learned representations for downstream tasks. For these experiments, both the encoder and decoder s architecture is a Res Net (see appendix C for full architecture and training details). Architecture notation. We experimented with both convolutional and linear architectures. We highlight the encoder and decoder networks using red and blue, respectively. We use the enc|dec convention to clearly specify which architecture type was used. For example, conv|lin represents a model with a convolutional encoder and a linear decoder. Using this notation, we note that lin|lin and conv|lin architectures were used for the first and second sets of experiments, while conv|conv architectures were employed for the third. Alternative models. We compare P-VAE to both discrete and continuous VAEs (Table 1). Other than the traditional Gaussian, we compare to Laplace-distributed VAEs because previous work found the Laplace distribution supported robust sparse representations [40, 91]. Additionally, we compare to Categorical VAEs, trained using the Gumbel-Softmax trick [89, 98]. We use Py Torch s implementation which is based on Maddison et al. [98]. Finally, we test models where Gaussian latents are passed through an activation function before passing to the decoder. We call these models G-VAE +act, where act {relu, exp}, capturing other families of distributions (truncated Gaussian and log-normal). We include these to test the hypothesis that positive constraints (and not discrete latents) are the key contribution of Poisson [103]. Datasets. For sparse coding results, we use 101 natural images from the van Hateren dataset [104]. We tile the images to extract 16 16 patches and apply whitening and contrast normalization, as is typically done in sparse coding literature [3, 105]. To test the generalizability of our sparse coding results, we repeat these steps on CIFAR10 [106], a dataset we call CIFAR16 16. For the general representation learning results, we use MNIST. See appendix C for additional details. Table 2: Reparameterized gradient estimators perform comparably to exact ones across datasets and encoder architectures (linear vs. convolutional). Exact gradients are only computable for linear decoders (see eqs. (21), (23) and (24)). Values represent percent drop in validation loss (lower is better), shown as mean 99% confidence interval calculated from n = 5 random initializations. The best-performing case was selected as the single best random seed for models of the same architecture and dataset across gradient methods (1 out of: 15 for P-VAE, 10 for G-VAE). See supplementary Fig. 7 for a visualization of the same data presented in this table. For actual loss values, see supplementary Table 5. EX: exact; MC: Monte Carlo; ST: straight-through [107]. Model van Hateren lin|lin conv|lin lin|lin conv|lin lin|lin conv|lin P-VAE EX MC ST 0.6 .5 0.1 .1 0.0 .1 0.7 .1 7.3 .1 10.5 .1 0.0 .1 0.0 .0 0.2 .0 0.5 .1 9.1 .1 12.5 .1 0.1 .1 0.5 .6 0.7 .4 0.9 .5 8.1 .3 11.8 .2 G-VAE EX MC 0.1 .1 0.0 .0 0.1 .1 0.0 .0 0.0 .1 0.0 .0 0.1 .1 0.0 .0 0.1 .2 0.1 .2 0.4 .1 0.3 .1 Statistical tests. In the VAE literature, it is known that random seeds can have a large effect compared to architecture or regularization [108]. Therefore, we train each configuration using 5 different random initializations. We report 99% confidence intervals throughout, and perform paired t-tests, reporting significance for p < 0.01 (FDR corrected using the Benjamini-Hochberg method). Evaluating the Poisson reparameterization algorithm. P-VAE with a linear decoder has a closed form solution (eq. (4)), which lets us evaluate how well our reparameterized gradients perform compared to the exact ones. We compare our results to the gold-standard Gaussian (Table 2), as well as Categorical and Laplace VAEs (supplementary Table 5). In Table 2, we report the percent performance drop relative to the best fit, enabling meaningful comparisons across architectures and datasets. Monte Carlo sampling with Poisson reparameterization closely matches exact inference just like established methods for Gaussian and Laplace. In contrast, the straight-through (ST; [107]) estimator performs poorly (Table 2; see also supplementary Fig. 7). Annealing the temperature. The temperature parameter (T) is a crucial hyperparameter in our Poisson reparameterization trick (Algorithm 1). To assess its impact, we followed standard practice [89] and annealed T during the first half of training, starting from a large value (Tstart = 1) and gradually decreasing it to a small value (Tfinal = 0.05 in the main paper). Figure 9 shows the performance on the van Hateren dataset as a function of various Tfinal, two architectures ( lin|lin and conv|lin ), as well as two annealing schedules (linear vs. exponential; see inset). We find that final temperatures Tfinal 0.1 and either annealing strategy work well. During training, we maintain T > 0, which results in continuous (floating) latent variables, z. At test time, we set T = 0 to produce genuine integer Poisson samples. Crucially, all reported results use T = 0 at test time. We also explored a hard-forward scheme during the latter half of training, where T remains nonzero only in the backward pass. This surrogate gradients approach provides integer latents in the forward pass but, somewhat unexpectedly, underperformed our relaxed Poisson method (Fig. 9). These findings suggest that surrogate gradient methods might benefit from relaxing the hard-forward strategy during training. We believe this observation will be of particular interest to the spiking neural network community, which often relies on surrogate gradients for training. The P-VAE learns basis vectors similar to those from sparse coding. A major result from sparse coding is that it learns basis vectors (dictionaries) that resemble the Gabor-like receptive fields of cortical neurons [3, 109, 110]. Inspecting the dictionaries learned by different models demonstrates this is not trivial (Fig. 4). As expected from theoretical results [4], G-VAE (top left) learn probabilistic PCA, but with many noisy elements. As demonstrated previously [40, 91], L-VAE (lower left) learn Gabor-like elements. However, there are a large number of noisy basis vectors. It is of note that previous work did not show complete dictionaries for their results with Laplace latents [40, 91]. In contrast, P-VAE (top middle) learns Gabor-like filters that cover space, orientation, and spatial Poisson VAE (# dead neurons: 5) Laplace VAE (# dead neurons: 416) Gaussian VAE (# dead neurons: 401) Categorical VAE (# dead neurons: 4) Iterative shrinkage-thresholding algorithm (ISTA) Locally competitive algorithm (LCA) Figure 4: Learned basis elements for various lin|lin VAEs (first two columns) and standard sparse coding models (last column). There are a total of K = 512 elements, each made of 16 16 = 256 pixels (i.e., Φ R256 512). Features are ordered from top-left to bottom-right, in ascending order of their associated KL divergence (P-VAE, G-VAE, L-VAE), or the magnitude of posterior logits (C-VAE). The sparse coding results (LCA and ISTA) are ordered randomly. frequency. The quality is comparable to sparse coding dictionaries learned with LCA/ISTA (top/lower right panels). C-VAE also learns Gabors, although there are significantly more noisy basis elements. The P-VAE avoids posterior collapse. A striking feature of Fig. 4 is the sheer number of noisy basis vectors for both continuous VAEs (G-VAE, L-VAE). We suspected this reflected dead neurons with vanishing KL, which is indicative of a collapsed latent dimension that s no longer encoding information. To quantify this, we binned the distribution of KL values and thresholded the resulting distribution at discontinuous points (see supplemental Fig. 10). Table 3 shows the results of this analysis for all VAEs with valid KL terms. Across all datasets, both continuous VAEs suffered from large numbers of dead neurons, whereas P-VAE largely avoided this problem. On both natural image datasets, P-VAE had 2% dead neurons compared to 80% for G-VAE and L-VAE. Having a more expressive encoder slightly increases this percentage, but a dramatic difference between P-VAE and continuous VAEs (G-VAE, L-VAE) persists. The P-VAE learns sparse representations. To quantify whether P-VAE learns sparse representations, we compared our VAE models to sparse coding trained with LCA and ISTA and quantified the lifetime sparsity [69]. The lifetime sparsity of the j-th latent is: where N is the number of images, and zij is sampled from the posterior for the i-th image. Intuitively, sj = 1 whenever neuron j responds to a single stimulus out of the entire set (highly selective). In contrast, sj = 0 whenever the neuron responds equally well to all stimuli indiscriminately. Fig. 5a shows the reconstruction performance (MSE) compared to lifetime sparsity (s, eq. (5)) for all VAEs. Empty and solid circles represent conv|lin and lin|lin architectures, respectively. The G-VAE finds good reconstructions (MSE = 71.49) but with low sparsity (s = 0.37). Because the P-VAE KL term explicitly penalizes rate (eq. (3)), we explored different β values for P-VAE with both lin|lin and conv|lin architectures (Fig. 5a, blue curves). This maps out rate-distortion curves, enabling us to compare the sparsity levels at which P-VAE matches G-VAE performance. With a simpler (linear) encoder, lin|lin P-VAE matches conv|lin G-VAE performance while achieving 1.7 greater sparsity at β = 0.6. A conv|lin P-VAE further increases this gap to 2.4 greater sparsity. Adding a relu activation to G-VAE also increases sparsity (s = 0.69). By comparing lin|lin and conv|lin P-VAE models, we observe that enhancing encoder complexity for the same β = 1 (gray arrows) preserves MSE performance while achieving greater sparsity. This highlights how amortization quality can significantly influence rate-distortion curves [33, 111 113]. Table 3: Proportion of active neurons. All models considered in this table had a latent dimensionality of K = 512, with either lin|lin or conv|lin architectures. See also supplementary Fig. 10. Model van Hateren linear conv CIFAR16 16 linear conv linear conv P-VAE L-VAE G-VAE 0.984 .011 0.819 .041 0.188 .000 0.222 .003 0.218 .003 0.246 .000 0.999 .002 0.928 .045 0.193 .003 0.230 .000 0.105 .008 0.246 .000 0.537 .008 0.426 .011 0.027 .000 0.034 .002 0.027 .000 0.031 .000 Figure 5: Reconstruction performance vs. sparsity of representations. (a) Results for the VAE model family. The curves are sigmoid fit to lin|lin and conv|lin P-VAE results across varying β values (β from eq. (4)). Empty circles correspond to conv|lin architectures. (b) Amortization gap for P-VAE (blue open circle) compared to sparse coding (LCA/ISTA). Solid points show results from applying the LCA inference algorithm to P-VAE basis vectors at different sparsity levels (βLCA from eq. (1)). The purple curve is a sigmoid fit, and curves from part (a) are also included for comparison. Does P-VAE match the performance of traditional sparse coding trained with LCA or ISTA? Figure 5b compares P-VAE to sparse coding models that were trained using a wide range of hyperparameters, and the best models were selected for each class (appendix C). P-VAE achieves a similar sparsity to LCA and ISTA (s = 0.94, 0.91, and 0.96, respectively), but the best LCA model drastically outperforms P-VAE on MSE for similar levels of sparsity. This suggests our convolutional encoder is struggling to close the amortization gap. To test this hypothesis, we performed LCA inference on basis elements learned by P-VAE (Fig. 5b curve/solid points). We explored a range of hyperparameters to determine whether the MSE improved for similar sparsity levels. Indeed, LCA inference using P-VAE dictionary was able to nearly match the performance of sparse coding LCA for similar levels of sparsity. This confirms our hypothesis that a large amortization gap remains for the specific encoder architectures we tested, highlighting the need for improved inference algorithms/architectures [112]. The P-VAE is more sample efficient in downstream tasks. To assess downstream performance, we trained conv|conv VAE models with a K = 10 latent dimension on MNIST (see supplementary Fig. 12 for generated samples and reconstructions from these models). We then extracted representations from the trained encoders and evaluated their ability to classify MNIST digits. We define representations as mean vectors µ for continuous VAEs (G-VAE, L-VAE) following conventions in the VAE literature [108], and use log δr for P-VAE, and logits for C-VAE. We split the MNIST validation set into two 5,000 sample sets, used as train/test sets for this task. We train K-nearest neighbors (KNN) classifiers with a varying number of limited supervised samples (N = 200, 1000, 5000) drawn without replacement from the first set (train), to measure classification accuracy on the withheld set (test). KNN is nonparametric, and its performance is directly influenced by the geometry of representations by explicitly capturing the distance between encoded samples [114]. We find that using only N = 200 samples, P-VAE achieves 82% accuracy in held out data; whereas, G-VAE achieves the same level of accuracy at N = 1000 samples (Table 4). By this measure, P-VAE is 5 more sample efficient. But from Alleman et al. [115], we know that the choice of activation function changes the geometry of learned representations. Therefore, we also tested G-VAE models with an activation function (relu and exp) applied to latents after sampling from the Table 4: Geometry of representations (K = 10 only; see Table 6 for the full set of results). Latent dim. Model KNN classification (N, # labeled samples) N = 200 N = 1,000 N = 5,000 Shattering dim. P-VAE C-VAE L-VAE G-VAE G-VAE +relu G-VAE +exp 0.815 .002 0.919 .001 0.946 .017 0.705 .002 0.800 .002 0.853 .040 0.757 .003 0.869 .002 0.924 .028 0.673 .003 0.813 .002 0.891 .033 0.694 .003 0.817 .003 0.877 .045 0.642 .003 0.784 .002 0.863 .032 0.797 .009 0.795 .006 0.751 .008 0.758 .007 0.762 .007 0.737 .008 posterior. This biological constraint improved G-VAE, but it still underperformed P-VAE (Table 4). We also found this result held for higher dimensional latent spaces (supplementary Table 6). In supplementary analyses (Fig. 11), we evaluated the representations using logistic regression trained on the full dataset. For larger latent dimensionalities (K = 50, 100), P-VAE outperformed all other VAEs, but at lower dimensionalities (K = 10), it underperforms both G-VAE and L-VAE. The P-VAE learns representations with higher dimensional geometry. The preceding results are indicative of substantial differences in the geometry of the representations learned by P-VAE compared to other VAE families (Table 4). To test this more explicitly, we calculated the shattering dimensionality of the latent space [116 118]. Shattering dim measures the average accuracy over all possible pairwise classification tasks. This is called shattering because if the model shatters data points around into a high dimensional space, they will become more linearly separable. For MNIST with 10 classes, there are 10 5 = 252 possible classifications. We trained logistic regression on the entire training set to classify each of the 252 arbitrary splits and measured the average performance on the entire validation set. The far right column of Table 4 shows the measured shattering dims. For K = 10, the shattering dim was significantly higher for discrete VAEs (P-VAE, C-VAE). For higher dimensional latent spaces P-VAE strongly outperformed alternative models (Table 6). 5 Conclusions In this paper, we introduced the P-VAE, a generative model that encodes inputs into discrete spike counts and unifies established theoretical concepts in neuroscience with modern machine learning. We introduced a Poisson reparameterization algorithm and derived the ELBO for Poisson-distributed latent variables. The P-VAE objective results in a KL term that penalizes firing rates, like sparse coding. We showed that P-VAE with a linear decoder reduces to amortized sparse coding. We evaluated the representations on downstream classification tasks and found that P-VAE encodes its inputs in a higher dimensional space, enabling good linear separability between classes. Limitations. P-VAE samples Poisson latents. Although this is inspired by the statistics of spike counts in the brain over short time intervals [50], there are deviations from Poisson throughout the cortex over longer time windows [51]. We discuss this point in appendix A. A second limitation is the amortization gap between our current implementation of P-VAE and traditional sparse coding. This could likely be closed with more expressive encoders [119] or through iterative inference [113, 120], but it is an open area of research [112]. Neuroscience implications and future directions. Like biological neurons, the P-VAE generates spikes. This non-negative, discrete representational form closely parallels neuronal spiking activity. Therefore, the P-VAE can be more directly compared to neuronal circuits than unconstrained, continuous VAEs. This analogy facilitates in silico perturbation experiments (e.g., stimulating or silencing P-VAE neurons) to mirror in vivo causal manipulations. It also allows applying methods like Most Exciting Inputs (MEI; [121]), which assume non-negative activations. Future work could explore hierarchical P-VAEs, finding a sweet spot between interpretability and performance. Overall, the biologically inspired representational form of P-VAE brings computational modeling closer to experimental neuroscience and opens new avenues for advancing Neuro AI research [13, 20]. 6 Code and data Our code, data, and model checkpoints are available here: https://github.com/hadivafaii/Poisson VAE. 7 Acknowledgments This work was supported by the National Institute of Health under award number NEI EY032179. Additionally, this material is based upon work supported by the National Science Foundation Graduate Research Fellowship Program under Grant No. DGE-1752814 (DG). Any opinions, findings, conclusions, or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation. We thank our anonymous reviewers for their helpful comments, and the developers of the software packages used in this project, including Py Torch [97], Num Py [122], Sci Py [123], scikit-learn [124], pandas [125], matplotlib [126], and seaborn [127]. [1] Irina Higgins et al. Unsupervised deep learning identifies semantic disentanglement in single inferotemporal face patch neurons . In: Nature Communications 12.1 (2021), p. 6456. DOI: 10.1038/s41467-021-26751-5. [2] Hadi Vafaii et al. Hierarchical VAEs provide a normative account of motion processing in the primate brain . In: Thirty-seventh Conference on Neural Information Processing Systems. 2023. URL: https://openreview.net/forum?id=1w Ok HN9JK8. [3] Bruno A Olshausen and David J Field. Emergence of simple-cell receptive field properties by learning a sparse code for natural images . In: Nature 381.6583 (1996), pp. 607 609. DOI: 10.1038/381607a0. [4] Michael E. Tipping and Christopher M. Bishop. Probabilistic Principal Component Analysis . In: Journal of the Royal Statistical Society Series B: Statistical Methodology 61.3 (Jan. 1999), pp. 611 622. ISSN: 1369-7412. DOI: 10.1111/1467-9868.00196. [5] Warren S Mc Culloch and Walter Pitts. A logical calculus of the ideas immanent in nervous activity . In: The bulletin of mathematical biophysics 5 (1943), pp. 115 133. DOI: 10.1007/ BF02478259. [6] Patricia S Churchland and Terrence J Sejnowski. Perspectives on cognitive neuroscience . In: Science 242.4879 (1988), pp. 741 745. DOI: 10.1126/science.3055294. [7] Michael SC Thomas and James L Mc Clelland. Connectionist models of cognition . In: The Cambridge handbook of computational psychology (2008), pp. 23 58. URL: http: //www7.bbk.ac.uk/psychology/dnl/wp-content/uploads/2023/10/Thomas Mc Clelland-proof.pdf. [8] Nikolaus Kriegeskorte. Deep neural networks: a new framework for modeling biological vision and brain information processing . In: Annual Review of Vision Science 1 (2015), pp. 417 446. DOI: 10.1101/029876. [9] Grace W. Lindsay. Convolutional Neural Networks as a Model of the Visual System: Past, Present, and Future . In: Journal of Cognitive Neuroscience 33.10 (Sept. 2021), pp. 2017 2031. ISSN: 0898-929X. DOI: 10.1162/jocn_a_01544. [10] Joseph Marino. Predictive coding, variational autoencoders, and biological connections . In: Neural Computation 34.1 (2022), pp. 1 44. DOI: 10.1162/neco_a_01458. [11] Jeffrey S Bowers et al. Deep problems with neural network models of human vision . In: Behavioral and Brain Sciences 46 (2023), e385. DOI: 10.1017/S0140525X22002813. [12] Felix A. Wichmann and Robert Geirhos. Are Deep Neural Networks Adequate Behavioral Models of Human Visual Perception? In: Annual Review of Vision Science 9.Volume 9, 2023 (2023), pp. 501 524. ISSN: 2374-4650. DOI: 10.1146/annurev-vision-120522031739. [13] Anthony Zador et al. Catalyzing next-generation Artificial Intelligence through Neuro AI . In: Nature Communications 14.1 (2023), p. 1597. DOI: 10.1038/s41467-023-37180-x. [14] Fabian H Sinz et al. Engineering a less artificial intelligence . In: Neuron 103.6 (2019), pp. 967 979. DOI: 10.1016/j.neuron.2019.08.034. [15] Demis Hassabis et al. Neuroscience-inspired artificial intelligence . In: Neuron 95.2 (2017), pp. 245 258. DOI: 10.1016/j.neuron.2017.06.011. [16] Nancy Kanwisher et al. Using artificial neural networks to ask why questions of minds and brains . In: Trends in Neurosciences (2023). DOI: 10.1016/j.tins.2022.12.008. [17] Blake Richards et al. The application of artificial intelligence to biology and neuroscience . In: Cell 185.15 (2022), pp. 2640 2643. DOI: 10.1016/j.cell.2022.06.047. [18] Blake A Richards et al. A deep learning framework for neuroscience . In: Nature Neuroscience 22.11 (2019), pp. 1761 1770. DOI: 10.1038/s41593-019-0520-2. [19] David GT Barrett et al. Analyzing biological and artificial neural networks: challenges with opportunities for synergy? In: Current Opinion in Neurobiology 55 (2019), pp. 55 64. DOI: 10.1016/j.conb.2019.01.007. [20] Adrien Doerig et al. The neuroconnectionist research programme . In: Nature Reviews Neuroscience (2023), pp. 1 20. DOI: 10.1038/s41583-023-00705-w. [21] Ibn al-Haytham. Book of optics (Kitab Al-Manazir). 1011 1021 AD. [22] Hermann Von Helmholtz. Handbuch der physiologischen Optik. Vol. 9. Voss, 1867. [23] Tai Sing Lee and David Mumford. Hierarchical Bayesian inference in the visual cortex . In: JOSA A 20.7 (2003), pp. 1434 1448. DOI: 10.1364/JOSAA.20.001434. [24] Bruno A. Olshausen. Perception as an Inference Problem . In: The Cognitive Neurosciences (5th edition) (2014). Ed. by Michael Gazzaniga and George R. Mangun. DOI: 10.7551/ mitpress/9504.003.0037. URL: http://rctn.org/bruno/papers/perceptionas-inference.pdf. [25] Edwin Garrigues Boring. Perception of objects . In: American Journal of Physics (1946). DOI: 10.1119/1.1990807. [26] Karl Friston. The free-energy principle: a unified brain theory? In: Nature Reviews Neuroscience 11.2 (2010), pp. 127 138. DOI: 10.1038/nrn2787. [27] Sam Bond-Taylor et al. Deep generative modelling: A comparative review of vaes, gans, normalizing flows, energy-based and autoregressive models . In: IEEE transactions on pattern analysis and machine intelligence 44.11 (2021), pp. 7327 7347. DOI: 10.1109/ TPAMI.2021.3116668. [28] Stanley H. Chan. Tutorial on Diffusion Models for Imaging and Vision. 2024. ar Xiv: 2403. 18103 [cs.LG]. [29] Wayne Xin Zhao et al. A Survey of Large Language Models. 2023. ar Xiv: 2303.18223 [cs.CL]. [30] Rajesh PN Rao and Dana H Ballard. Predictive coding in the visual cortex: a functional interpretation of some extra-classical receptive-field effects . In: Nature Neuroscience 2.1 (1999), pp. 79 87. DOI: 10.1038/4580. [31] Robin Rombach et al. High-Resolution Image Synthesis With Latent Diffusion Models . In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). June 2022, pp. 10684 10695. URL: https://openaccess.thecvf.com/ content/CVPR2022/html/Rombach_High-Resolution_Image_Synthesis_With_ Latent_Diffusion_Models_CVPR_2022_paper.html. [32] Tero Karras et al. A Style-Based Generator Architecture for Generative Adversarial Networks . In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). June 2019. URL: https://openaccess.thecvf.com/content_CVPR_ 2019/html/Karras_A_Style-Based_Generator_Architecture_for_Generative_ Adversarial_Networks_CVPR_2019_paper.html. [33] Arash Vahdat and Jan Kautz. NVAE: A Deep Hierarchical Variational Autoencoder . In: Advances in Neural Information Processing Systems. Vol. 33. Curran Associates, Inc., 2020, pp. 19667 19679. URL: https://papers.nips.cc/paper_files/paper/2020/hash/ e3b21256183cf7c2c7a66be163579d37-Abstract.html. [34] Rewon Child. Very Deep {VAE}s Generalize Autoregressive Models and Can Outperform Them on Images . In: International Conference on Learning Representations. 2021. URL: https://openreview.net/forum?id=RLRXCV6Db EJ. [35] Diederik P Kingma and Max Welling. Auto-encoding variational bayes . In: (2014). ar Xiv: 1312.6114v11 [stat.ML]. [36] Danilo Jimenez Rezende et al. Stochastic backpropagation and approximate inference in deep generative models . In: International Conference on Machine Learning. PMLR. 2014, pp. 1278 1286. URL: https://proceedings.mlr.press/v32/rezende14.html. [37] Diederik P Kingma and Ruiqi Gao. Understanding Diffusion Objectives as the ELBO with Simple Data Augmentation . In: Thirty-seventh Conference on Neural Information Processing Systems. 2023. URL: https://openreview.net/forum?id=Nn MEadcdy D. [38] Karsten Kreis et al. Neur IPS 2023 Tutorial on Latent Diffusion Models. https : / / neurips2023-ldm-tutorial.github.io/. 2023. [39] Diederik Kingma et al. Variational Diffusion Models . In: Advances in Neural Information Processing Systems. Ed. by M. Ranzato et al. Vol. 34. Curran Associates, Inc., 2021, pp. 21696 21707. URL: https://proceedings.neurips.cc/paper/2021/hash/ b578f2a52a0229873fefc2a4b06377fa-Abstract.html. [40] Ferenc Csikor et al. Top-down perceptual inference shaping the activity of early visual cortex . In: bio Rxiv (2023). DOI: 10.1101/2023.11.29.569262. [41] T. Anderson Keller et al. Modeling Category-Selective Cortical Regions with Topographic Variational Autoencoders . In: SVRHM 2021 Workshop @ Neur IPS. 2021. URL: https: //openreview.net/forum?id=y GRq_l W54b I. [42] T. Anderson Keller and Max Welling. Topographic VAEs learn Equivariant Capsules . In: Advances in Neural Information Processing Systems. Ed. by M. Ranzato et al. Vol. 34. Curran Associates, Inc., 2021, pp. 28585 28597. URL: https://proceedings.neurips.cc/ paper/2021/hash/f03704cb51f02f80b09bffba15751691-Abstract.html. [43] Katherine R Storrs et al. Unsupervised learning predicts human perception and misperception of gloss . In: Nature Human Behaviour 5.10 (2021), pp. 1402 1417. DOI: 10.1038/s41562021-01097-6. [44] Edgar Adrian. The activity of the nerve fibres. https://www.nobelprize.org/prizes/ medicine/1932/adrian/lecture/. 1932. [45] Edgar Douglas Adrian and Yngve Zotterman. The impulses produced by sensory nerveendings: Part II. The response of a Single End-Organ . In: The Journal of Physiology (1926), pp. 151 71. DOI: 10.1113/jphysiol.1926.sp002281. [46] Donald H Perkel and Theodore H Bullock. Neural coding . In: Neurosciences Research Program Bulletin (1968). URL: https://ntrs.nasa.gov/citations/19690022317. [47] Horace B Barlow. Single units and sensation: a neuron doctrine for perceptual psychology? In: Perception 1.4 (1972), pp. 371 394. DOI: 10.1068/p010371. [48] Ehud Zohary et al. Correlated neuronal discharge rate and its implications for psychophysical performance . In: Nature 370.6485 (1994), pp. 140 143. DOI: 10.1038/370140a0. [49] Fred Rieke et al. Spikes: exploring the neural code. MIT press, 1999. URL: https:// mitpress.mit.edu/9780262181747/spikes/. [50] Malvin C Teich. Fractal character of the auditory neural spike train . In: IEEE Transactions on Biomedical Engineering 36.1 (1989), pp. 150 160. DOI: 10.1109/10.16460. [51] Robbe LT Goris et al. Partitioning neuronal variability . In: Nature Neuroscience 17.6 (2014), pp. 858 865. DOI: 10.1038/nn.3711. [52] Diederik P Kingma and Max Welling. An introduction to variational autoencoders . In: Foundations and Trends in Machine Learning 12.4 (2019), pp. 307 392. DOI: 10.1561/ 2200000056. [53] Charles D Gilbert and Wu Li. Top-down influences on visual processing . In: Nature Reviews Neuroscience 14.5 (2013), pp. 350 363. DOI: 10.1038/nrn3476. [54] David C Knill and Alexandre Pouget. The Bayesian brain: the role of uncertainty in neural coding and computation . In: Trends in Neurosciences 27.12 (2004), pp. 712 719. DOI: 10.1016/j.tins.2004.10.007. [55] Horace Barlow. Redundancy reduction revisited . In: Network: computation in neural systems 12.3 (2001), p. 241. DOI: 10.1080/net.12.3.241.253. [56] Karl Friston. The free-energy principle: a rough guide to the brain? In: Trends in Cognitive Sciences 13.7 (2009), pp. 293 301. DOI: 10.1016/j.tics.2009.04.005. [57] Peter Dayan et al. The Helmholtz machine . In: Neural Computation 7.5 (1995), pp. 889 904. DOI: 10.1162/neco.1995.7.5.889. [58] William Lotter et al. Deep Predictive Coding Networks for Video Prediction and Unsupervised Learning . In: International Conference on Learning Representations. 2017. URL: https://openreview.net/forum?id=B1ewdt9xe. [59] Fred Attneave. Some informational aspects of visual perception. In: Psychological review 61.3 (1954), p. 183. DOI: 10.1037/h0054663. [60] Horace B. Barlow. Possible principles underlying the transformation of sensory messages . In: Sensory communication 1.01 (1961), pp. 217 233. URL: https://www.cnbc.cmu.edu/ ~tai/microns_papers/Barlow-Sensory Communication-1961.pdf. [61] Mandyam Veerambudi Srinivasan et al. Predictive coding: a fresh view of inhibition in the retina . In: Proceedings of the Royal Society of London. Series B. Biological Sciences 216.1205 (1982), pp. 427 459. DOI: 10.1098/rspb.1982.0085. [62] Karl Friston. A theory of cortical responses . In: Philosophical transactions of the Royal Society B: Biological Sciences 360.1456 (2005), pp. 815 836. DOI: 10.1098/rstb.2005. 1622. [63] Andy Clark. Whatever next? Predictive brains, situated agents, and the future of cognitive science . In: Behavioral and brain sciences 36.3 (2013), pp. 181 204. DOI: 10.1017/ S0140525X12000477. [64] William Lotter et al. A neural network trained for prediction mimics diverse features of biological neurons and perception . In: Nature machine intelligence 2.4 (2020), pp. 210 219. DOI: 10.1038/s42256-020-0170-9. [65] Beren Millidge et al. Predictive coding networks for temporal prediction . In: PLOS Computational Biology 20.4 (2024), e1011183. DOI: 10.1371/journal.pcbi.1011183. [66] Yosef Singer et al. Hierarchical temporal prediction captures motion processing along the visual pathway . In: Elife 12 (2023), e52599. DOI: 10.7554/e Life.52599. [67] Pierre-Étienne H Fiquet and Eero P Simoncelli. A polar prediction model for learning to represent visual transformations . In: Thirty-seventh Conference on Neural Information Processing Systems. 2023. URL: https://openreview.net/forum?id=hy PUZX03Ks. [68] Bruno A Olshausen and David J Field. Sparse coding of sensory inputs . In: Current opinion in neurobiology 14.4 (2004), pp. 481 487. DOI: 10.1016/j.conb.2004.07.007. [69] William E Vinje and Jack L Gallant. Sparse coding and decorrelation in primary visual cortex during natural vision . In: Science 287.5456 (2000), pp. 1273 1276. DOI: 10.1126/ science.287.5456.1273. [70] Alison L Barth and James FA Poulet. Experimental evidence for sparse firing in the neocortex . In: Trends in neurosciences 35.6 (2012), pp. 345 355. DOI: 10.1016/j.tins.2012. 03.008. [71] R Quian Quiroga et al. Sparse but not grandmother-cell coding in the medial temporal lobe . In: Trends in cognitive sciences 12.3 (2008), pp. 87 91. DOI: 10.1016/j.tics.2007. 12.003. [72] Tomáš Hromádka et al. Sparse representation of sounds in the unanesthetized auditory cortex . In: PLo S biology 6.1 (2008), e16. DOI: 10.1371/journal.pbio.0060016. [73] Cindy Poo and Jeffry S Isaacson. Odor representations in olfactory cortex: sparse" coding, global inhibition, and oscillations . In: Neuron 62.6 (2009), pp. 850 861. DOI: 10.1016/j. neuron.2009.05.022. [74] Jason Wolfe et al. Sparse and powerful cortical spikes . In: Current opinion in neurobiology 20.3 (2010), pp. 306 312. DOI: 10.1016/j.conb.2010.03.006. [75] Ben DB Willmore et al. Sparse coding in striate and extrastriate visual cortex . In: Journal of neurophysiology 105.6 (2011), pp. 2907 2919. DOI: 10.1152/jn.00594.2010. [76] Bilal Haider et al. Synaptic and network mechanisms of sparse and reliable visual cortical activity during nonclassical receptive field stimulation . In: Neuron 65.1 (2010), pp. 107 121. DOI: 10.1016/j.neuron.2009.12.005. [77] Sylvain Crochet et al. Synaptic mechanisms underlying sparse coding of active touch . In: Neuron 69.6 (2011), pp. 1160 1175. DOI: 10.1016/j.neuron.2011.02.022. [78] Carl CH Petersen. Sensorimotor processing in the rodent barrel cortex . In: Nature Reviews Neuroscience 20.9 (2019), pp. 533 546. DOI: 10.1038/s41583-019-0200-y. [79] Emmanouil Froudarakis et al. Population code in mouse V1 facilitates readout of natural scenes through increased sparseness . In: Nature neuroscience 17.6 (2014), pp. 851 857. DOI: 10.1038/nn.3707. [80] Christopher J Rozell et al. Sparse coding via thresholding and local competition in neural circuits . In: Neural Computation 20.10 (2008), pp. 2526 2563. DOI: 10.1162/neco.2008. 03-07-486. [81] I. Daubechies et al. An iterative thresholding algorithm for linear inverse problems with a sparsity constraint . In: Communications on Pure and Applied Mathematics 57.11 (2004), pp. 1413 1457. DOI: 10.1002/cpa.20042. [82] Amir Beck and Marc Teboulle. A Fast Iterative Shrinkage-Thresholding Algorithm for Linear Inverse Problems . In: SIAM Journal on Imaging Sciences 2.1 (2009), pp. 183 202. DOI: 10.1137/080716542. [83] Ankush Ganguly et al. Amortized Variational Inference: A Systematic Review . In: Journal of Artificial Intelligence Research 78 (2023), pp. 167 215. DOI: 10.1613/jair.1.14258. [84] Brandon Amos. Tutorial on Amortized Optimization . In: Foundations and Trends in Machine Learning 16.5 (2023), pp. 592 732. ISSN: 1935-8237. DOI: 10.1561/2200000102. [85] Samuel Gershman and Noah Goodman. Amortized inference in probabilistic reasoning . In: Proceedings of the annual meeting of the cognitive science society. Vol. 36. 36. 2014. URL: https://escholarship.org/uc/item/34j1h7k5. [86] Colin Conwell et al. What can 1.8 billion regressions tell us about the pressures shaping high-level visual representation in brains and machines? In: bio Rxiv (2023). DOI: 10.1101/ 2022.03.28.485868. [87] Eric Elmoznino and Michael F Bonner. High-performing neural network models of visual cortex benefit from high latent dimensionality . In: bio Rxiv (2022), pp. 2022 07. DOI: 10.1101/2022.07.13.499969. [88] Aaron van den Oord et al. Neural Discrete Representation Learning . In: Advances in Neural Information Processing Systems. Ed. by I. Guyon et al. Vol. 30. Curran Associates, Inc., 2017. URL: https://papers.nips.cc/paper_files/paper/2017/hash/ 7a98af17e63a0ac09ce2e96d03992fbc-Abstract.html. [89] Eric Jang et al. Categorical Reparameterization with Gumbel-Softmax . In: International Conference on Learning Representations. 2017. URL: https://openreview.net/forum? id=rk E3y85ee. [90] Hiromichi Kamata et al. Fully spiking variational autoencoder . In: Proceedings of the AAAI Conference on Artificial Intelligence. Vol. 36. 6. 2022, pp. 7059 7067. DOI: 10.1609/aaai. v36i6.20665. [91] Victor Geadah et al. Sparse-Coding Variational Autoencoders . In: Neural Computation 36.12 (Nov. 2024), pp. 2571 2601. ISSN: 0899-7667. DOI: 10.1162/neco_a_01715. [92] Francesco Tonolini et al. Variational Sparse Coding . In: Proceedings of The 35th Uncertainty in Artificial Intelligence Conference. Ed. by Ryan P. Adams and Vibhav Gogate. Vol. 115. Proceedings of Machine Learning Research. PMLR, July 2020, pp. 690 700. URL: https://proceedings.mlr.press/v115/tonolini20a.html. [93] Pan Xiao et al. SC-VAE: Sparse Coding-based Variational Autoencoder with Learned ISTA . In: (2024). ar Xiv: 2303.16666 [cs.CV]. [94] David Roxbee Cox and Valerie Isham. Point processes. Vol. 12. CRC Press, 1980. [95] Oleksandr Shchur et al. Fast and Flexible Temporal Point Processes with Triangular Maps . In: Advances in Neural Information Processing Systems. Ed. by H. Larochelle et al. Vol. 33. Curran Associates, Inc., 2020, pp. 73 84. URL: https://proceedings.neurips.cc/ paper_files/paper/2020/hash/00ac8ed3b4327bdd4ebbebcb2ba10a00-Abstract. html. [96] Oleksandr Shchur. Modeling Continuous-time Event Data with Neural Temporal Point Processes . Ph D thesis. Technische Universität München, 2022. URL: https://mediatum. ub.tum.de/doc/1662914/2wdsxe2av36cxz519qo7xolo3.dissertation.pdf. [97] Adam Paszke et al. Py Torch: An Imperative Style, High-Performance Deep Learning Library . In: Advances in Neural Information Processing Systems. Vol. 32. Curran Associates, Inc., 2019. URL: https://papers.nips.cc/paper_files/paper/2019/hash/ bdbca288fee7f92f2bfa9f7012727740-Abstract.html. [98] Chris J. Maddison et al. The Concrete Distribution: A Continuous Relaxation of Discrete Random Variables . In: International Conference on Learning Representations. 2017. URL: https://openreview.net/forum?id=S1j E5L5gl. [99] Daniel J Felleman and David C Van Essen. Distributed hierarchical processing in the primate cerebral cortex . In: Cerebral Cortex 1.1 (1991), pp. 1 47. DOI: 10.1093/CERCOR/1.1.1. [100] Nikola T Markov et al. Anatomy of hierarchy: feedforward and feedback pathways in macaque visual cortex . In: Journal of Comparative Neurology 522.1 (2014), pp. 225 259. DOI: 10.1002/cne.23458. [101] Anita A Disney. Neuromodulatory control of early visual processing in macaque . In: Annual Review of Vision Science 7 (2021), pp. 181 199. DOI: 10.1146/annurev-vision100119-125739. [102] Irina Higgins et al. beta-VAE: Learning Basic Visual Concepts with a Constrained Variational Framework . In: International Conference on Learning Representations. 2017. URL: https: //openreview.net/forum?id=Sy2fz U9gl. [103] James C. R. Whittington et al. Disentanglement with Biological Constraints: A Theory of Functional Cell Types . In: The Eleventh International Conference on Learning Representations. 2023. URL: https://openreview.net/forum?id=9Z_Gfh Zn GH. [104] J Hans Van Hateren and Arjen van der Schaaf. Independent component filters of natural images compared with simple cells in primary visual cortex . In: Proceedings of the Royal Society of London. Series B: Biological Sciences 265.1394 (1998), pp. 359 366. DOI: 10. 1098/rspb.1998.0303. [105] Victor Boutin et al. Sparse deep predictive coding captures contour integration capabilities of the early visual system . In: PLo S computational biology 17.1 (2021), e1008629. DOI: 10.1371/journal.pcbi.1008629. [106] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images . In: (2009). URL: https://www.cs.toronto.edu/~kriz/learning-features2009-TR.pdf. [107] Yoshua Bengio et al. Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation . In: (2013). ar Xiv: 1308.3432 [cs.LG]. [108] Francesco Locatello et al. Challenging common assumptions in the unsupervised learning of disentangled representations . In: international conference on machine learning. PMLR. 2019, pp. 4114 4124. URL: https://proceedings.mlr.press/v97/locatello19a. html. [109] David H. Hubel and Torsten N. Wiesel. Receptive fields of single neurones in the cat s striate cortex . In: The Journal of Physiology 148 (1959). DOI: 10.1113/jphysiol.1959. sp006308. [110] David H. Hubel and Torsten N. Wiesel. Receptive fields and functional architecture of monkey striate cortex . In: The Journal of Physiology 195 (1968). DOI: 10.1113/jphysiol. 1968.sp008455. [111] Alexander Alemi et al. Fixing a Broken ELBO . In: Proceedings of the 35th International Conference on Machine Learning. Ed. by Jennifer Dy and Andreas Krause. Vol. 80. Proceedings of Machine Learning Research. PMLR, July 2018, pp. 159 168. URL: https: //proceedings.mlr.press/v80/alemi18a.html. [112] Chris Cremer et al. Inference suboptimality in variational autoencoders . In: International Conference on Machine Learning. PMLR. 2018, pp. 1078 1086. URL: https:// proceedings.mlr.press/v80/cremer18a.html. [113] Joe Marino et al. Iterative Amortized Inference . In: Proceedings of the 35th International Conference on Machine Learning. Ed. by Jennifer Dy and Andreas Krause. Vol. 80. Proceedings of Machine Learning Research. PMLR, July 2018, pp. 3403 3412. URL: https: //proceedings.mlr.press/v80/marino18a.html. [114] Kilian Q. Weinberger and Lawrence K. Saul. Distance Metric Learning for Large Margin Nearest Neighbor Classification . In: Journal of Machine Learning Research 10.9 (2009), pp. 207 244. URL: http://jmlr.org/papers/v10/weinberger09a.html. [115] Matteo Alleman et al. Task structure and nonlinearity jointly determine learned representational geometry . In: The Twelfth International Conference on Learning Representations. 2024. URL: https://openreview.net/forum?id=k9t8d Q30k U. [116] Mattia Rigotti et al. The importance of mixed selectivity in complex cognitive tasks . In: Nature 497.7451 (2013), pp. 585 590. DOI: 10.1038/nature12160. [117] Silvia Bernardi et al. The geometry of abstraction in the hippocampus and prefrontal cortex . In: Cell 183.4 (2020), pp. 954 967. DOI: 10.1016/j.cell.2020.09.031. [118] Matthew T Kaufman et al. The implications of categorical and category-free mixed selectivity on representational geometries . In: Current opinion in neurobiology 77 (2022), p. 102644. DOI: 10.1016/j.conb.2022.102644. [119] Karol Gregor and Yann Le Cun. Learning fast approximations of sparse coding . In: Proceedings of the 27th international conference on international conference on machine learning. 2010, pp. 399 406. URL: https://dl.acm.org/doi/abs/10.5555/3104322.3104374. [120] Yoon Kim et al. Semi-Amortized Variational Autoencoders . In: Proceedings of the 35th International Conference on Machine Learning. Ed. by Jennifer Dy and Andreas Krause. Vol. 80. Proceedings of Machine Learning Research. PMLR, July 2018, pp. 2678 2687. URL: https://proceedings.mlr.press/v80/kim18e.html. [121] Edgar Y Walker et al. Inception loops discover what excites neurons most using deep predictive models . In: Nature neuroscience 22.12 (2019), pp. 2060 2065. DOI: 10.1038/ s41593-019-0517-x. [122] Charles R. Harris et al. Array programming with Num Py . In: Nature 585.7825 (Sept. 2020), pp. 357 362. DOI: 10.1038/s41586-020-2649-2. [123] Pauli Virtanen et al. Sci Py 1.0: Fundamental Algorithms for Scientific Computing in Python . In: Nature Methods 17 (2020), pp. 261 272. DOI: 10.1038/s41592-019-0686-2. [124] Fabian Pedregosa et al. Scikit-learn: Machine learning in Python . In: the Journal of machine Learning research 12 (2011), pp. 2825 2830. DOI: 10.5555/1953048.2078195. [125] The pandas development team. pandas-dev/pandas: Pandas. Version latest. Feb. 2020. DOI: 10.5281/zenodo.3509134. [126] John D Hunter. Matplotlib: A 2D graphics environment . In: Computing in science & engineering 9.03 (2007), pp. 90 95. DOI: 10.1109/MCSE.2007.55. [127] Michael L Waskom. Seaborn: statistical data visualization . In: Journal of Open Source Software 6.60 (2021), p. 3021. DOI: 10.21105/joss.03021. [128] David J Tolhurst et al. The statistical reliability of signals in single neurons in cat and monkey visual cortex . In: Vision research 23.8 (1983), pp. 775 785. DOI: 10.1016/00426989(83)90200-6. [129] AF Dean. The variability of discharge of simple cells in the cat striate cortex . In: Experimental Brain Research 44.4 (1981), pp. 437 440. DOI: 10.1007/BF00238837. [130] Michael N Shadlen and William T Newsome. The variable discharge of cortical neurons: implications for connectivity, computation, and information coding . In: Journal of neuroscience 18.10 (1998), pp. 3870 3896. DOI: 10.1523/JNEUROSCI.18-10-03870.1998. [131] Bruno B Averbeck et al. Neural correlations, population coding and computation . In: Nature Reviews Neuroscience 7.5 (2006), pp. 358 366. DOI: 10.1038/nrn1888. [132] Peter Dayan and Laurence F Abbott. Theoretical Neuroscience . In: (2001). URL: https: //mitpress.mit.edu/9780262041997/theoretical-neuroscience/. [133] Wilson Truccolo et al. A point process framework for relating neural spiking activity to spiking history, neural ensemble, and extrinsic covariate effects . In: Journal of neurophysiology 93.2 (2005), pp. 1074 1089. DOI: 10.1152/jn.00697.2004. [134] Zachary F Mainen and Terrence J Sejnowski. Reliability of spike timing in neocortical neurons . In: Science 268.5216 (1995), pp. 1503 1506. DOI: 10.1126/science.7770778. [135] Michael R De Weese et al. Binary spiking in auditory cortex . In: Journal of Neuroscience 23.21 (2003), pp. 7940 7949. DOI: 10.1523/JNEUROSCI.23-21-07940.2003. [136] William H Calvin and CHARLES F Stevens. Synaptic noise and other sources of randomness in motoneuron interspike intervals . In: Journal of neurophysiology 31.4 (1968), pp. 574 587. DOI: 10.1152/jn.1968.31.4.574. [137] Christina Allen and Charles F Stevens. An evaluation of causes for unreliability of synaptic transmission . In: Proceedings of the National Academy of Sciences 91.22 (1994), pp. 10380 10383. DOI: 10.1073/pnas.91.22.10380. [138] Matteo Carandini. Amplification of trial-to-trial response variability by neurons in visual cortex . In: PLo S biology 2.9 (2004), e264. DOI: 10.1371/journal.pbio.0020264. [139] Alison I Weber and Jonathan W Pillow. Capturing the dynamical repertoire of single neurons with generalized linear models . In: Neural Computation 29.12 (2017), pp. 3260 3289. DOI: 10.1162/neco_a_01021. [140] Daniel A Butts et al. Nonlinear computations shaping temporal processing of precortical vision . In: Journal of Neurophysiology 116.3 (2016), pp. 1344 1357. DOI: 10.1152/jn. 00878.2015. [141] Jagruti J Pattadkal et al. Synchrony dynamics underlie irregular neocortical spiking . In: bio Rxiv (2024), pp. 2024 10. DOI: 10.1101/2024.10.15.618398. [142] Casper Kaae Sønderby et al. Ladder Variational Autoencoders . In: Advances in Neural Information Processing Systems. Vol. 29. Curran Associates, Inc., 2016. URL: https://papers. nips.cc/paper_files/paper/2016/hash/6ae07dcb33ec3b7c814df797cbda0f87Abstract.html. [143] Cina Aghamohammadi et al. A doubly stochastic renewal framework for partitioning spiking variability . In: bio Rxiv (2024), pp. 2024 02. [144] David M Blei et al. Variational inference: A review for statisticians . In: Journal of the American statistical Association 112.518 (2017), pp. 859 877. DOI: 10.1080/01621459. 2017.1285773. [145] Ashish Vaswani et al. Attention is All you Need . In: Advances in Neural Information Processing Systems. Ed. by I. Guyon et al. Vol. 30. Curran Associates, Inc., 2017. URL: https : / / papers . nips . cc / paper _ files / paper / 2017 / hash / 3f5ee243547dee91fbd053c1c4a845aa-Abstract.html. [146] Prajit Ramachandran et al. Searching for Activation Functions . In: International Conference on Learning Representations. 2018. URL: https://openreview.net/forum?id= Sk BYYy ZRZ. [147] Stefan Elfwing et al. Sigmoid-weighted linear units for neural network function approximation in reinforcement learning . In: Neural Networks 107 (2018), pp. 3 11. DOI: 10.1016/j. neunet.2017.12.012. [148] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization . In: (2014). ar Xiv: 1412.6980 [cs.LG]. [149] Ilya Loshchilov and Frank Hutter. SGDR: Stochastic Gradient Descent with Warm Restarts . In: International Conference on Learning Representations. 2017. URL: https: //openreview.net/forum?id=Skq89Scxx. [150] Samuel R. Bowman et al. Generating Sentences from a Continuous Space . In: Proceedings of the 20th SIGNLL Conference on Computational Natural Language Learning. Berlin, Germany: Association for Computational Linguistics, Aug. 2016, pp. 10 21. DOI: 10.18653/ v1/K16-1002. [151] Hao Fu et al. Cyclical Annealing Schedule: A Simple Approach to Mitigating KL Vanishing . In: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). Minneapolis, Minnesota: Association for Computational Linguistics, June 2019, pp. 240 250. DOI: 10.18653/v1/N19-1021. [152] Michael Teti. LCA-Py Torch. [Computer Software] https://doi.org/10.11578/dc. 20230728.4. June 2023. DOI: 10.11578/dc.20230728.4. URL: https://doi.org/10. 11578/dc.20230728.4. [153] Shakir Mohamed et al. Monte Carlo Gradient Estimation in Machine Learning . In: Journal of Machine Learning Research 21.132 (2020), pp. 1 62. URL: http://jmlr.org/papers/ v21/19-346.html. A Are real neurons truly Poisson? In this section, we discuss empirical and theoretical observations from neuroscience that motivated our Poisson assumption. Poisson-like noise in neuroscience has a long history. It begins with observations that neurons do not fire the same sequence of spikes to repeated presentations of the same input, and that the variance is proportional to the mean [128, 129], and was followed by the observation that for short counting windows, that proportionality is one [49, 50, 130 132]. Larger windows and higher visual areas are notably super-Poisson, but that can be attributed to a modulation of the rate of an inhomogeneous Poisson process [51]. In other words, neurons are conditionally Poisson, not marginally Poisson [133]. Spike-generation, it is argued, is not noisy [134 136], but synaptic noise [137], or noise on the membrane potential, can create a Poisson-like distribution of spikes [138]. An important caveat is that the well-known example of precision in spike generation by Mainen and Sejnowski [134] is effectively captured by a Poisson-process Generalized Linear Model (GLM; Weber and Pillow [139]). However, this precision relies on a Bernoulli approximation to a Poisson process, allowing only 0 or 1 spikes. There is a widely-held misconception that precise timing cannot be produced by spike-rate models, but inhomogeneous rate models can produce precise spiking patterns at high time resolution [140]. In contrast, recent work has shown that correlations in excitatory inputs drive Poisson-like variability, explaining the widespread observation of Poisson-like noise in real neurons [141]. In summary, neurons are not literally Poisson, but it is a good choice. To set up the ELBO, one has to choose an approximate posterior and prior. Because spike counts are integer and cannot be negative, Poisson is a more natural choice than Gaussian without knowing anything about neural firing statistics. Here, we found that the Poisson assumption led to a model with interesting theoretical and empirical properties, where sparse coding emerged from the ELBO with Poisson. Extending the P-VAE to hierarchical architectures [2, 33, 34, 142] will make the latents conditionally Poisson, but not marginally Poisson (as they are modulated by top-down rates). Further extensions could implement doubly-stochastic spike generation [51, 143]. B Full derivations In this section, we provide a self-contained and pedagogical introduction to VAEs, derive the P-VAE loss function, and highlight how combining Poisson-distributed latents with predictive coding leads to the emergence of a metabolic cost term in the P-VAE loss. For the case of a linear decoder, the reconstruction loss assumes a closed-form solution. This means we can compute the gradients analytically, which we can then use to evaluate the Poisson reparameterization trick. B.1 Deriving the evidence lower bound (ELBO) loss For completeness, let s first go over the basics. This section will provide a quick refresher on variational inference and how to derive the VAE loss from scratch. Assume the data x RM and K-dimensional latent variables z are jointly distributed as p(x, z), with the data generated through the following process: p(x) = Z p(x, z) dz = Z p(x|z)p(z) dz, (6) In Bayesian posterior inference, the goal is to identify which latents z are likely given data x. In other words, we want to approximate P(z|x), the optimal but (typically) intractable posterior distribution. B.1.1 Variational inference and VAE loss function To achieve approximate Bayesian inference, a common approach is to define a family of variational densities Q and find a member q(z|x) Q such that it sufficiently approximates the optimal posterior [144]. We call q(z|x) the approximate posterior. The general aim of variational inference (VI) can be summarized as follows: VI : find a q(z|x) Q such that q(z|x) is a good approximation of p(z|x). (7) The goodness of our approximate posterior, or its closeness to the true posterior, is measured using the Kullback-Leibler (KL) divergence: q = argmin q Q DKL q(z|x) p(z|x) . (8) We cannot directly optimize eq. (8), because p(z|x) is often intractable. Instead, we rearrange some terms and arrive at the following loss function: LNELBO(q) = Ez q(z|x) h log p(x|z) i + DKL q(z|x) p(z) . (9) NELBO stands for negative ELBO, also known as variational free energy. Notably, finding a q Q that minimizes LNELBO(q) in eq. (9) is equivalent to finding the optimal q in eq. (8). The first term in eq. (9), often called the reconstruction term, captures the likelihood of the observed data x, given latents z, under the approximate posterior. For all our VAE models, we assume a Gaussian conditional likelihood with a fixed variance, as is typically done in the literature. This approximates the reconstruction term as the mean squared error between input data and their reconstructed version. The second term, known as the KL term, is more interesting. This term can assume very different forms depending on the distribution used. B.2 The KL term In this section, we will derive closed-form expressions for the KL term for different choices of the distributions q(z|x) and p(z). Specifically, we will focus on Gaussian and Poisson parameterizations. Predictive coding assumption. We will draw inspiration from predictive coding and assume that the bottom-up inference pathway only encodes the residual information relative to the top-down, or predicted information. We will apply this idea to both Gaussian and Poisson cases, and find that only in the Poisson case, the outcome becomes interpretable and resembles sparse coding objective. B.2.1 KL term derivation: Gaussian Let q(z|x) = N(z; µq(x), σq(x)) and p(z) = N(z; µp, σp), where the mean and variance are either outputs of the encoder network or parameters of the decoder network. Now, let us implement the predictive coding assumption, where the encoder only keeps track of residual information that is not already contained in the prior information. Mathematically, this idea can be formalized as follows: µp µ, µq µ + δµ σp σ, σq σ δσ (10) With these modifications, the Gaussians KL term becomes: DKL (q p) = 1 σ2 + δσ2 log δσ2 1 . (11) In standard Gaussian VAEs, the prior has no learnable parameter. Instead, we have µ 0 and σ 1. Therefore, the final form of the KL term for a standard Gaussian VAE is: DKL (q N(0, 1)) = 1 δµ2 + δσ2 log δσ2 1 . (12) We observe that the KL term vanishes when δµ 0 and δσ 1. This happens whenever no new information is propagated through the encoder, a phenomenon known as posterior collapse. Other than this trivial observation, eq. (12) does not really lend itself to interpretation. In contrast, will show below that a Poisson parameterization of VAEs leads to a much more interpretable outcome for the KL term. B.2.2 KL term derivation: Poisson Now suppose q(z|x) = Pois(z; rδr(x)), and p(z) = Pois(z; r), where z is literally the spike count of a single latent dimension or shall we say, neuron? In the Poisson case, the KL term becomes more interpretable, as we will show below. Recall that the Poisson distribution for a single variable z, given rate λ R>0, is given by: Pois(z; λ) = λze λ Plug this expressions into the KL divergence definition to get: DKL (q p) = Ez q log (rδr)ze rδr/z! log δrz + log e rδr+r z log δr rδr + r h z i log δr rδr + r = rδr log δr rδr + r = r (1 δr + δr log δr) = rf(δr), where we have define f(y) := 1 y + y log y. To examine the behavior of the Poisson KL term, we assume δr = 1 + ϵ, where ϵ 1, then Taylor expand f. Calculating the first and second derivatives of f(y) = 1 y + y log y gives f (y) = log y and f (y) = 1/y. Thus: f(1 + ϵ) = f(1) + ϵf (1) + ϵ2 2! f (1) + O(ϵ3) = 0 + 0 + ϵ2 Plug this back into eq. (14) to get: DKL (q p) = rf(δr) = rf(1 + ϵ) For small deviations ϵ, the KL term simplifies to the product of the prior firing rate, r, and ϵ2. See Fig. 6 for a visualization of the full function, f(δr) = 1 δr + δr log δr, along with its quadratic approximation near δr = 1. In general, there are two ways to minimize the KL term: dead prior neurons (r 0), or posterior collapse (δr 1). 0 1 2 3 4 5 r 1 r + r log r 0 1 2 3 4 5 r 0.5 * (1 r)2 Figure 6: Left, residual term f(δr) from eq. (14). Right, quadratic approximation of f from eq. (15). Together with the reconstruction loss, the NELBO for a 1-dimensional P-VAE reads: LPVAE (r, δr) = Lrecon. (r, δr) + r (1 δr + δr log δr) . (17) Finally, it is easy to show that for K-dimensional latent space, eq. (14) generalizes to: DKL Pois(z; r δr(x)) Pois(z; r) = r f(δr), (18) where and denote the Hadamard (element-wise) and vector products, respectively. B.3 Connection to sparse coding Equation (17) mirrors sparse coding due to the presence of the firing rate in the objective function. Furthermore, it follows the principle of predictive coding by design. Thus, our Poisson formulation of VAEs effectively unifies these two major themes in theoretical neuroscience. Let s explore this curious connection to sparse coding more closely below. B.4 Statistically independent neurons Suppose our P-VAE has K statistically independent neurons, and z ZK 0 is the spike count variable, where Z 0 = {0, 1, 2, . . .} is the set of non-negative integers. Let us use bold font r and δr to refer to the firing rate vectors of the representation and error units, respectively. Recall that we allowed these variables to interact in a multiplicative way to construct the posterior rates, λi(x) = riδri(x). More explicitly, we have: q(z|x) = Pois(z; r δr) = i=1 Pois(zi; riδri) = p(z) = Pois(z; r) = i=1 Pois(zi; ri) = Note that, unlike a standard Gaussian VAE, the prior in P-VAE is parameterized using r, which is learned from data along with the other parameters. Similar to standard Gaussian VAEs, δr(x) is parameterized as a neural network. B.5 Linear decoder Following the sparse coding literature [3], we will now assume our decoder generates the input image x RM as a linear sum of K basis elements, Φ RM K. Additionally, we choose a diagonal Gaussian distribution with fixed variance as our conditional likelihood, resulting in a mean squared error between the input x, and its reconstruction Φz. Given these assumptions, the reconstruction loss for a VAE with approximate posterior q can be expressed as follows: Lrecon. (x; q) = Ez q(Z|X=x) h x Φz 2 2 i . (20) For a linear decoder, the reconstruction term x Φz 2 2 contains only the first and second moments of z. Consequently, the expectation in eq. (20) can be analytically computed. This results in a close-form expression for the reconstruction loss, and consequently, its gradients as well. In general, whenever the VAE decoder is linear, the following result holds: Lrecon. (x; q, Φ) = x Φ Eq[Z] 2 2 + Varq[Z]T diag(ΦT Φ). (21) Note that a linear decoder is the only assumption we needed to obtain this closed-form solution. There are no restrictions on the form of the encoder: it can be linear, or as complicated as we want. We only have to compute the mean and variance of the posterior. Specifically, for the Poisson case, we only need to know the following expectation values: Ez Pois(z;λ) h zi i = λi, Ez Pois(z;λ) h zizj i = λiλj + δijλi. (22) Here are the reconstruction losses for both Poisson and Gaussian VAEs with linear decoders, put side-by-side for comparison: Poisson: Lrecon. (x; λ, Φ) = x Φλ 2 2 + λT diag(ΦT Φ), Gaussian: Lrecon. (x; µ, σ, Φ) = x Φµ 2 2 + (σ2)T diag(ΦT Φ). Given these assumptions, the NELBO (eq. (9)) for P-VAE with a linear decoder becomes: LSC-PVAE (x; δr, r, Φ) = x Φλ 2 2 + λT diag(ΦT Φ) + β rif(δri). (24) Recall that we have f(y) = 1 y + y log y (see Fig. 6). We introduced the β term here to control the trade-off between the reconstruction and the KL term [102]. Additionally, we dropped the explicit dependence of δr(x) on the input image x to enhance readability. B.6 Linear encoder We can further simplify the P-VAE architecture by making the encoder also linear. Let W RK M denote the encoder s weight matrix, and assume an exponential link function mapping the input to residual firing rates, i.e., δr = exp(W x). Starting from eq. (24), substituting log δr = W x, and rearranging terms yields the following loss function for the lin|lin P-VAE: LLin-PVAE = λT ΦT Φλ + λT diag(ΦT Φ βI) + λT (βW 2ΦT )x + β ri + x T x. (25) C Architecture, training, and hyperparameter details C.1 Datasets: additional details We consider three datasets in this paper. We tile up the van Hateren dataset of natural images [104] and CIFAR10 into 16 16 patches and apply whitening and contrast normalization using the code made available by Boutin et al. [105]. This operation results in the following total number of samples: van Hateren: #train = 107,520, #validation = 28,224, CIFAR16 16: #train = 200,000, #validation = 40,000. We use the MNIST dataset primarily for the downstream classification task. After the training is done, we use the following train/validation split to evaluate the models: K-nearest neighbor classification (tables 4 and 6): For this task, we only make use of the validation set for both training and testing of the classifier. We divide up the N = 10,000 validation samples into two disjoint sets of N = 5,000 samples each. We then draw random samples (without replacement) from the first half and use them for training the KNN classifier. We then test the performance on the other half. Shattering dimensionality (tables 4 and 6, last column): We use the entire MNIST training set (N = 60,000 samples) to train logistic regression classifiers on extracted representations. We then test the results using the entire validation set (N = 10,000 samples). C.2 Architecture details For sparse coding results, we focused on models with linear decoders. For the fully linear models (Figs. 4 and 10) both the encoder and decoder were linear layers, without bias. For the convolutional components, we use residual layers without batch norm. For van Hateren and CIFAR16 16 datasets, the encoders had 5 layers (2 conv each). The decoders had 8 convolutional layers (1 conv each). For the MNIST dataset, the encoders had 7 layers (2 conv each). The decoders had 10 convolutional layers (1 conv each). For all convolutional encoders, the output from Res Net was followed by a learned pooling layer. The pooled output was then fed into a feed-forward layer inspired by Transformers [145], which includes a layer norm as the final operation, the output of which was fed into a linear layer that projects features into posterior distribution parameters. For all convolutional decoders, nearest neighbor upsampling was performed to scale up the spatial dimension of reconstructions, as suggested by Child [34]. We experimented with both leaky_relu and swish activation functions [146, 147], and found that swish consistently outperformed leaky_relu in all our experiments across datasets and VAE models. Please see our code for the full architecture details. C.3 Training details We used a variety of learning rates and batch sizes, depending on the dataset and architecture. For lin|lin and conv|lin models, we used lr = 0.005, and for conv|conv models we used lr = 0.002. All models were trained using the Ada Max optimizer [148] with a cosine learning rate schedule [149]. Please see our code for the full details of training hyperparameters. Overall, we trained 195 VAE models, n = 5 seeds each, resulting in a total of 195 5 = 975 VAEs. For sparse coding models, we ran ISTA [81, 82] and LCA [80] with 270 hyperparameter combinations each. Training all models took roughly a week on 8 RTX 6000 Ada GPUs. Temperature annealing for discrete VAEs. We also annealed the temperature from a large value to a smaller value during the same first half of training for P-VAE and C-VAE. We found that the specific functional form of temperature annealing (e.g., linear, exponential, etc.) did not matter as much as the final temperature (Fig. 9). For both P-VAE and C-VAE, we start from Tstart = 1.0 and anneal down to Tstop = 0.05 for P-VAE, and Tstop = 0.1 for C-VAE. We found that the C-VAE performance was not very sensitive to the choice of Tstop, corroborating previous reports [89, 98]. The P-VAE was relatively more sensitive to the value of Tstop, and we found marginal improvements when reducing it from 0.1 to 0.05. See Fig. 9 for comprehensive experiments exploring the effect of the final temperature, as well as a hard-forward training method where we set T = 0 in the forward pass (ensuring integer samples) and use a non-zero T only during the backward pass (surrogate gradients). We find that our relaxed Poisson approach (Fig. 3) consistently outperforms the hard-forward approach. KL annealing for VAEs. For all VAE models, we annealed the KL term during the first half of the training, which is known to be an effective trick in training VAEs [2, 33, 142, 150, 151]. C.3.1 Training: sparse coding models To fit LCA and ISTA models, we explored a combination of 6 β schedules (same β as in eq. (1)), 3 numbers of iteration (for inference), 3 learning rates, and 5 different seeds (for dictionary initialization). The code for LCA was obtained from the public python library lca-pytorch ([152]), and the code for ISTA was obtained from public sparsecoding repository of the Redwood Center for Theoretical Neuroscience (with added clipping of coefficients to be nonnegative, following the thresholding step). We explored learning rates of 1 10 1, 1 10 2, and 1 10 3. We trained all models for 100 epochs. We scheduled the β parameters linearly, starting from βstart, and stepped it up every five epochs by βstep, until it reached βend. We explored the following β schedules (expressed as βstart:βend:βstep): 0.05:0.7:0.1, 0.01:0.1:0.01, 0.1:1.0:0.1, 0.05:0.7:0.05, 0.05:0.5:0.05, 0.1:0.1:0 We also explored the inference iteration limits of 100, 500, and 900 iterations. We selected the best fits to include in the main results shown in Figs. 4 and 5. D Supplementary results In this section, we include additional results that further support those reported in the main paper, including: Table 5 contains the negative ELBO values for all VAE models with a linear decoder. This table reveals a comparable performance between using Monte Carlo samples to estimate gradients, versus optimizing the exact loss (see eqs. (4), (21), (23) and (24)), highlighting the effectiveness of our Poisson reparameterization algorithm. Figure 7 uses the same data from the main paper Table 2 to visualize the effects. Figure 8 shows the dependence of loss on latent dimensionality. We find that increasing the number of latent dimensions consistently improves ELBO for conv|lin architectures, but lin|lin models either overfit (for van Hateren) or fail to improve (for CIFAR16 16) once K becomes large. Figure 9 demonstrates the robustness of our Poisson reparameterization trick (Algorithm 1) to variations in the temperature parameter. Importantly, we also explore a hard-forward training approach, where we fix T = 0 during the forward pass but allow T > 0 in the backward pass. This is also known as surrogate gradients. We find that, somewhat surprisingly, this hard-forward method performs significantly worse than our relaxed Poisson approach (Fig. 3). Figure 10 shows how the distribution of KL values (or the norm of decoder weights in the case of linear decoders) can be used to determine dead neurons that don t contribute to the encoding of information. Table 6 contains the full set of downstream classification results. Related to Table 4. Figure 11 shows the performance of a simple linear classifier (logistic regression) trained on unsupervised representations learned by various conv|conv VAEs. We find that increasing the latent dimension (K) generally improves the performance of P-VAE, but at lower dimensions, other methods like L-VAE and G-VAE can outperform it. Figure 12 shows MNIST samples generated from the latent space of different conv|conv VAE models, as well as their reconstruction performance. Table 5: The reparameterized gradient estimators work as well as exact ones, across datasets and encoder architectures (linear vs. conv). Note that exact gradients are only computable for linear decoders (see eqs. (21), (23) and (24)). The values are negative ELBO (lower is better), shown as mean 99% confidence interval calculated from n = 5 different random initializations. For MNIST, our use of Gaussian conditional likelihoods means the numerical performance values are not directly comparable to studies that use binarized MNIST with a cross-entropy decoder. EX, exact, MC, Monte-Carlo, ST, straight-through [107]. See also Table 2 and supplementary Fig. 7. Model van Hateren lin|lin conv|lin lin|lin conv|lin lin|lin conv|lin P-VAE EX MC ST 168.0 .8 162.4 .2 167.2 .1 163.4 .1 179.3 .1 179.4 .1 167.1 .2 162.1 .1 167.3 .1 162.9 .2 182.3 .1 182.3 .2 41.5 .1 39.7 .2 41.7 .2 40.1 .2 44.8 .1 44.2 .1 G-VAE EX MC 160.3 .1 154.4 .1 160.3 .1 154.4 .1 165.9 .1 149.2 .0 165.9 .1 149.2 .1 40.6 .1 40.0 .1 40.7 .1 40.1 .0 C-VAE EX MC ST 174.9 .1 186.3 .8 170.5 .1 171.9 .2 174.2 .2 181.1 .3 177.1 .1 180.6 .5 174.7 .1 176.5 .1 180.2 .0 185.6 .2 56.1 .7 59.1 .0 39.7 .2 59.1 .0 49.3 .1 63.8 3.4 L-VAE EX MC 167.3 .0 159.0 .2 167.3 .0 159.2 .2 170.1 .1 154.3 .1 170.1 .1 154.5 .1 42.1 .1 41.0 .0 42.1 .0 41.0 .0 Relative performace drop [%] Linear encoder MC ST EX MC ST EX MC ST Conv encoder van Hateren MNIST Figure 7: Performance drop relative to the best fit. Blue circles indicate P-VAE results, red circles indicate G-VAE results, and each set of n = 5 circles corresponds to five random initializations. Using Monte Carlo samples [153] and our Poisson reparameterization trick (Algorithm 1) to estimate gradients performs comparably to using exact gradients (see eqs. (21), (23) and (24)). Table 2 provides a tabular summary of these results. EX, exact, MC, Monte-Carlo, ST, straight-through [107]. Negative ELBO (lower is better) Figure 8: The effect of latent dimensionality on model performance across datasets and encoder architectures. For all convolutional encoder cases, ELBO improves as a function of latent dimensionality. However, for linear encoders, we see that the van Hateren dataset starts to overfit for K > 512, and it stagnates for the CIFAR16 16 dataset. In conclusion, more expressive encoders can find nonlinear features, represented using additional latent dimensions, but simple linear encoders struggle to utilize additional dimensions. The gray triangle indicates the setting used in the main results. Negative ELBO (lower is better) Anneal schedule: lin Anneal schedule: exp # iter [portion] Figure 9: Performance as a function of the final temperature (Tfinal), annealing schedule (linear vs. exponential; inset), and the hard-forward approach. The hard-forward approach uses exact integer samples (T = 0) in the forward pass and applies nonzero temperatures only in the backward pass (i.e., surrogate gradients ). Although all results are evaluated at T = 0 during testing, the hard-forward approach still underperforms our relaxed Poisson method (Fig. 3), which employs continuous (floating) samples during training due to a non-zero T (Algorithm 1). The gray triangle indicates the setting used in the main results: Tfinal = 0.05 with a linear annealing schedule. 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 Gaussian (# dead neurons: 401) 0.00 0.02 0.04 0.06 0.08 0.10 Poisson (# dead neurons: 8) 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 Laplace (# dead neurons: 416) 4.5 5.0 5.5 6.0 6.5 7.0 Categorical (# dead neurons: 4) Figure 10: Identifying dead neurons using a histogram-based method. We bin the KL values and determine the gap between small values and larger ones. We identify neurons with KL values lower than the identified threshold (black dashed lines) and pronounce them dead. The figure shows the distribution of KL values over all neurons (K = 512) for P-VAE, G-VAE, and L-VAE. The KL term is a single number for the C-VAE because its latent space consists of a single one-hot categorical distribution with K = 512 categories. Therefore, for the C-VAE, we use the distribution of decoder weight norms instead. These are the same models shown in Fig. 4, where both encoder and decoder are linear. Table 3 uses this method to quantify the proportion of active neurons for VAEs across different datasets and the choice of encoder architectures. Table 6: Geometry of representations. Full set of results. Related to Table 4. Latent dim. Model KNN classification (N, # labeled samples) N = 200 N = 1,000 N = 5,000 Shattering dim. P-VAE C-VAE L-VAE G-VAE G-VAE +relu G-VAE +exp 0.815 .002 0.919 .001 0.946 .017 0.705 .002 0.800 .002 0.853 .040 0.757 .003 0.869 .002 0.924 .028 0.673 .003 0.813 .002 0.891 .033 0.694 .003 0.817 .003 0.877 .045 0.642 .003 0.784 .002 0.863 .032 0.797 .009 0.795 .006 0.751 .008 0.758 .007 0.762 .007 0.737 .008 P-VAE C-VAE L-VAE G-VAE G-VAE +relu G-VAE +exp 0.825 .002 0.927 .001 0.957 .005 0.770 .002 0.880 .001 0.920 .009 0.710 .003 0.836 .003 0.902 .038 0.604 .003 0.746 .002 0.837 .022 0.710 .002 0.844 .002 0.904 .026 0.694 .003 0.836 .002 0.906 .027 0.935 .003 0.899 .004 0.770 .007 0.743 .007 0.786 .006 0.762 .007 P-VAE C-VAE L-VAE G-VAE G-VAE +relu G-VAE +exp 0.807 .002 0.925 .001 0.958 .013 0.753 .002 0.876 .001 0.925 .005 0.701 .004 0.830 .003 0.896 .046 0.636 .003 0.789 .002 0.875 .024 0.757 .002 0.881 .001 0.933 .019 0.695 .003 0.846 .002 0.918 .024 0.949 .002 0.884 .004 0.767 .007 0.763 .007 0.818 .006 0.793 .006 Figure 11: Downstream classification performance using a simple linear classifier. After unsupervised training of conv|conv VAEs on MNIST, we extracted latent representations and applied logistic regression. For K = 100, P-VAE achieves the highest accuracy, while for K = 10, both L-VAE and G-VAE outperform it. Gaussian VAE Poisson VAE Laplace VAE Categorical VAE Gaussian VAE Laplace VAE Poisson VAE Categorical VAE Figure 12: Generated samples (left) and reconstruction performance (right). These results shown here are from models with a conv|conv architectures and latent dimensionality of K = 10. Neur IPS Paper Checklist Question: Do the main claims made in the abstract and introduction accurately reflect the paper s contributions and scope? Answer: [Yes] Justification: we provide comprehensive theoretical and empirical evidence to support our claims of (1) introducing the P-VAE and its reparameterization trick; (2) P-VAE containing amortized sparse coding as a special case; (3) P-VAE largely avoiding posterior collapse; and (4) P-VAE facilitating linear separability of categories at better sample efficiency, in sections 3 and 4, and supplemental appendices B to D. Guidelines: The answer NA means that the abstract and introduction do not include the claims made in the paper. The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. 2. Limitations Question: Does the paper discuss the limitations of the work performed by the authors? Answer: [Yes] Justification: The limitations of (1) Poisson possibly not being a perfect description of cortical activity, and (2) amortization gap, are shown explicitly and thoroughly discussed in sections 4 and 5. Specifically, we have a dedicated paragraph for limitations in section 5. We evaluated our claims using multiple well-known datasets such as the van Hateren natural images [104], CIFAR10, and MNIST, on tasks such as reconstruction, sparse coding, and classification. Guidelines: The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. The authors are encouraged to create a separate "Limitations" section in their paper. The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren t acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. 3. Theory Assumptions and Proofs Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? Answer: [Yes] Justification: We provide the full derivation of the P-VAE loss function, which is selfcontained in the paper (section 3) and supplement (appendix B). Guidelines: The answer NA means that the paper does not include theoretical results. All the theorems, formulas, and proofs in the paper should be numbered and crossreferenced. All assumptions should be clearly stated or referenced in the statement of any theorems. The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. Theorems and Lemmas that the proof relies upon should be properly referenced. 4. Experimental Result Reproducibility Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? Answer: [Yes] Justification: We disclose all details relating to the algorithm, including the optimization objective (eq. (3)), architecture and training details (appendix C), and pseudo-code for Poisson reparameterized sampling (Algorithm 1). In addition, we intend to release all code and data needed for replicating our work. Guidelines: The answer NA means that the paper does not include experiments. If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general. releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. While Neur IPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example (a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. (b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. (c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). (d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. 5. Open access to data and code Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? Answer: [Yes] Justification: Our code, data, and model checkpoints are available from the following Git Hub repository: https://github.com/hadivafaii/Poisson VAE. Guidelines: The answer NA means that paper does not include experiments requiring code. Please see the Neur IPS code and data submission guidelines (https://nips.cc/ public/guides/Code Submission Policy) for more details. While we encourage the release of code and data, we understand that this might not be possible, so No is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). The instructions should contain the exact command and environment needed to run to reproduce the results. See the Neur IPS code and data submission guidelines (https: //nips.cc/public/guides/Code Submission Policy) for more details. The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. 6. Experimental Setting/Details Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? Answer: [Yes] Justification: All details about how the data was used for training and testing, as well as which hyperparameters were used, are available at appendix C. In addition, the provided code replicates our results and therefore contains all details of implementation. Guidelines: The answer NA means that the paper does not include experiments. The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. The full details can be provided either with the code, in appendix, or as supplemental material. 7. Experiment Statistical Significance Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? Answer: [Yes] Justification: As stated in section 4, the paper reports confidence intervals and t-test significance tests, using false discovery rate (FDR) correction for multiple comparisons. The exact implementation details are included in the provided code for reproducibility. Guidelines: The answer NA means that the paper does not include experiments. The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) The assumptions made should be given (e.g., Normally distributed errors). It should be clear whether the error bar is the standard deviation or the standard error of the mean. It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified. For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. 8. Experiments Compute Resources Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? Answer: [Yes] Justification: We provide details about our compute resources (GPUs), and duration of training in section 4. Guidelines: The answer NA means that the paper does not include experiments. The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn t make it into the paper). 9. Code Of Ethics Question: Does the research conducted in the paper conform, in every respect, with the Neur IPS Code of Ethics https://neurips.cc/public/Ethics Guidelines? Answer: [Yes] Justification: Our paper follows the code of ethics, including preserving anonymity (such as in releasing code anonymously). Guidelines: The answer NA means that the authors have not reviewed the Neur IPS Code of Ethics. If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). 10. Broader Impacts Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? Answer: [NA] Justification: Our paper is considered foundational research, and does not target practical tasks that can be deployed outside of the research field. Thus we do not anticipate negative social impacts from this work. Guidelines: The answer NA means that there is no societal impact of the work performed. If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). 11. Safeguards Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? Answer: [NA] Justification: Our paper utilizes publicly domain datasets (not scraped), and poses no safety risks. Guidelines: The answer NA means that the paper poses no such risks. Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. 12. Licenses for existing assets Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? Answer: [Yes] Justification: We properly cite papers that introduce algorithms (such as LCA), datasets (such as MNIST, CIFAR10, van Hateren), and code (such as LCA and ISTA). Guidelines: The answer NA means that the paper does not use existing assets. The authors should cite the original paper that produced the code package or dataset. The authors should state which version of the asset is used and, if possible, include a URL. The name of the license (e.g., CC-BY 4.0) should be included for each asset. For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. If this information is not available online, the authors are encouraged to reach out to the asset s creators. 13. New Assets Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? Answer: [Yes] Justification: New assets introduced in the paper consist of our codebase which includes notebooks to replicate our experiments and analyses, and contains documentation. Guidelines: The answer NA means that the paper does not release new assets. Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. The paper should discuss whether and how consent was obtained from people whose asset is used. At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. 14. Crowdsourcing and Research with Human Subjects Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? Answer: [NA] Justification: Our paper does not involve crowdsourcing nor research with human subjects. Guidelines: The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. According to the Neur IPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. 15. Institutional Review Board (IRB) Approvals or Equivalent for Research with Human Subjects Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? Answer: [NA] Justification: Our paper does not involve crowdsourcing nor research with human subjects. Guidelines: The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the Neur IPS Code of Ethics and the guidelines for their institution. For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.