Skip to main content
QUICK REVIEW

[Paper Review] Mini-batch graphs for robust image classification

Arnab Kumar Mondal, Vineet Jain|arXiv (Cornell University)|Apr 22, 2021
Adversarial Robustness in Machine LearningComputer Science35 references8 citations
TL;DR

This paper proposes Mini-batch Graph Neural Networks (MBGNNs), which use graph convolutional networks to aggregate features across similar images within a training mini-batch, improving classification accuracy and robustness to adversarial attacks and image perturbations without requiring additional loss terms. The method introduces minimal computational overhead and enhances GAN training by reducing mode collapse.

ABSTRACT

Current deep learning models for classification tasks in computer vision are trained using mini-batches. In the present article, we take advantage of the relationships between samples in a mini-batch, using graph neural networks to aggregate information from similar images. This helps mitigate the adverse effects of alterations to the input images on classification performance. Diverse experiments on image-based object and scene classification show that this approach not only improves a classifier's performance but also increases its robustness to image perturbations and adversarial attacks. Further, we also show that mini-batch graph neural networks can help to alleviate the problem of mode collapse in Generative Adversarial Networks.

Motivation & Objective

  • To improve image classification robustness against adversarial attacks and input perturbations by leveraging inter-sample relationships within mini-batches.
  • To address the limitations of contrastive and affinity-based loss methods by implicitly encouraging similar embeddings through graph-based feature aggregation.
  • To mitigate mode collapse in GANs by enhancing feature diversity through mini-batch graph learning.
  • To develop a modular, computationally efficient method compatible with standard deep learning pipelines and applicable beyond image classification.

Proposed method

  • Construct a sample-level graph for each mini-batch using feature similarity to define edges between images.
  • Apply graph convolutional networks (GCNs) to aggregate features across nodes (images) in the mini-batch graph, enabling message passing between similar samples.
  • Use the output of the graph network as a refined representation for each image, which is then passed to the classifier head.
  • Integrate the MBGNN as a plug-in module at the final layer of a standard CNN, requiring only minor architectural modifications.
  • Employ an attention mechanism in Attn-MBGNN to dynamically weight contributions from neighboring nodes in the graph, improving adaptability.
  • Use the MBGNN module during GAN training via MC-MBGNN (Mini-batch Contrastive MBGNN) to enhance generator diversity and reduce mode collapse.

Experimental results

Research questions

  • RQ1Can graph-based feature aggregation within mini-batches improve image classification performance and robustness to perturbations?
  • RQ2Does the implicit similarity learning via MBGNNs outperform explicit contrastive or affinity-based loss functions in terms of robustness and accuracy?
  • RQ3Can MBGNNs effectively reduce mode collapse in GAN training by promoting diversity in generated samples?
  • RQ4How does the MBGNN module perform under black-box adversarial attacks compared to standard ResNet baselines?
  • RQ5What is the computational and architectural overhead of integrating MBGNNs into existing deep learning pipelines?

Key findings

  • MBGNNs improved test accuracy by up to 2% on CIFAR-10 under local Gaussian blurring and pixel-wise Gaussian noise, demonstrating robustness to image perturbations.
  • The best-performing MBGNN variants achieved a 1.5–2% higher accuracy than the baseline ResNet under adversarial attacks, with significantly higher median query counts before successful attack (e.g., 10× higher in some cases).
  • Attention-enhanced MBGNNs (Attn-MBGNN) showed improved robustness over standard MBGNNs but were less effective than standard MBGNNs, likely due to compounding sensitivity to input perturbations in attention weights.
  • MC-MBGNN reduced NDB scores by up to 30% compared to vanilla GANs, indicating a substantial reduction in mode collapse and improved sample diversity.
  • The method introduced minimal computational overhead, with only a small number of additional parameters, and was compatible with standard CNN architectures.
  • The MBGNN module was effective across multiple datasets (CIFAR-10, CelebA) and architectures, showing consistent performance gains and robustness improvements.

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.