- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 2
Read review
Summary
This paper proposes a training-free test-time defense against adversarial attacks based on stochastic resonance: small image translations are applied, transformed latent embeddings are inverse-aligned, and the resulting features are averaged before prediction. The intended advantage is to avoid direct input or feature filtering, thereby reducing information loss while retaining compatibility with existing architectures. The paper evaluates the method across classification, stereo matching, optical flow, monocular depth estimation, and vision-language alignment, reporting recovered performance under several attacks.
Strengths and weaknesses
Strengths:
-
The latent stochastic-resonance framing is interesting. The idea of using controlled translations to decorrelate adversarial effects in latent space is more conceptually appealing than another feature-pruning or smoothing heuristic.
-
This paper attempts to go beyond the standard CIFAR or ImageNet classification setting and evaluates dense prediction tasks such as stereo matching, optical flow, and monocular depth estimation. This is valuable because test-time adversarial defense for dense prediction is underexplored compared with classification.
-
The method is simple to implement. The fact that it can be added on top of adversarially trained models without retraining is practically appealing.
Weaknesses:
-
The paper makes several strong claims: such as being state-of-the-art, attack-agnostic, architecture-agnostic, and the first generic test-time defense for dense prediction. But these claims are not yet sufficiently justified. The comparison to prior work is somewhat selective, and the paper tends to characterize existing defenses as simple filtering or smoothing methods, which oversimplifies a diverse literature including adversarial training, purification, randomized smoothing, and test-time adaptation. For example, as to CLIP, there are already test-time purification works such as [1,2], this paper should compare the results with these works.
-
The methodology is conceptually interesting but lacks mathematical rigor. The notation mixes continuous images, discrete lattices, feature maps, global embeddings, and group actions without sufficiently precise definitions. The push-forward and inverse-alignment operations are plausible for spatial feature maps, but it is unclear how they should be rigorously interpreted for classification embeddings, pooled CLIP features, or MLP-style architectures. The theoretical argument that stochastic resonance reduces the effective perturbation by a factor of () relies on a decorrelation assumption across transformed perturbation terms, but this assumption is not guaranteed and may be explicitly violated by an adaptive attacker.
-
The empirical evaluation is broad but not yet rigorous enough for a strong adversarial defense claim. The classification experiments need stronger adaptive evaluations, such as EOT/APGD through the entire defense pipeline, multiple restarts, and comparisons with recent robust baselines and purification methods. For dense prediction, the experiments are promising but insufficiently controlled: stereo, optical flow, and depth estimation are evaluated under limited attack settings, and the baselines are relatively weak or not clearly state-of-the-art.
-
For several dense prediction tasks, the authors evaluate the proposed defense mainly using standard PGD or FGSM attacks. However, adversarial attacks on dense prediction models differ substantially from those on image classification models, due to the structured and spatially correlated nature of the outputs. It remains unclear whether the proposed method is effective against stronger task-specific adversaries designed for dense prediction, such as [3]. The authors should provide additional evaluations under these stronger attacks to substantiate the claimed generality of the defense.
[1] Clip is strong enough to fight back: Test-time counterattacks towards zero-shot adversarial robustness of clip. CVPR'25
[2] Tapt: Test-time adversarial prompt tuning for robust inference in vision-language models. CVPR'25
[3] CosPGD: an efficient white-box adversarial attack for pixel-wise prediction tasks. ICML'24
Questions
-
Can the authors provide a full adaptive evaluation using EOT/APGD through the entire stochastic-resonance pipeline, with multiple restarts, for classification and all dense prediction tasks?
-
How sensitive is the method to padding mode, boundary cropping, feature-map resolution, and high-frequency image content such as thin structures, small objects, text, or fine depth discontinuities?
-
How would the proposed defense perform on semantic segmentation, where several adversarial attacks have been specifically tailored to exploit pixel-level predictions and spatial structures [4,5,6]?
[4] Segpgd: An effective and efficient adversarial attack for evaluating and boosting segmentation robustness. ECCV'22
[5] Rp-pgd: Boosting segmentation robustness with a region-and-prototype based adversarial attack. AAAI'25
[6] Segtrans: Transferable adversarial examples for segmentation models. TMM'26
Limitations
Yes
Paper formatting concerns
None
Final justification
The authors provided clarifications and additional experiments during the rebuttal, including a more careful comparison with CSR. After reviewing these responses, I acknowledge that my initial concern regarding the claimed state-of-the-art performance across all evaluated tasks was based on a misunderstanding of the claim’s scope. Considering the quality of the rebuttal and the clarifications provided, I have raised my score to 4 (Borderline Accept).
My remaining concern is the strength of the robustness evaluation. In particular, PGD and FGSM alone may not constitute sufficiently strong adversaries for evaluating a defense method, especially in dense prediction tasks. This limitation prevents me from assigning a clear Accept rating.
We thank the reviewer for recognizing the paper's value, specifically, the value of extending test-time defense to dense prediction. The reviewer raises several important issues. We address them below and provide the additional experiments requested.
W1. Scope of the claims and related work
We will clarify our claims. “Architecture-agnostic” means that SR requires no architecture-specific training or additional learned module, and can be applied as long as a model contains an image-encoding stage (which applies to all vision architectures). “Attack-agnostic” means that the defense does not require prior knowledge of an attack.
Our state-of-the-art claim is not based on a selective comparison. Table 1 compares SR with existing SOTA methods under matched protocols and across multiple settings, including fully adaptive attacks. To our knowledge, we are also the first generic test-time defense evaluated across multiple dense-prediction tasks, including stereo matching, optical flow, monocular depth estimation, and semantic segmentation as requested by the reviewer.
The reviewer additionally identifies methods developed specifically for CLIP. As requested, although the scope differs from our generic encoder-side defense, we directly evaluated TTC using its public CLIP+ImageNet protocol:
SR remains effective even when added to a specialized CLIP defense. We will cite and discuss. We also agree that existing methods have distinct families with different assumptions. We will revise the discussion accordingly.
W2. Mathematical presentation and different architectures
SR is applied before spatial information is discarded. For classification, unless specified, aggregation is performed on spatial features/tokens before the final prediction head. For ViT, we reshape the spatial tokens into a two-dimensional grid, lift the feature map to the input-pixel lattice, apply the inverse pixel translation, aggregate the aligned features, and pool back to token resolution. This procedure is illustrated in Figure 1. We apologize that the corresponding explanation was unintentionally omitted from the text during editing. We will add this explanation.
For the theoretic section, the transformed perturbations gin(x) are not assumed to be independent. The relevant quantities are their downstream inverse-aligned feature responses, vi(x)=gi,∗−1Jgix[gin(x)].
An adaptive attacker may attempt to align these responses. This is precisely why the analysis in Table 6 uses adaptive PGD-100, where the attacker optimizes through every SR branch. The measured pairwise correlations show that full adaptation does not collapse the aligned perturbation responses into a single common direction.
Please refer to the response to Reviewer Zu7P for mathematical notations we will revise. We will revise the informal “decorrelation” wording with an explicit formalization. We clarify that the first-order expansion is explanatory, not for certified robustness, and none of the empirical results depend on the linear approximation. We will revise the paper to make this distinction explicit.
W3/Q1. Adaptive evaluation, EOT, APGD, and restarts
There may be a misunderstanding regarding EOT. Our main implementation evaluates the complete deterministic translation grid rather than sampling random transformations. There is therefore no hidden inference randomness over which EOT must estimate an expectation.
The “Worst-Case” setting in Table 1 is fully adaptive. The attacker has access to the model weights, every SR transformation and branch, inverse alignment, latent aggregation, and the final prediction head, and differentiates through the complete defense. Under adaptive PGD-100, SR achieves 52.39% robust accuracy, compared with 46.37% for the base adversarially trained model. Table 1 also reports AutoAttack, which includes APGD-based attacks and its standard restart configuration. Under the same AT setting, SR achieves 49.78%, compared with 46.41% for FSR. Applying SR to TRADES and MART models further achieves 54.02% and 50.72%, respectively.
For dense prediction, a classification APGD loss cannot be transferred unchanged because the tasks have different structured outputs and task objectives. The appropriate evaluation is therefore to use attacks optimized for the corresponding task, as discussed below.
The statement that the dense-prediction baselines are “not clearly state-of-the-art” is difficult to address without a specific baseline. To our knowledge, SR is the first generic test-time defense evaluated across these tasks under the same protocols. If the reviewer has a specific existing test-time baseline in mind, we would appreciate the reference and will evaluate it as time permits.
W4/Q3. Task-specific attacks and semantic segmentation
There may be a misunderstanding. We do not simply apply a generic classification attack to stereo predictions. For example, we follow the task-specific benchmark introduced by Stereopagnosia, which was designed specifically to attack stereo-matching.
We thank the reviewer for suggesting semantic segmentation. As requested, we additionally evaluated SR on Cityscapes set using CosPGD and SegPGD, with attacks applied directly through the defended pipeline, including an adaptive attack.
mIoU:
Boundary mIoU:
These results show that SR remains effective against attacks specifically designed for structured pixel-wise prediction while preserving clean segmentation and boundary quality. Together with the existing stereo-matching, optical-flow, and monocular-depth experiments, these results provide evidence across four distinct dense-prediction tasks and multiple task-specific objectives. Again, if the reviewer has a specific additional model or test-time baseline in mind, we would appreciate the reference.
Q2. Padding, feature resolution, and fine spatial content
Our original implementation uses zero filling. As requested, we evaluated five boundary treatments under PGD-100 using the same AT setting as Table 1:
Robust accuracy remains within 54.29 to 55.24, showing that the gain is insensitive to the padding convention.
Feature-map resolution is controlled by the aggregation layer. Table 11 evaluates SR after the initial convolution and residual blocks 1 to 3 of ResNet-50, each of which operates at a different feature resolution. Under PGD with ϵ=8/255, Top-1 accuracy improves from 8.51 without defense to 16.91, 22.44, 24.88, and 21.76, respectively. Thus, every evaluated resolution improves over the undefended model, with the strongest result at residual block 2.
SR also does not spatially filter the input. Table 10 shows that clean ImageNet and CIFAR-10 accuracy is preserved or slightly improved. The new Cityscapes results provide a direct evaluation of fine spatial structure: clean boundary mIoU is nearly unchanged, while boundary robustness improves consistently under both CosPGD and SegPGD.
Remarks
We hope these additional results and clarifications address the reviewer’s concerns. We emphasize that the issues identified above are primarily presentation and positioning issues that can be addressed directly in the revision, rather than limitations of the method or evaluation. We would appreciate further discussion and we will revise the paper accordingly and hope the reviewer will reconsider the assessment in light of these clarifications and additional results.