Autoencoder
A neural network trained to compress data into a compact representation and reconstruct it again.
What survives a mosaic’s round trip?
Imagine a model trained to reproduce photographs of mosaic panels. A large teal arch appears in many panels, while hairline cracks are rare. The training target for each example is the original image itself.
- Encode
Transform an input photograph into a latent representation. A narrow bottleneck limits what can pass through, although other autoencoder designs impose constraints in different ways.
- Decode
Turn that representation back into an image. The reconstructed arch may be recognizable even if a fine crack is blurred away.
- Compare
Measure a reconstruction loss between input and output. A low average pixel error can coexist with a lost detail that matters to a conservator.
Is the representation useful beyond reconstruction?
Test it on the intended downstream task. A compact representation that groups similar motifs may help catalogue search. It may be unsuitable for crack inspection if fine defects barely affect the training loss.

What makes reconstruction different from copying?
An unconstrained system can learn an identity mapping with little useful structure. Compression, noise during training or other constraints create pressure to capture recurring features. Their value depends on which information the reader needs to preserve.
Follow the idea
Encoder · Follow the input into its representation.
Decoder · Trace how an output is reconstructed.
Source · Goodfellow, Bengio and Courville on autoencoders
Return to Autoencoder in the A–Z glossary