BranchConnect: Image Categorization with Learned Branch Connections

Karim Ahmed, Lorenzo Torresani

TL;DR

This paper introduces BranchConnect, a novel tree-structured CNN architecture that learns class-specific visual features by splitting into multiple branches, each with learned "gates" that select relevant features for each class. This approach significantly improves image categorization accuracy across various datasets and architectures, acting as a beneficial regularizer.

What Problem Does This Paper Address?

Traditional deep convolutional neural networks (CNNs) learn a single, shared feature representation that is then used by all class classifiers in the final layer. While effective, this approach can be suboptimal because different classes might benefit from distinct sets of features, especially for fine-grained distinctions. Simply increasing network depth or width to improve accuracy can lead to overfitting and higher computational costs. The paper addresses the challenge of learning specialized features for each class within a single, end-to-end trainable model, without resorting to complex ensemble methods or multi-stage training.

Methods

The core innovation is the BranchConnect architecture, which resembles a tree.

  • Stem: A common sequence of convolutional layers processes the input image, shared by all classes.
  • Branches: The stem splits into multiple parallel branches, each containing its own feature extractors. These branches learn to extract different types of features.
  • Learned Gated Connections: The key novelty lies in the "gates" connecting the output of each branch to the final classification layer. These gates are learned during training and, for each class, determine which subset of branch features are most relevant for its recognition. This allows each class to effectively "pick and choose" the features it needs.
  • End-to-End Training: The entire network, including the branch gates, is trained end-to-end using backpropagation. The gates are treated as learnable parameters, with a stochastic binarization procedure used during training to handle their binary nature.

Datasets

The authors evaluated their approach on several standard image datasets:

  • CIFAR-100: A dataset with 100 classes of 32x32 images.
  • CIFAR-10: A dataset with 10 classes of 32x32 images.
  • ImageNet: A large-scale dataset with 1000 classes.
  • Synthetic Word Dataset (Synth): A dataset for text recognition with a very large number of classes (90K).

Key Insights and Ideas

  • Class-Specific Feature Specialization: The most significant insight is that allowing each class to learn its own subset of features from parallel branches leads to substantial accuracy gains. This moves beyond the "one-size-fits-all" feature representation of standard CNNs.
  • Regularization Effect: BranchConnect acts as a beneficial regularizer. By forcing classes to select specific features, it prevents the network from overfitting to spurious correlations present in the training data, leading to better generalization (lower test loss for a given training loss).
  • Architectural Generality: The BranchConnect framework is flexible and can be applied to various existing CNN architectures (AlexNet, ResNet, NIN, etc.) by simply reshaping them into the tree structure. This demonstrates its broad applicability.
  • Learned Feature Selection is Crucial: Experiments with randomly assigned gates ("Random Connect") showed significantly worse performance than learned gates, highlighting the importance of the learned selection mechanism.

Key Results

  • Consistent Accuracy Improvements: Across all tested datasets and base architectures (AlexNet, ResNet, NIN), BranchConnect consistently outperformed the original base models. For example, on CIFAR-100, improvements of up to 6% were observed.
  • Competitive with State-of-the-Art: The paper shows that BranchConnect models achieve higher accuracy than related "Network of Experts" (NofE) approaches, often with comparable or fewer parameters.
  • Robustness to Depth: BranchConnect models were shown to be more robust to increasing network depth compared to standard CNNs, which tend to degrade in performance.
  • Regularization Benefits: Figures illustrating training vs. test loss showed that BranchConnect models achieved lower test loss for the same training loss, indicating better generalization.

Limitations and Future Work

  • Hyperparameter Tuning: The number of branches (M) and the number of active connections per class (K) are hyperparameters that need to be tuned. While the paper explores their impact, optimal values may vary.
  • Stochastic Training: The use of stochastic binarization for gates during training, while effective, adds complexity.
  • Future Work: The authors suggest exploring more sophisticated combination schemes and viewing the learned gates as a rudimentary form of architecture learning, with potential applications to more general model learning. They also plan to investigate the applicability of this mechanism for more general forms of model learning.

Summary updated

BibTeX
@inproceedings{ahmed2018branchconnect,
  author = {Karim Ahmed and Lorenzo Torresani},
  title = {{BranchConnect: Image Categorization with Learned Branch Connections}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2018},
  url = {https://openreview.net/forum?id=yL3d7-8252r},
}
Figure