Is It Time to Redefine the Classification Task for Deep Learning Systems?

Keji Han, Yun Li, Songcan ChenAML @ ICML 2021

TL;DR

This paper argues that the vulnerability of deep learning systems to adversarial attacks stems not just from the model itself, but also from the classification task it performs. They introduce an "interval-label classification" task, where outputs fall into predefined, non-overlapping intervals rather than discrete classes. Experiments show this new task formulation significantly improves robustness against adversarial attacks while maintaining accuracy.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are notoriously susceptible to adversarial examples – subtly perturbed inputs that cause misclassification, even though the perturbations are imperceptible to humans. While much research focuses on defending the model (e.g., through architectural changes or robust training), this paper posits that the learning task itself is a critical, yet often overlooked, source of vulnerability. The authors argue that focusing solely on the model's robustness might be insufficient, and that redefining the classification task could offer a more fundamental solution. They aim to demonstrate that a different way of framing the classification problem can inherently lead to more robust deep learning systems.

Methods

The core innovation is the introduction of the interval-label classification task. Instead of traditional classification where an input is assigned to one of several discrete classes (hard labels) or a probability distribution over classes (soft labels), this new task assigns an input to a predefined, non-overlapping interval.

Here's how it works:

  • Interval-label Classifier: The DNN's output layer is modified to produce a single scalar value.
  • Label Encoding: Existing "hard labels" from datasets are transformed into these interval labels. This involves defining interval lengths and gaps between them.
  • Label Decoding: The scalar output from the DNN is mapped back to a human-interpretable label. If the output doesn't fall into any defined interval, it's classified as "None" or an anomaly.
  • Loss Function: A new loss function is proposed that penalizes deviations from the target interval, specifically focusing on the distance between the output and the interval's lower and upper bounds.

The authors also propose a specific loss function for this task: $L(B(X,Y'); \theta) = ||\tau(M_L(Y) – I(X))+\tau(I(X) – M_U(Y)|| _2$, where $I(X)$ is the classifier's output, $M_L(Y)$ and $M_U(Y)$ are the lower and upper bounds of the target interval for label $Y$, and $\tau(\cdot)$ is the ReLU activation function.

Datasets

The paper evaluates its approach on two standard datasets:

  • MNIST: A dataset of handwritten digits.
  • ImageNet (subset): A large-scale dataset of images across many categories. For ImageNet, the authors selected the first 10 categories to manage complexity.

Key Insights and Ideas

  • Robustness is a System Property: The paper's central thesis is that adversarial robustness is not solely a property of the deep learning model, but of the entire learning system, including the task definition.
  • Learning Task as a Vulnerability Source: The authors experimentally show that the learning task itself contributes to vulnerability, and that redefining it can mitigate this.
  • Interval Labels Offer Inherent Robustness: By framing classification as mapping to intervals, the system becomes less sensitive to small perturbations. If an example is correctly classified, its loss can be zero, making it harder for adversaries to find useful gradients.
  • Alleviating the Accuracy-Robustness Trade-off: Traditional methods often face a dilemma where improving robustness degrades accuracy. The interval-label approach appears to alleviate this, showing improved robustness while retaining accuracy.
  • Adversarial Transferability is Limited: Adversarial examples generated for one interval-label task are not easily transferable to another with different interval parameters, offering a potential defense against cross-task attacks.

Key Results

  • Improved Robustness: Tables 1 and 2 demonstrate significantly lower attack success rates for the interval-label classification task compared to traditional classification across various attack types (FGSM, PGD) and models (NN, AlexNet, ResNet) on both MNIST and ImageNet. For instance, on MNIST with PGD attacks, the interval-label task achieved near-zero attack success rates (e.g., 0.001-0.015) compared to much higher rates for traditional methods (e.g., 0.666-1.000).
  • Accuracy Maintained: While not explicitly quantified with a single number, the paper states that the interval-label classification task retains accuracy while improving robustness.
  • Feature Visualization: t-SNE visualizations (Figure 2) show that interval-label classification leads to more tightly clustered features for each class, with less overlap between clusters, suggesting better feature representation.

Limitations and Future Work

  • Convergence Speed: The paper acknowledges that the interval-label classification task converges slower than traditional classification tasks.
  • Future Work: The authors suggest exploring more efficient interval-label classification deep learning systems. They also hint at the potential for this approach to address the robustness-accuracy trade-off more effectively. The limited transferability of adversarial examples between interval-label tasks with different parameters also suggests avenues for developing more robust deployment strategies.

Summary updated

BibTeX
@inproceedings{han2021is,
  author = {Keji Han and Yun Li and Songcan Chen},
  title = {{Is It Time to Redefine the Classification Task for Deep Learning Systems?}},
  booktitle = {AML @ ICML},
  year = {2021},
  url = {https://openreview.net/forum?id=uK2CQwaV77},
}
Figure