Negative Learning to Prevent Undesirable Misclassification

Kazuki Egashira, Atsuyuki Miyai, Qing Yu, Go Irie, Kiyoharu AizawaIEICE Trans. Information and Systems 2024 · DOI

Introduction

In standard machine learning, the goal is typically to maximize accuracy. However, this objective treats all misclassifications as equally problematic. In real-world applications, certain errors are far more damaging than others—for instance, misclassifying a person as an animal is significantly worse than misclassifying one breed of dog as another. This paper addresses the challenge of "Undesirable Classes" (UCs), proposing a framework to suppress specific offensive or dangerous errors without compromising overall model performance.

The distinction between typical misclassifications and "undesirable" ones.

The Problem: Blind Optimization

Deep Neural Networks (DNNs) usually rely on the Cross-Entropy (CE) loss function. While effective for accuracy, CE is "blind" to the semantic nature of errors. It only cares that the predicted class matches the ground truth. Previous attempts to mitigate offensive outputs often involved removing problematic classes entirely. However, a label like "gorilla" is only offensive when applied to a human; it remains a valid and necessary label for actual gorillas. The authors argue that "undesirability" is a contextual relationship between the correct class and the misclassified class.

Methodology: Positive and Negative Learning

The proposed solution combines two learning strategies into a unified loss function:

  1. Positive Learning (PL): This is the standard approach using Cross-Entropy loss to increase the probability of the correct label.
  2. Negative Learning (NL): Originally used for training with noisy labels, NL focuses on what an input is not. Instead of saying "this is a dog," NL says "this is definitely not a gorilla."

By treating UCs as "complementary labels," the researchers add a regularization term to the training process. The final loss function is defined as: $$\mathcal{L} = \mathcal{L}_{CE} + \lambda \mathcal{L}_{NL}$$ The parameter $\lambda$ allows for tuning the trade-off between general accuracy and the suppression of UCs. Unlike earlier NL methods that might pick a random incorrect class, this framework uses a "soft label" approach to distribute negative pressure across all predefined UCs for a specific category.

Experimental Evaluation

The framework was tested on two computer vision benchmarks with synthetic UC scenarios:

  • CIFAR-100: Classes were grouped into superclasses. UCs were defined either as visually similar classes within the same superclass or as a set of 50 random classes.
  • Flowers102: A fine-grained dataset where 10 or 50 random classes were designated as UCs.

These proxies were used to simulate the difficulty of avoiding specific, context-dependent misclassifications without the ethical hurdles of using real-world discriminatory data.

Key Results and Insights

The experiments demonstrated that explicitly penalizing UCs provides a necessary "extra push" that standard Cross-Entropy lacks. While CE theoretically pushes all incorrect probabilities toward zero, models often converge before specific problematic classes are sufficiently suppressed.

Comparison of Accuracy vs. UC Error for the proposed method, soft labeling, and baseline.

As shown in the results, the Negative Learning approach consistently outperformed "Soft Labeling" (a common alternative that penalizes UCs within the CE framework).

  • Efficiency: On CIFAR-100 (4 UCs), the method reduced the UC error rate to 5.88%, compared to 8.28% for the soft-labeling baseline at similar accuracy levels.
  • Accuracy Trade-off: The NL-based framework maintained higher overall accuracy while achieving lower UC error across almost all test cases.
  • Rank Suppression: Analysis of prediction rankings showed that the method successfully relegated UCs to much lower positions in the model's "top-k" guesses compared to baseline models.

Limitations and Future Directions

The effectiveness of the method scales inversely with the number of UCs. As the number of "forbidden" classes grows (e.g., to 50% of the total classes), the model finds it increasingly difficult to find a safe "middle ground" for misclassifications, leading to a steeper drop in accuracy. Furthermore, the current implementation requires manual definition of UCs. Future research could explore automated methods for identifying inappropriate misclassifications and scaling these techniques to address complex real-world social biases and ethical considerations.

Summary updated

BibTeX
@article{egashira2024negative,
  author = {Kazuki Egashira and Atsuyuki Miyai and Qing Yu and Go Irie and Kiyoharu Aizawa},
  title = {{Negative Learning to Prevent Undesirable Misclassification}},
  journal = {IEICE Trans. Information and Systems},
  year = {2024},
  doi = {10.1587/transinf.2023edl8056},
}
Figure