What it does
An autoencoder is trained to reproduce its own input through a narrow bottleneck. The encoder must keep only what matters to rebuild the input, so the code becomes a compact summary; the decoder learns to undo the compression. Training on clean targets from noisy inputs gives a denoiser, and a large reconstruction error on new data can flag anomalies. The encoder half is often reused on its own as a feature extractor, and many segmentation and restoration networks follow the same shrink-then-grow shape.
Formula
z = fenc(x), x̂ = fdec(z)loss = ‖x − x̂‖2Shapes and parameters
- Shapes
- Input [N, 784] → code [N, 16] → reconstruction [N, 784].
- Parameters
- Sum of the encoder and decoder layers. The example has 100,480 + 2,064 + 2,176 + 101,136 = 205,856.
- Used for
- Denoising, compression, anomaly scoring, and as the template for U-Nets and VAEs.
In WeightSpace
No plain autoencoder is in the WeightSpace catalog today. The encoder–decoder image models (saliency, matting, segmentation) share its shape and are edited at their final output bias.
Models built as an Autoencoder
No model in WeightSpace follows this pattern yet; it is here as a reference.