NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Test-Time Defense Against Adversarial Attacks via Stochastic Resonance of Latent Ensembles

DONG LAO, Yuxiang Zhang, Haniyeh E Oskouie, Yangchao Wu, Alex Wong, Stefano Soatto

NeurIPS page · OpenReview · Open on the map

Category: AI Safety, Security & Alignment › Adversarial Transferability · Type: new method · Keywords: adversarial defense, stochastic resonance, robustness, image classification, dense prediction

Areas: Safety & Security › Generative Model Integrity › Perception Attacks and Defenses

Summary

The paper introduces a training-free, architecture-agnostic test-time defense that uses stochastic resonance of latent ensembles to recover accuracy lost to adversarial attacks across image classification and dense prediction tasks.

Explained to a 5-year-old

Computers sometimes get confused by tricky pictures made to fool them. The paper finds a way to help computers ignore those tricks without changing how they work. It does this by adding tiny shakes to the picture and then looking at many versions of it together. This helps the computer see the real picture clearly even when the picture is messed up. The result is that the computer stays accurate and safe in many different tasks.

Explained to a 5-year-old, longer

Sometimes people make pictures that look normal but are actually meant to trick computers. When a computer sees these tricks, it might say the picture is something it’s not. The paper’s idea is to help the computer not get fooled without having to teach it new things. It does this by adding very small moves to the picture, like a tiny shake. Then the computer looks at many slightly different versions of the picture at the same time. By comparing all these versions, the computer can figure out what the real picture should be. This trick is like when you close one eye and then the other to see depth. It works for many kinds of pictures, like those used for recognizing objects or measuring distances. It also helps when the computer needs to understand both pictures and words together. The best part is that you don’t need to change the computer’s training or its structure. This makes the defense useful for many different computer systems. Overall, the method makes computers more robust and trustworthy when facing sneaky inputs.

For a technical reader

The paper presents a defense that can be applied at inference time to protect models from adversarial attacks without any training. It works by adding tiny translational perturbations to the input image, aligning the resulting feature embeddings, and aggregating them before reconstructing the original output. This stochastic resonance technique preserves information that many smoothing-based defenses discard, making it more effective across tasks. The method is generic: it can be dropped into existing models of any architecture and works against various attack types. Empirically, it recovers a large portion of the accuracy loss-up to 68% on image classification and similar gains on depth, flow, and vision-language tasks.

Problem

Adversarial attacks can cause models to misclassify inputs, and many existing defenses reduce accuracy or lose useful information. There is a need for a robust defense that can recover lost accuracy without requiring training or architecture changes.

Method

The approach adds small translational perturbations to the input, aligns the transformed feature embeddings, and aggregates them before reconstructing the original image. This leverages stochastic resonance to enhance robustness while preserving information, and can be applied without extra network modules or fine-tuning.

Results

The approach recovers up to 68.1% of accuracy loss on image classification, 71.9% on stereo matching (MAE), 29.2% on optical flow (EPE), 68.3% on depth estimation (SqRel), and 83.8% on vision-language alignment (cosine similarity).

Contributions

It provides a generic, training-free, architecture-agnostic test-time defense that works across image classification and dense prediction tasks, and it is the first defense applicable to vision-language alignment. The method leverages stochastic resonance of latent ensembles to improve robustness without sacrificing information.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction