Interpreting vulnerabilities of multi-instance learning to adversarial perturbations

Yu-Xuan Zhang, Hua Meng, Xuemei Cao, Zhengchun Zhou, Mei Yang, Avik Ranjan Adhikary

TL;DR

This paper introduces two novel adversarial perturbation methods, MI-CAP and MI-UAP, to probe the vulnerabilities of Multi-Instance Learning (MIL) models. By generating targeted and universal adversarial examples, the authors demonstrate that even state-of-the-art MIL algorithms are susceptible to being fooled, which has critical implications for real-world applications. They also propose a simple defense strategy to mitigate these attacks.

What Problem Does This Paper Address?

Multi-Instance Learning (MIL) is a powerful paradigm for scenarios where labels are associated with entire "bags" of data, rather than individual instances within those bags. This is common in applications like image analysis, video anomaly detection, and drug discovery. However, like many machine learning models, MIL classifiers are known to be vulnerable to adversarial perturbations – small, carefully crafted changes to input data that can cause misclassification. The challenge is that the weak supervision in MIL (labels only at the bag level) makes it difficult to directly apply traditional adversarial attack methods designed for fully supervised learning. This paper aims to bridge this gap by developing and evaluating adversarial attacks specifically tailored for MIL, thereby understanding and quantifying their vulnerability.

Methods

The authors propose two main adversarial perturbation methods:

  • MI-CAP (Multi-Instance Customized Adversarial Perturbation): This method generates a unique, "customized" perturbation for each individual bag. It works by iteratively computing gradients and updating the perturbation to maximize the probability of misclassifying the current bag. This is akin to the "DeepFool" attack but adapted for the MIL setting.
  • MI-UAP (Multi-Instance Universal Adversarial Perturbation): This method builds upon MI-CAP to create a single, "universal" perturbation that can fool multiple bags across a dataset. While this might involve some performance trade-offs compared to customized attacks, it offers significant advantages in terms of storage and generalizability. MI-UAP iteratively refines the universal perturbation by applying MI-CAP to individual bags and aggregating the learned perturbations.

Both methods are designed to be compatible with various MIL architectures, including both traditional embedding-based methods and modern neural network approaches.

Datasets

The paper evaluates their proposed methods on a diverse set of datasets:

  • Image Classification Datasets: MNIST, CIFAR10, and STL10. These datasets, not inherently MIL, were converted into MIL formats by defining specific classes as positive instances and creating bags with varying numbers of instances.
  • Video Anomaly Detection (VAD) Datasets: ShanghaiTech and UCF-Crime. These datasets are naturally suited for MIL due to their weak supervision (labels at the video level) and were processed by splitting videos into clips treated as bags.
  • Traditional MIL Benchmark Datasets: Five datasets were used to test the attack on traditional MIL methods, including drug activity prediction and image classification benchmarks.

Key Insights and Ideas

  • MIL is Highly Vulnerable: The experiments clearly show that even sophisticated MIL models can be significantly fooled by adversarial perturbations, leading to drastic drops in accuracy and recall.
  • Universal Perturbations are Feasible and Practical: MI-UAP demonstrates that a single perturbation can be effective across multiple bags, offering a more efficient way to attack or test the robustness of MIL systems.
  • "Ave" vs. "Att" Gradient Modes: The "average" gradient computation mode (ave) generally outperformed the "attention" mode (att) for generating perturbations, suggesting that considering all instances' gradients is more effective than focusing solely on the most attended ones.
  • Perturbation Magnitude Matters: While increasing perturbation strength generally increases the fooling rate, excessively large perturbations can distort the data to an unreasonable extent, making them impractical.
  • Generalizability Across Models: Perturbations generated for one MIL model can often effectively fool other MIL models, highlighting a broad vulnerability in the MIL paradigm itself.

Key Results

  • Significant Performance Degradation: On the MNIST dataset, MI-CAP (ave) and MI-UAP (ave) reduced the accuracy of ABMIL from 95.2% to around 0.224% and 0.320% respectively, with similar drastic drops observed across other models and datasets.
  • Fooling Traditional Methods: MI-UAP was shown to be effective in fooling traditional MIL methods, although with some limitations on methods relying on distance metrics.
  • Defense Effectiveness: A simple strategy of incorporating a small percentage of adversarial examples into the training set was shown to significantly improve classifier robustness, though not completely eliminating the vulnerability.

Limitations and Future Work

  • Computational Cost: Generating perturbations, especially universal ones, can be computationally intensive.
  • Dataset Conversion: Converting standard datasets to MIL format requires specific strategies, which might not perfectly capture real-world MIL complexities.
  • Future Directions: The authors suggest several avenues for future research:
  • Focusing perturbations on more critical instances within bags or specific regions within instances.
  • Developing more targeted perturbations based on unique application scenarios.
  • Investigating methods to identify and filter out adversarial perturbations from input data.
  • Developing more inherently secure MIL algorithms.

Summary updated

BibTeX
@article{zhang2023interpreting,
  author = {Yu-Xuan Zhang and Hua Meng and Xuemei Cao and Zhengchun Zhou and Mei Yang and Avik Ranjan Adhikary},
  title = {{Interpreting vulnerabilities of multi-instance learning to adversarial perturbations}},
  journal = {Pattern Recognition},
  year = {2023},
  doi = {10.1016/j.patcog.2023.109725},
}
Figure