Reply to Reviewer hjSQ (part 1)
We thank the Reviewer for the detailed feedback. In the following we address the weaknesses and questions raised in the review.
**Q: My major concern is the limited novelty, as the explored loss functions are not new. Although JS divergence, masked CE loss, and masked spherical loss have not been commonly used in the context of segmentation attacks, in my view, this appears to be a simple 'plug and play' of loss functions**
In the discussion around the usage of different losses, we think we have clear methodological contributions: in fact, we analyze why the standard cross-entropy loss, one of the standard losses for attacks for image classification, does not work well for semantic segmentation. At the same time we show that the Jensen-Shannon divergence, a loss not used for adversarial attacks before, has instead the properties needed for semantic segmentation (the gradient vanishes as the pixel is maximally misclassified) and then does not require any masking. Thus, while the losses themselves are not novel, there is a clear novelty in our analysis and in the justification why these losses are good for semantic segmentation.
Moreover, we uncover the complementarity of different losses, which is key, together with the improvements in the optimization algorithm, for our ensemble attack SEA to outperform the existing SOTA attacks by more than 17% (Table 1, PIR-AT model, evaluation at 12/255).
**Q: The conducted attacks are white-box, and the absence of black-box evaluation is a significant limitation**
To extend the evaluation to black-box methods, we tried to adapt Square Attack [(Andriushchenko et al., 2020)](https://arxiv.org/abs/1912.00049), a SOTA score-based black-box attack for image classification, by using its random search-based algorithm to optimize our JS loss. However, the resulting attack has poor performance even on clean models. We hypothesize that the localized updates in Square Attack are not sufficiently effective to optimize pixelwise losses. Similarly we tested using gradient estimation via finite difference [(Ilyas et al., 2018)](https://arxiv.org/abs/1804.08598), but could not get performance close to that of white-box methods. We showed in the paper that balancing gradients of different pixels is already difficult with exact gradients, then we argue that having only approximated gradients is expected to make optimization even more challenging. This shows that finding an effective black-box attack for semantic segmentation requires designing task-specific algorithms, which could be the topic of an independent paper.
As additional black-box evaluation, we tested transfer attacks from less robust models to the PIR-AT. In particular, we run APGD on the Masked-CE loss on Segmenter models obtained with either clean training or AT (5 steps) on ADE-20k. We then transfer the found perturbations to our PIR-AT (5 steps, 128 epochs), and report robust accuracy and mIoU in Table A, together with the results of the white-box SEA on the same model (from Table 3 of the paper) as baseline. We observe that the transfer attacks are far from the performance of SEA, which further supports the robustness of the PIR-AT models. We are happy to add this evaluation (potentially expanded to include more models) in the revision of the paper.
**Table A:** Robust average accuracy and mIoU given by transfer attacks on ADE-20k dataset. In boldface the white-box baseline by SEA.
|source model | target model | 0 | | 4/255 | | 8/255 | | 12/255 | |
|:--------------|:-----------|-----------:|--------:|-------:|--------:|-------:|-------:|--------:|-------:|
| | |aAcc | (mIou)| aAcc | (mIou)| aAcc | (mIou)|aAcc | (mIoU)|
| Segmenter clean | Segmenter PIR-AT | 69.1 | (28.7) | 68.8 | (28.3) | 68.6 | (28.0)| 68.3 | (27.8) |
| Segmenter AT | Segmenter PIR-AT | 69.1 | (28.7) | 66.3 | (26.0) | 63.1 | (23.8) | 57.4 | (19.9) |
| **Segmenter PIR-AT** | **Segmenter PIR-AT** | 69.1 | (28.7) | 54.5 | (16.1) | 32.8 | (7.1) | 8.6 | (1.8) |