Introduction
In the standard workflow of transfer learning for computer vision, a pre-trained "backbone" network is adapted to a new task by replacing its final classification layer. Conventionally, this new multinomial logistic regression layer is initialized with random weights. However, this paper argues that such random starts are fundamentally inefficient. They necessitate extremely low learning rates to prevent large gradients from the uninitialized "head" from corrupting the pre-trained features in the "body," leading to slow convergence, susceptibility to local minima, and a higher risk of overfitting on small datasets.
To address these issues, the authors propose the Regularized Gaussian Classifier (RGC), a data-dependent initialization method that provides a mathematically grounded "warm start" for the final layer.
The Regularized Gaussian Classifier (RGC)
While multinomial logistic regression (Softmax with Cross-Entropy loss) does not have a closed-form solution, it can be closely approximated by assuming that the features extracted by the backbone for each class follow a Gaussian distribution.
The RGC method involves three key steps:
- Closed-Form Solution: Instead of iterative optimization, class-specific mean vectors and a shared covariance matrix are calculated directly from the training data. This allows for an analytical solution for the weights ($w$) and biases ($b$) of the final layer.
- Regularization: To ensure stability in high-dimensional spaces or when data is scarce, a regularization term ($\epsilon I$) is added to the covariance matrix.
- Parameter Calibration: The resulting RGC weights are scaled so that the initial loss and gradient magnitudes are compatible with the pre-trained network's existing parameters.
Theoretical Justification: Covariance Convergence
A central assumption of the RGC is that classes share a common covariance matrix. The authors empirically validated this by measuring the Central Moment Discrepancy (CMD) distance between class-specific covariance matrices during training.
As shown in Figure 1, the CMD distance decreases significantly as training progresses, indicating that the feature distributions for different classes become increasingly similar in their second-order statistics. This convergence justifies the use of a shared covariance matrix in the RGC initialization.
Empirical Results and Efficiency
The RGC initialization was tested across various tasks, including fine-grained image classification (Flickr-style, Oxford Flower-102) and object detection (PASCAL VOC 2007 using YOLO V2 and Faster R-CNN).
The most striking result is the dramatic increase in training efficiency. In many cases, RGC-initialized models reached the baseline accuracy of randomly initialized models up to 10 times faster.
As illustrated in Figure 3, the RGC-initialized models (blue lines) start at a much higher performance level and converge much more rapidly than the baselines (red lines). Beyond speed, RGC also yielded absolute accuracy improvements, such as a 3.2% increase in top-1 accuracy on the Flickr-style dataset and a 5% mAP improvement on VOC 2007 with extended training.
Conclusion
The Regularized Gaussian Classifier offers a robust, deterministic, and hyperparameter-free alternative to random initialization for transfer learning. By leveraging classical statistical approximations, it effectively shields the model from overfitting and provides a significant head start in the optimization process. While currently limited to classification tasks, the RGC demonstrates that thoughtful, data-dependent initialization is a powerful tool for making deep learning more efficient and accurate.
Summary updated