Learn Before
Concept

Sparse Autoencoders

A sparse autoencoder is an autoencoder whose training criterion involves a sparsity penalty Ω(h)\Omega(h) on the code layer hh. The loss function is L(x,g(f(x)))+Ω(h)L(x, g(f(x))) + \Omega(h), where g(h)g(h) is the decoder output, and h=f(x)h = f(x) is the encoder output.

It approximates the maximum likelihood training of a generative model with visible variables xx and hidden variables hh, with an explicit joint distribution p_{model}(x, h) = p_{model}(h)p_{model}(x | h). The log-likelihood can be decomposed as: log(pmodel(x))=loghpmodel(h,x)log(p_{model}(x)) = log \sum\limits_h p_{model} (h,x)

We can think of the autoencoder as approximating this sum with a point estimate for just one highly likely value for hh. With this chosen hh, we maximize: log(p_{model}(h, x)) = log(p_{model}(h)) + log(p_{model}(x | h))

Expressing the log-prior as an absolute value penalty, we obtain: Ω(h)=λihi\Omega (h) = \lambda \sum\limits_i |h_i| log(pmodel(h))=i(λhilogλ2)=Ω(h)+const- log(p_{model}(h)) = \sum\limits_i (\lambda |h_i| - log \frac{\lambda}{2}) = \Omega (h) + const

Image 0

0

1

Updated 2026-06-26

Tags

Data Science