A Closer Look at Branch Classifiers of Multi-exit Architectures

Shaohui Lin, Bo Ji, Rongrong Ji, Angela Yao

TL;DR

This paper investigates how the complexity of branch classifiers in multi-exit neural networks affects performance. They discover that "complexity-decreasing" branches (where earlier branches are more complex than later ones) offer the best accuracy-cost trade-off. This is attributed to these branches causing less disruption to the backbone's feature hierarchy, a phenomenon they explore using "knowledge consistency."

What Problem Does This Paper Address?

Deep Convolutional Neural Networks (CNNs) have become incredibly accurate but also computationally expensive, making them difficult to deploy on resource-constrained devices. Multi-exit architectures aim to mitigate this by allowing networks to "exit early" for simpler inputs, thus reducing inference time. However, the design of these early exits (branch classifiers) and how their complexity is structured relative to each other and the main network (backbone) has not been systematically studied. This paper addresses the question of how to best design the complexity of these branches to maximize efficiency without sacrificing accuracy.

Methods

The authors propose three branching patterns for multi-exit architectures:

  • Constant-complexity: All branches have the same complexity.
  • Complexity-increasing: Branches become progressively more complex as they appear later in the network.
  • Complexity-decreasing: Branches become progressively less complex as they appear later in the network.

They define branch complexity by the number of "SE-bottleneck" (SE-B) blocks, which combine bottleneck structures and Squeeze-Excitation modules for efficiency and feature discriminability. To understand why certain patterns work better, they employ "knowledge consistency," a technique that probes how well features from a branched network can reconstruct features from the original, unbranched backbone. This helps them assess the disruption caused by branches to the backbone's feature hierarchy. They also introduce a weighted ensemble method for knowledge distillation to further improve branch classifier performance.

Datasets

The experiments were conducted on:

  • CIFAR-100: A dataset with 100 classes and 32x32 images.
  • ImageNet 2012: A large-scale dataset with 1000 classes and higher resolution images.

Key Insights and Ideas

  • Complexity-decreasing is king: The most surprising finding is that branches that decrease in complexity (earlier branches are more complex) consistently outperform constant or increasing complexity branches in terms of the accuracy-cost trade-off.
  • Backbone disruption matters: The effectiveness of complexity-decreasing branches is linked to them causing less "disruption" to the backbone's learned feature hierarchy. This is a crucial insight into why certain architectural choices work.
  • Knowledge consistency as a diagnostic tool: Using knowledge consistency provides a principled way to understand the impact of branching on the backbone's internal representations, going beyond just accuracy metrics.
  • SE-Blocks are effective: The proposed SE-bottleneck block is shown to be an efficient and effective building block for branch classifiers.
  • Weighted ensemble distillation boosts performance: Their proposed distillation method, using a weighted ensemble of branch outputs as the teacher, significantly improves branch accuracies.

Key Results

  • On ImageNet, complexity-decreasing branching patterns (e.g., 4+3+2) achieved the best adaptive accuracy at a fixed total FLOP budget, outperforming complexity-increasing and constant-complexity patterns. For instance, a 4+3+2 pattern achieved the lowest average FLOPs (1.29B) for a given adaptive accuracy compared to 2+2+2 (1.34B) and 1+2+3 (1.42B) on ResNet-18.
  • The authors report improvements over existing multi-exit methods like MSDNet and SCAN, achieving higher accuracy with fewer FLOPs on ResNet backbones. For example, they improved adaptive accuracy by up to 3.3% with 0.3B less FLOPS compared to MSDNet.
  • Experiments on CIFAR-100 also showed complexity-decreasing branches (e.g., 3+1) achieving the best performance across various backbones.
  • The SE module in their SE-B block significantly improved intermediate branch accuracies with a negligible FLOP increase.

Limitations and Future Work

  • Pixel-level tasks unexplored: The paper primarily focuses on image classification. The authors acknowledge that more complex pixel-level understanding tasks (e.g., semantic segmentation) are unexplored and may require different branching strategies.
  • Generalizability to other tasks: While the findings are validated on multiple backbones and datasets, their direct applicability to tasks beyond image classification is not yet demonstrated.
  • Future work: The authors suggest redesigning branching patterns for pixel-level tasks and investigating their impact on feature disruption in those contexts. They also aim to enable the deployment of deep neural networks on more resource-limited platforms.

Summary updated

BibTeX
@article{lin2022closer,
  author = {Shaohui Lin and Bo Ji and Rongrong Ji and Angela Yao},
  title = {{A Closer Look at Branch Classifiers of Multi-exit Architectures}},
  journal = {Computer Vision and Image Understanding},
  year = {2022},
  url = {https://openreview.net/forum?id=2I6lKcAsSO},
}
Figure