Early Period of Training Impacts Adaptation for Out-of-Distribution Generalization: An Empirical Study
Chen Cecilia Liu, Iryna Gurevych
TL;DR
This work investigates how the very early phase of neural network training shapes out-of-distribution generalization under covariate shift. Using gradual unfreezing to vary the number of trainable parameters during the initial training period, the authors monitor the Fisher Information trace $tr(F)$ and sharpness measures $S^{rho}_{avg}$ and $S^{rho}_{worst}$ to identify when to remove the intervention. They find that early, time-sensitive interventions can yield Pareto improvements in ID and OOD performance across both image and language tasks, and that $tr(F)$ and sharpness metrics can guide the timing of intervention removal, though they do not consistently predict final OOD performance themselves. The results point to a new direction in understanding and leveraging early learning dynamics to improve robust generalization with minimal added complexity, suggesting both practical training strategies and theoretical questions for future work.
Abstract
Prior research shows that differences in the early period of neural network training significantly impact the performance of in-distribution (ID) data of tasks. Yet, the implications of early learning dynamics on out-of-distribution (OOD) generalization remain poorly understood, primarily due to the complexities and limitations of existing analytical techniques. In this work, we investigate the relationship between learning dynamics, OOD generalization under covariate shift and the early period of neural network training. We utilize the trace of Fisher Information and sharpness, focusing on gradual unfreezing (i.e., progressively unfreezing parameters during training) as our methodology for investigation. Through a series of empirical experiments, we show that 1) changing the number of trainable parameters during the early period of training via gradual unfreezing can significantly improve OOD results; 2) the trace of Fisher Information and sharpness can be used as indicators for the removal of gradual unfreezing during the early period of training for better OOD generalization. Our experiments on both image and text data show that the early period of training is a general phenomenon that can provide Pareto improvements in ID and OOD performance with minimal complexity. Our work represents a first step towards understanding how early learning dynamics affect neural network OOD generalization under covariate shift and suggests a new avenue to improve and study this problem.
