liveBook · Manning

Denoising autoencoder

As explained in Inside Deep Learning: Math, Algorithms, Models

An autoencoder trained to reconstruct clean data from corrupted input, used here as the analogy for sequence-to-sequence learning over sequences.

A denoising autoencoder reconstructs clean data from a corrupted version. Noise enters the encoder, while the reconstruction loss compares the decoder output with the original clean input, preventing simple copying and encouraging robust representations. section 7.4

A practical implementation follows this pattern:

  • Generate realistic perturbations from clean training examples; better-matched noise generally produces more useful denoising. section 7.4
  • Add Gaussian noise only during training with an AdditiveGaussNoise layer, then leave inputs unchanged during evaluation. section 7.4.1
  • Use dropout as an alternative perturbation, typically dropping 5–20% of input values and retaining the usual reconstruction training loop. section 7.4.1

Digit reconstruction and real-world noise

A widened autoencoder reconstructs handwritten digits from clean, Gaussian-corrupted, or dropout-corrupted inputs. It preserves most digit style but can lose small flourishes, such as details on the 4 and 5. The same strategy supports fingerprint recognition and OCR when synthetic noise resembles camera, document, lighting, or shadow damage. section 7.4 section 7.4.1

Figure 7.5 The denoising autoencoder processes applied to fingerprint images. This used special software that generates hyper-realistic fingerprint images, with the goal of removing that noise to make fingerprint processing less error prone. You can still get good results with simpler and unrealistic noise.

Shows the complete pipeline from clean fingerprint data through realistic corruption to clean reconstruction. section 7.4

The same analogy extends from images to sequence-to-sequence learning: an encoder RNN maps an input sequence to a representation, and a decoder RNN produces a related clean sequence that may differ in content and length. section 11.1

How Inside Deep Learning: Math, Algorithms, Models covers it

How deep it goes
Explains the corrupted-input and clean-target objective, then implements Gaussian-noise and dropout variants without deriving optimization internals.
Examples
Uses handwritten digits, fingerprint images, Gaussian noise, dropout, OCR damage, lighting changes, shadows, and document stains.
What it assumes
Assumes familiarity with autoencoder structure, reconstruction loss, neural-network training, and basic PyTorch modules.
What you can do after
Build it from scratch with PyTorch noise layers, reconstruction training, and clean-versus-corrupted evaluation inputs.
How it connects
Connects autoencoders with self-supervised learning, sequence-to-sequence learning, RNNs, OCR, and robust representation learning.

Also explained in

Compare how 2 books explain denoising autoencoder →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Inside Deep Learning: Math, Algorithms, Models. The section links point to the parts of the book it draws on.