Skip to main content
QUICK REVIEW

[Paper Review] Effects of Loss Functions And Target Representations on Adversarial Robustness

Sean Saito, Sujoy Roy|arXiv (Cornell University)|Dec 1, 2018
Adversarial Robustness in Machine LearningComputer Science41 references6 citations
TL;DR

This paper proposes training neural networks with mean-squared error (MSE) loss and codeword-based target representations instead of standard cross-entropy and one-hot encoding. The modified model achieves up to 98.7% robust accuracy against untargeted attacks and reduces targeted attack success rates by up to 99.8%, with significantly smaller Lipschitz bounds, demonstrating enhanced robustness even against attacks tailored to the modification.

ABSTRACT

Understanding and evaluating the robustness of neural networks under adversarial settings is a subject of growing interest. Attacks proposed in the literature usually work with models trained to minimize cross-entropy loss and output softmax probabilities. In this work, we present interesting experimental results that suggest the importance of considering other loss functions and target representations, specifically, (1) training on mean-squared error and (2) representing targets as codewords generated from a random codebook. We evaluate the robustness of neural networks that implement these proposed modifications using existing attacks, showing an increase in accuracy against untargeted attacks of up to 98.7\% and a decrease of targeted attack success rates of up to 99.8\%. Our model demonstrates more robustness compared to its conventional counterpart even against attacks that are tailored to our modifications. Furthermore, we find that the parameters of our modified model have significantly smaller Lipschitz bounds, an important measure correlated with a model's sensitivity to adversarial perturbations.

Motivation & Objective

  • To investigate whether non-conventional training objectives and target representations improve adversarial robustness.
  • To evaluate robustness under diverse attack scenarios, including white-box and transfer attacks.
  • To analyze the relationship between model parameters and robustness using Lipschitz bounds.
  • To develop a targeted attack tailored to the proposed modifications to test their resilience.

Proposed method

  • Train models using mean-squared error (MSE) loss between tanh-activated outputs and codewords from a random codebook, replacing standard cross-entropy and one-hot targets.
  • Generate codewords via random codebook sampling to represent class labels, avoiding one-hot encoding.
  • Apply standard adversarial attacks (FGSM, BIM, MIM, L-BFGS, CWL2) to evaluate robustness under untargeted and targeted settings.
  • Design a modified CWL2 attack that accounts for the new loss and target representation to test model resilience.
  • Compute upper Lipschitz bounds of convolutional layer weights to correlate parameter sensitivity with robustness.
  • Compare model performance across datasets (CIFAR-10, MNIST, Fashion-MNIST) under varying threat models.

Experimental results

Research questions

  • RQ1Does replacing cross-entropy loss with mean-squared error improve adversarial robustness in image classification models?
  • RQ2To what extent does using random codewords instead of one-hot vectors enhance robustness against adversarial attacks?
  • RQ3How does the modified model perform against attacks specifically tailored to its architecture and training objective?
  • RQ4Can spectral analysis via Lipschitz bounds explain the observed robustness improvements?
  • RQ5Does the combination of MSE loss and codeword targets maintain robustness under transfer-based black-box attacks?

Key findings

  • The modified model achieved up to 98.7% accuracy against untargeted attacks, significantly outperforming the conventional cross-entropy baseline.
  • Targeted attack success rates were reduced by up to 99.8% on the modified model compared to the standard one.
  • Even when attacked with a modified CWL2 attack tailored to the new loss and target format, the model maintained a 28.5% lower success rate than the baseline.
  • The R:TANH:MSE model required substantially larger perturbations (e.g., ε = 0.35 vs. ε = 0.03) to achieve 100% attack success, indicating higher robustness.
  • Convolutional layer weights in the MSE-trained model had upper Lipschitz bounds up to three times smaller than those in the cross-entropy model, supporting the hypothesis of reduced sensitivity to perturbations.
  • Visualizations confirmed that adversarial examples on the modified model were less perceptible and required larger perturbations to misclassify, even under strong attacks like MIM with ε = 0.1.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.