Abstract
We introduce an architecture for large-scale image categorization that enables the end-to-end learning of separate visual features for the different classes to distinguish. The proposed model consists of a deep CNN shaped like a tree. The stem of the tree includes a sequence of convolutional layers common to all classes. The stem then splits into multiple branches implementing parallel feature extractors, which are ultimately connected to the final classification layer via learned gated connections. These learned gates determine for each individual class the subset of features to use. Such a scheme naturally encourages the learning of a heterogeneous set of specialized features through the separate branches and it allows each class to use the subset of features that are optimal for its recognition. We show the generality of our proposed method by reshaping several popular CNNs from the literature into our proposed architecture. Our experiments on the CIFAR100, CIFAR10, and Synth datasets show that in each case our resulting model yields a substantial improvement in accuracy over the original CNN. Our empirical analysis also suggests that our scheme acts as a form of beneficial regularization improving generalization performance.
Introduction: The Monolithic Feature Bottleneck
In traditional Deep Convolutional Neural Networks (CNNs), every class—regardless of its visual complexity or similarity to others—is forced to utilize the same global feature representation from the final hidden layer. This monolithic approach assumes that the features necessary to distinguish a "Siamese Cat" from a "Persian Cat" are identical to those needed to differentiate a "Fire Truck" from a "Delivery Van."
As datasets scale to thousands or even tens of thousands of categories, this "one-size-fits-all" approach becomes a significant bottleneck. Categories exhibit uneven separability; some require fine-grained texture analysis, while others rely on coarse geometric shapes. Simply increasing the depth or width of standard networks often leads to diminishing returns, increased computational overhead, and a heightened risk of overfitting.
Methodology: Tree-Structured Feature Extraction
To address these limitations, we propose BranchConnect, a tree-structured architecture designed to learn dedicated features for different groups of classes.
The architecture consists of three primary components:
- The Stem: A standard sequence of convolutional layers shared across all classes to extract low-level features.
- Parallel Branches: Following the stem, the network splits into $M$ parallel branches. Each branch acts as an independent feature extractor, allowing for "vertical" computation that reduces the noise any single path must manage.
- Learned Gated Connections: Each class $c$ is equipped with a learned binary gate that selects a subset of $K$ branches for its final classification. These gates are learned end-to-end alongside network weights using a stochastic binarization technique, allowing the model to discover optimal routing patterns automatically.
Experimental Evaluation
We evaluated BranchConnect across several benchmarks, ranging from small-scale image sets to massive text recognition tasks:
- CIFAR-10 & CIFAR-100: Standard benchmarks for small-image classification.
- ImageNet: The industry standard for large-scale recognition (1,000 classes).
- Synth (Synthetic Word Dataset): A rigorous test for extreme scaling involving 90,000 classes.
The results demonstrate consistent improvements across various base architectures. For instance, an AlexNet-style model on CIFAR-100 saw an accuracy jump from 44.3% to 54.6%. On ImageNet, BranchConnect improved AlexNet’s Top-1 accuracy by nearly 5%. Even highly optimized models like ResNet-101 and ResNet-56 benefited from the "reshaping" into a BranchConnect structure.
Discussion: Specialization and Regularization
A key insight from our analysis is that BranchConnect naturally encourages branches to specialize. By routing classes to specific "expert" branches, the model avoids the co-adaptation of features that often plagues deep networks.
Furthermore, BranchConnect acts as a powerful regularizer. As shown in the loss evolution plots, BranchConnect models achieve significantly lower test loss for the same level of training loss compared to standard "flat" base models. This suggests that the architecture effectively improves generalization performance, making it more resilient to overfitting even as model complexity increases.
Conclusion
BranchConnect introduces a flexible and scalable way to organize feature extraction in CNNs. By replacing monolithic layers with learned, gated branches, the architecture allows for automatic feature specialization and provides inherent regularization. Future work may explore applying this learned routing to intermediate layers, potentially enabling networks to discover fully optimized connectivity patterns for any given task.
Summary updated