Partial Graph Reasoning for Neural Network Regularization

Tiange Xiang, Chaoyi Zhang, Yang Song, Siqi Liu, Hongliang Yuan, Tom Weidong CaiarXiv 2021

TL;DR

This paper introduces DropGraph, a novel regularization technique that uses graph reasoning to learn feature map distortions during training. Unlike traditional dropout, DropGraph aims to improve feature representation by intelligently perturbing activations rather than simply zeroing them out, leading to better model performance without impacting inference speed.

What Problem Does This Paper Address?

Deep neural networks, especially those dealing with complex data like images, often suffer from "feature co-adaptation," where neurons become overly reliant on each other. Regularization techniques like Dropout aim to break these dependencies by randomly disabling neurons during training. However, standard Dropout can be too aggressive, potentially hindering the network's ability to learn meaningful representations. For spatially correlated data like images, simply dropping entire neurons or feature vectors (as in SpatialDropout or DropBlock) might not be optimal. The authors propose a more nuanced approach that learns how to distort feature maps in a way that reduces co-adaptation while preserving valuable information.

Methods

The core idea of DropGraph is to learn a "distortion" term that is added to the original feature map during training. This distortion is generated by a separate, lightweight graph neural network (GNN). Here's how it works:

  1. Partial Graph Construction: Instead of using all feature vectors, DropGraph samples a subset of them (controlled by a parameter $\alpha$) to form the vertices of a graph.
  2. Graph Reasoning: A graph neural network (specifically, graph convolutional networks or GCNs) is then applied to these sampled vertices. This GNN learns relationships and dependencies between the sampled features.
  3. Distortion Generation: The output of the GNN is used to generate a distortion map. This map is then combined with the original feature map using a mask derived from a Bernoulli distribution (controlled by parameter $p$), similar to how Dropout operates. The equation is formulated as $f_{reg}(X) = \delta \cdot X + (1 - \delta) \cdot R$, where $R$ is the learned distortion.
  4. Training and Inference: During training, both the backbone network and the DropGraph module are trained end-to-end. Crucially, during inference, the DropGraph module is completely bypassed, meaning there's no additional computational cost.

The authors also explore different ways to construct the graph's adjacency matrix, finding that modeling dissimilar features with higher connections is most effective.

Datasets

The paper evaluates DropGraph on a variety of tasks and datasets:

  • Image Classification: CIFAR-10, CIFAR-100, and ImageNet.
  • Semantic Segmentation: PASCAL VOC 2012 and MoNuSeg.
  • Point Cloud Classification: ModelNet40.
  • Graph Recognition: Cora and Protein datasets, as well as large-scale OGB benchmarks (opga-ppa and ogbn-products).

Key Insights and Ideas

  • Learned Distortions Outperform Random Dropping: The core insight is that intelligently learned distortions, guided by graph reasoning, are more effective at regularizing networks than simply zeroing out activations. This allows the network to retain more useful information while still breaking unwanted dependencies.
  • Graph Reasoning as a Regularizer: The paper elegantly reframes graph reasoning, typically used for feature enhancement, as a powerful regularization technique.
  • Inference Efficiency: The ability to completely disable the graph module during inference is a significant practical advantage, ensuring no performance penalty at test time.
  • Partial Sampling is Key: Using only a subset of features ($\alpha < 100\%$) for graph construction is crucial. It balances the computational cost with the ability to capture relevant dependencies.
  • Focus on Dissimilarity: The adjacency matrix design that emphasizes connections between dissimilar features proved most effective, suggesting that breaking down overly strong similarities is key to regularization.

Key Results

DropGraph consistently outperforms other state-of-the-art regularization methods across all tested tasks and datasets.

  • Image Classification: Achieved state-of-the-art results on CIFAR-10/100 and ImageNet, with improvements over baselines like Dropout, SpatialDropout, DropBlock, and Disout. For example, on CIFAR-100 with ResNet-50, DropGraph achieved 79.58% accuracy, compared to 78.91% for Disout and 78.71% for DropBlock.
  • Semantic Segmentation: Showed significant gains in mIoU and mAcc on PASCAL VOC and MoNuSeg, outperforming DropBlock and Disout.
  • Point Cloud Classification: Achieved the greatest average accuracy improvement (0.6%) on ModelNet40 compared to other methods.
  • Graph Recognition: Demonstrated superior performance on Cora and Protein datasets, as well as large-scale OGB benchmarks.
  • Qualitative Results: Visualizations (Grad-CAM, t-SNE) showed that DropGraph helps networks focus more on primary objects and generates more discriminative feature representations.

Limitations and Future Work

  • Hyperparameter Tuning: DropGraph introduces three hyperparameters ($\alpha$, $p$, and $s$), one more than DropBlock. However, the authors note that DropGraph generally surpasses DropBlock even without explicit tuning.
  • Computational Overhead (Training): While minimal, DropGraph does add computational cost during training. The authors state it's trivial, imposing less than $1 \times 10^{-3}$ G extra MACs on ResNet-50 and only a 4% increase in training time compared to Disout.
  • Future Work: The authors suggest that more advanced graph network designs or propagation rules could lead to even better results. They also mention that their current implementation is a basic form, leaving room for further exploration.

Summary updated

BibTeX
@misc{xiang2021partial,
  author = {Tiange Xiang and Chaoyi Zhang and Yang Song and Siqi Liu and Hongliang Yuan and Tom Weidong Cai},
  title = {{Partial Graph Reasoning for Neural Network Regularization}},
  year = {2021},
  eprint = {2106.01805},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.01805},
}
Figure