Abstract
While deep neural networks (DNNs) have achieved remarkable success, the theoretical mechanisms underlying their generalization remain partially understood. This paper, published at NeurIPS 2020, explores the role of ReLU activation "gates" in the learning process. By introducing the concepts of Neural Path Features (NPF) and Neural Path Values (NPV), the authors demonstrate that the gating configuration of a network—the specific "active sub-network" for a given input—is the primary repository of learned information. Experimental results on CIFAR-10 show that learned gate patterns can achieve high accuracy even when paired with randomized weights, providing a new perspective on why finite-width networks often outperform infinite-width theoretical models.
Introduction: The Gating Mechanism in Deep Learning
A persistent challenge in deep learning theory is explaining the performance gap between finite-width convolutional neural networks (CNNs) and their infinite-width counterparts described by the Neural Tangent Kernel (NTK). Finite-width models often outperform NTK predictions by significant margins (typically 5-6%). This paper posits that the NTK framework overlooks a critical element: the dynamic "on/off" gating behavior of ReLU activations.
In a ReLU network, each neuron acts as a gate. Depending on the input, a specific set of paths from the input layer to the output layer is activated. This paper seeks to analytically characterize these active sub-networks to understand how they drive the learning process and generalization.
Methods: Decomposing the Black Box
The authors propose a "path-based" decomposition of neural networks into three core components:
- Neural Path Feature (NPF): A vector encoding the binary state (on/off) of every possible path from input to output for a specific example. It represents the "routing" of information.
- Neural Path Value (NPV): A vector representing the product of weights along those same paths.
- Neural Path Kernel (NPK): A kernel measuring input similarity based on the overlap of their active sub-networks.
Mathematically, a DNN's output is the inner product of its NPF and NPV. To isolate the contribution of gates, the authors developed Deep Gated Networks (DGNs). In a DGN, a "feature network" determines the gating patterns (NPFs), while a separate "value network" provides the weights (NPVs).
This setup allows for the study of Fixed Learnt NPF (FLNPF) regimes, where gate patterns are extracted from a pre-trained model and applied to a brand-new network with initialized random weights.
Key Insights: Gates as Information Storage
The central finding of this research is that the gates hold more critical information than the weights. The authors observed that if one freezes the gate patterns (NPFs) from a trained model and re-randomizes the weights, the network can still achieve near-original accuracy simply by training the new weights to fit those specific paths.
This suggests that the "CNN gap" arises because gates in finite-width networks are "learnt" and refined during training, whereas in the infinite-width NTK regime, gate configurations remain relatively static. The NPF represents a "zeroth-order" quantity that directly captures the architectural information stored during optimization.
Experimental Results
The framework was evaluated on MNIST and CIFAR-10. A key experiment compared standard ReLU networks against DGNs with different gating strategies on the CIFAR-10 dataset using a GCONV architecture:
- Standard ReLU: Achieved 80.32% accuracy.
- Fixed Learnt NPF (FLNPF): Using gates from a trained model but training weights from scratch, the model recovered 79.68% accuracy.
- Fixed Random NPF (FRNPF): Using static, random gates that never learn resulted in only 67.09% accuracy.
As shown in Figure 6, the quality of NPFs improves monotonically throughout the training process. NPFs extracted from later stages of training consistently yield better generalization when used in the FLNPF regime than those from early stages.
Conclusion and Future Work
This work shifts the focus from weight-centric views of deep learning to a path-centric view. By demonstrating that gate configurations are the primary drivers of performance, the authors provide a theoretical basis for the superior generalization of finite-width CNNs. While the DGN is primarily an analytical tool, it suggests that future research should focus on designing optimization algorithms that explicitly target "path learning" or "gate refinement" to improve the efficiency of deep learning models.
Summary updated