Skip to main content
QUICK REVIEW

[Paper Review] Denoising Masked AutoEncoders Help Robust Classification

Quanlin Wu, Hang Ye|arXiv (Cornell University)|Oct 10, 2022
Image and Signal Denoising MethodsComputer Science5 citations
TL;DR

This paper proposes Denoising Masked AutoEncoders (DMAE), a self-supervised method that pre-trains vision transformers by corrupting images with Gaussian noise and patch masking, then reconstructing the original. The pre-trained encoder achieves state-of-the-art certified robustness on ImageNet with significantly fewer parameters than prior methods, outperforming even larger models in robust accuracy under adversarial attacks.

ABSTRACT

In this paper, we propose a new self-supervised method, which is called Denoising Masked AutoEncoders (DMAE), for learning certified robust classifiers of images. In DMAE, we corrupt each image by adding Gaussian noises to each pixel value and randomly masking several patches. A Transformer-based encoder-decoder model is then trained to reconstruct the original image from the corrupted one. In this learning paradigm, the encoder will learn to capture relevant semantics for the downstream tasks, which is also robust to Gaussian additive noises. We show that the pre-trained encoder can naturally be used as the base classifier in Gaussian smoothed models, where we can analytically compute the certified radius for any data point. Although the proposed method is simple, it yields significant performance improvement in downstream classification tasks. We show that the DMAE ViT-Base model, which just uses 1/10 parameters of the model developed in recent work arXiv:2206.10550, achieves competitive or better certified accuracy in various settings. The DMAE ViT-Large model significantly surpasses all previous results, establishing a new state-of-the-art on ImageNet dataset. We further demonstrate that the pre-trained model has good transferability to the CIFAR-10 dataset, suggesting its wide adaptability. Models and code are available at https://github.com/quanlin-wu/dmae.

Motivation & Objective

  • To develop a self-supervised pre-training method that enhances robustness for certified adversarial defense in image classification.
  • To address the limitation of prior two-stage models requiring large parameter counts and separate training for denoising and classification.
  • To demonstrate that a single, compact vision transformer can learn robust, transferable representations through a unified pre-training objective.
  • To achieve state-of-the-art certified accuracy on ImageNet using significantly fewer parameters than existing methods.

Proposed method

  • Corrupt input images by adding Gaussian noise to each pixel and randomly masking patches, creating a noisy, partially obscured input.
  • Train a vision Transformer encoder-decoder model to reconstruct the original clean image from the corrupted input, using a masked autoencoding objective with denoising supervision.
  • Use the pre-trained encoder as the base classifier in a Gaussian smoothed model, enabling analytical certification of robustness via expectation over noise-corrupted inputs.
  • Fine-tune the encoder on ImageNet using standard cross-entropy loss or consistency regularization to improve downstream robust accuracy.
  • Leverage the model's inherent robustness to noise and masked patches to improve certified robustness without additional adversarial data.
  • Pre-train on ImageNet without labels, then adapt to downstream tasks with minimal fine-tuning, demonstrating strong transferability.

Experimental results

Research questions

  • RQ1Can a single, compact vision Transformer learn robust and semantically meaningful representations through a unified self-supervised pre-training objective?
  • RQ2Does pre-training with both noise corruption and patch masking lead to better certified robustness than standard masked autoencoding alone?
  • RQ3Can a smaller model achieve state-of-the-art certified accuracy on ImageNet compared to larger, two-stage models?
  • RQ4How does the length of pre-training affect downstream certified robustness in the Gaussian smoothing framework?
  • RQ5To what extent can the pre-trained DMAE encoder be transferred to other datasets like CIFAR-10?

Key findings

  • The DMAE ViT-Base model (87M parameters) achieves competitive or better certified accuracy than the model in Carlini et al. (2022), which uses 10× more parameters.
  • The DMAE ViT-Large model (304M parameters) establishes a new state-of-the-art on ImageNet, surpassing all prior results in certified accuracy across all tested $σ$ and $r$ settings.
  • The 1100-epoch pre-trained model consistently outperforms the 700-epoch version, demonstrating that longer pre-training improves downstream robustness.
  • Fine-tuning with consistency regularization (CR) yields up to 5.7% improvement in certified accuracy at $r=3.0$ compared to standard training (RS), showing strong compatibility with existing defense methods.
  • The pre-trained DMAE model shows strong transferability, achieving significant performance gains on CIFAR-10 when fine-tuned, indicating broad applicability beyond ImageNet.
  • Even under high noise levels ($\sigma=1.0$), the DMAE model maintains strong performance, while MAE fails to generalize, proving its enhanced robustness to additive noise.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.