Reproduce “Robustness to corruption in pre-trained Bayesian neural networks” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Xi Wang, Laurence Aitchison

ShiftMatch adjusts test-batch features in a pretrained Bayesian neural network to match training feature means and spatial covariance, without changing learned weights or retraining. On CIFAR-10-C, which tests 16 corruption types at five severity levels, it improves pretrained HMC accuracy by 24.6% at severity 5 over plain HMC. It requires training statistics and corrupted test batches.

Key insights

  • Reinterpreting corruption robustness corrections as training-data-dependent likelihoods allows for direct application to existing, expensive pre-trained Bayesian samples, bypassing retraining.
  • Matching spatial feature covariances across multiple network layers, rather than just the input layer or simple channel-wise statistics, is crucial for correcting complex, spatially extended corruptions.
  • ShiftMatch theoretically provides perfect removal of stationary linear corruptions like Gaussian blur, given infinite samples, offering a strong basis for its corrective power.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.