Deep networks for robust visual recognition

Yichuan Tang, Chris EliasmithICML 2010

In the early 2010s, Deep Belief Networks (DBNs) were the darlings of the machine learning world, proving remarkably adept at modeling complex visual data. However, they had a glass jaw: they were notoriously fragile when faced with noise or occlusions that weren't present during training. In this paper from ICML 2010, Yichuan Tang and Chris Eliasmith introduce a two-pronged strategy to toughen up these networks, drawing inspiration from the human visual system.

TL;DR

The authors improve the robustness of Deep Belief Networks (DBNs) by enforcing sparse, local connectivity in the first layer and implementing an iterative "probabilistic denoising" algorithm. This approach allows the network to identify and "fill in" noisy or occluded data, drastically reducing error rates on corrupted images (e.g., from nearly 80% error down to under 4% for certain noise types).

What Problem Does This Paper Address?

Standard DBNs are "globally connected" in their first layer, meaning every hidden unit looks at every pixel in the input image. While this allows for powerful feature learning, it creates a major vulnerability: a small amount of noise or a localized occlusion (like a box covering part of a digit) can affect the activations of all hidden units.

Because these networks model the joint probability of all pixels, "out-of-distribution" noise—stuff the network didn't see during training—leads to low-probability states where the network's classification boundaries are no longer reliable. The authors aim to make DBNs more "graceful" under pressure, similar to how humans can still recognize a face even if part of it is hidden behind a hand.

Examples of MNIST digits subjected to different noise types (clean, border, block, random) and the corresponding high error rates of a standard Deep Belief Network.

To test this robustness, the researchers evaluated their methods using the MNIST dataset of handwritten digits, artificially injecting three types of "out-of-sample" noise:

  • Border: Adding a white border around the digit (which the network expects to be black).
  • Block: Placing a random rectangular occluding block over the digit.
  • Random: Toggling random pixels to white ("salt" noise).

Methods

To combat this fragility, the authors propose two main innovations:

  1. Sparse DBN (sDBN): Instead of global connectivity, they enforce local receptive fields (RFs) in the first layer. For example, a hidden node might only "see" a 7x7 patch of pixels. This ensures that a localized noise source only affects a small subset of hidden nodes, preventing the "corruption" from spreading across the entire representation.
  2. Probabilistic Denoising via Unclamping: They treat denoising as an inference problem.
  3. They train a separate "denoising RBM" that learns the distribution of clean hidden layer activations.
  4. During recognition, if the network detects that certain hidden nodes have "low probability" (calculated via the gradient of the log probability), it unclamps them.
  5. These unclamped nodes are then "filled in" using Gibbs sampling from the denoising RBM, effectively using top-down "beliefs" to override noisy bottom-up inputs.
  6. They also use an attention-like gating signal to attenuate noisy pixels in the input layer based on the generative feedback from the hidden layer.
The proposed network architecture, featuring a standard recognition pathway and a separate denoising RBM (Z) that interacts with the first hidden layer.

Key Insights and Ideas

  • Sparsity as a Defense: While sparsity is often used in CNNs for translation invariance or efficiency, this paper highlights its role in error isolation. Local connectivity acts like a bulkhead in a ship, preventing a leak in one area from sinking the whole vessel.
  • Top-Down Correction: The denoising process mimics the "predictive coding" theories of the human brain. The higher layers have a "belief" about what a digit should look like; if the bottom-up input contradicts this too strongly, the network trusts its internal model to "hallucinate" the correct features.
  • Agnostic to Noise Type: Unlike many denoising methods that require a specific noise model (like Gaussian noise), this "unclamping" approach is agnostic. It simply looks for activations that don't "fit" the learned statistics of clean data.

Key Results

The results are striking, particularly for the combined "Sparse + Denoised" model:

Network Clean Error Border Noise Block Occlusion Random Noise
Standard DBN (28x28) 1.03% 66.14% 33.78% 79.83%
Sparse DBN (7x7 RF) 1.19% 2.46% 21.84% 65.50%
7x7 sDBN + Denoising 1.24% 1.29% 19.09% 3.83%

The most dramatic improvement is in Random Noise, where the error dropped from nearly 80% to under 4%. Furthermore, even the simple addition of sparse connections (sDBN) solved the "Border Noise" problem almost entirely.

Limitations and Future Work

  • Clean Data Trade-off: The authors note that the denoising process slightly increases the error rate on clean images (from 1.03% to 1.24%). This is because the denoising process might "correct" valid but rare features to look more like the "average" digit.
  • Receptive Field Topology: In this work, the receptive fields were chosen randomly. The authors suggest that organizing the hidden layer topographically (so adjacent hidden nodes look at adjacent pixels) could allow for even more sophisticated denoising at higher layers.
  • Computational Cost: The iterative denoising (Gibbs sampling) adds computational overhead during the inference/recognition phase compared to a simple feedforward pass.

Summary updated

BibTeX
@inproceedings{tang2010deep,
  author = {Yichuan Tang and Chris Eliasmith},
  title = {{Deep networks for robust visual recognition}},
  booktitle = {International Conference on Machine Learning},
  year = {2010},
}
Figure