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 receives a corrupted input but is trained to reconstruct the original clean data. Because the input has been perturbed, simply copying it cannot minimize the reconstruction loss; the model must learn to remove the corruption. section 7.4

Adding noise can make a wider hidden representation robust: the treatment describes using a hidden dimension D′ greater than the input dimension D. Noise that resembles real-world corruption can also make denoising useful in applications such as fingerprint recognition and OCR. section 7.4 section 7.4.1

Two ways to corrupt inputs are demonstrated:

  • Add Gaussian noise only during training, leaving inputs unperturbed at evaluation. section 7.4.1
  • Use dropout to zero input values and apply dropout in the encoder and decoder; choosing a Gaussian noise level can be cumbersome. section 7.4.1

Sequence-to-sequence as an analogy

For translation, English can be viewed as the noisy input and French as the clean output. An encoder RNN represents the input and a decoder RNN produces the output; the sequences may differ in content and length. The encoder’s final hidden state must carry the information needed by the decoder, making this a challenging learning problem. section 11.1 section 11.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.

Fingerprint images illustrate adding realistic corruption before reconstruction, with the goal of reducing errors in fingerprint processing. section 7.4

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

How deep it goes
Defines corrupted-input training and demonstrates Gaussian-noise and dropout implementations, including their training and evaluation behavior.
Examples
Uses reconstructed handwritten digits, fingerprint images, and English-to-French translation to illustrate denoising.
What it assumes
Assumes an existing autoencoder and training setup, then demonstrates adding corruption before the encoder.
What you can do after
Apply it via PyTorch by adding Gaussian-noise or dropout layers while training against clean reconstruction targets.
How it connects
Connects autoencoders to dropout, recurrent neural networks, and sequence-to-sequence translation.

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.