Token Boosting for Robust Self-Supervised Visual Transformer Pre-training

Tianjiao Li, Lin Geng Foo, Ping Hu, Xindi Shang, Hossein Rahmani, Zehuan Yuan, Jun LiuCVPR 2023

This paper, titled "Token Boosting for Robust Self-Supervised Visual Transformer Pre-training," presents a novel approach to training Vision Transformers (ViTs) when the available unlabeled data is noisy or corrupted—a common reality in field robotics, medical imaging, and remote sensing.

TL;DR

The authors introduce the Token Boosting Module (TBM), a plug-and-play component that allows Vision Transformers to extract clean, robust features even when pre-trained on corrupted data. By leveraging a "Noisier2Noise" statistical approach, TBM enables models to learn denoising representations without ever seeing a clean "ground truth" sample, significantly improving performance on downstream tasks like image classification and action recognition.

What Problem Does This Paper Address?

Self-supervised pre-training, particularly Masked Autoencoding (MAE), has become the standard for training powerful Vision Transformers. In MAE, a model learns by masking parts of an image and trying to reconstruct them. However, this assumes the training data is pristine.

In the real world, data is often "dirty." Images might be blurred by motion or obscured by snow; depth sensors produce jittery, imprecise maps; and skeleton-tracking algorithms often misplace joints. When you pre-train a model on this corrupted data, the MAE process breaks down: the model is forced to reconstruct a corrupted target using a corrupted input. This "garbage in, garbage out" cycle leads to unreliable features that perform poorly when transferred to actual tasks.

Methods

The core innovation is the Token Boosting Module (TBM). It is designed to be inserted between the self-attention layers of a Transformer.

The "Noisier2Noise" Logic

TBM is inspired by the idea that if you have a noisy signal and you add even more noise to it, you can statistically estimate the original clean signal.

  1. Input ($F$): The module receives an unreliable (noisy) feature token.
  2. Synthetic Corruption ($Q$): The module adds a layer of synthetic Gaussian noise to the token, creating a "noisier" version ($I$).
  3. Internal Autoencoder ($g$): A small, three-layer MLP acts as an internal autoencoder, tasked with predicting the original noisy feature ($F$) from the noisier version ($I$).
  4. The Boosted Feature ($\hat{R}$): Using the output of the autoencoder ($\hat{F}$), the module applies a derived statistical formula: $\hat{R} = 2\hat{F} - I$.

Mathematically, the authors prove that if the synthetic noise matches the distribution of the natural noise, this formula yields an unbiased estimate of the clean, "ground truth" feature. To make this work in practice, the module includes learnable scaling parameters ($\alpha$) that allow the model to automatically adjust the synthetic noise to match the real-world corruptions it encounters during training.

Datasets

The authors evaluated TBM across three distinct modalities to prove its versatility:

  • ImageNet-C: A version of the classic ImageNet dataset modified with 15 types of algorithmic corruptions (e.g., motion blur, snow, digital noise).
  • NTU RGB+D (60 & 120): Large-scale 3D skeleton action recognition datasets where joint coordinates often contain sensor-induced noise.
  • Washington RGB-D (WRGBD): A dataset of household objects filmed with depth cameras, which naturally contain measurement errors and perturbations.

Key Insights and Ideas

  • Learning to Clean Without Clean Data: The most significant "aha moment" is that the model doesn't need a single clean image to learn how to denoise. By optimizing the pre-training reconstruction loss, the gradients naturally drive the TBM to become a better feature cleaner.
  • Multi-Level Refinement: The authors found that placing TBMs at multiple depths (bottom, middle, and top layers) is more effective than a single module. This allows the model to boost features using different levels of contextual information.
  • Theoretical Grounding: The paper provides a rigorous linear regression proof showing that using TBM reduces the Mean Squared Error (MSE) during pre-training compared to standard MAE when targets are noisy.

Key Results

TBM consistently outperformed baseline Vision Transformers across all tested scenarios:

  • ImageNet-C: A ViT-Huge model equipped with TBM achieved a 38.6% accuracy in a self-supervised setting, a significant jump from the 35.2% baseline. It showed particularly strong gains on complex corruptions like snow (+3.1%) and motion blur (+3.6%).
  • Skeleton Action Recognition: When added to the state-of-the-art DSTA-Net, TBM improved performance by 6.0% on the NTU60 Cross-Subject benchmark.
  • Depth Classification: On the WRGBD dataset, TBM provided a 1.8% improvement in self-supervised settings and a 3.8% boost in supervised settings.
  • Efficiency: The module only adds about 5% more parameters to the model, making the robustness gains highly cost-effective.

Limitations and Future Work

While TBM is highly effective, the authors note a few areas for growth:

  • Gaussian Assumption: The current theoretical framework assumes noise is Gaussian. While it works empirically on other types of digital corruption, specialized noise distributions might require further tuning.
  • Unseen Corruptions: The current experiments focus on scenarios where the training and testing corruption types are similar. Future work will explore Unsupervised Domain Adaptation (UDA) to see if TBM can help a model adapt to entirely new, unseen types of noise at test time.
  • Dynamic Adaptation: The authors suggest modifying TBM to generate its noise-scaling parameters ($\alpha$) dynamically based on the specific input, rather than learning a static parameter for the whole dataset.

Summary updated

BibTeX
@inproceedings{li2023token,
  author = {Tianjiao Li and Lin Geng Foo and Ping Hu and Xindi Shang and Hossein Rahmani and Zehuan Yuan and Jun Liu},
  title = {{Token Boosting for Robust Self-Supervised Visual Transformer Pre-training}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=cwgUdA9dR3},
}
Figure