Higher-Order Asymptotics of Test-Time Adaptation for Batch Normalization Statistics
Masanari Kimura
TL;DR
The paper addresses BN test-time adaptation under distribution shift by developing a higher-order asymptotic framework that combines Edgeworth expansions, saddlepoint approximations, and a robust one-step M-estimation view. It derives a refined distributional understanding of the BN TTA statistic, including an explicit Edgeworth expansion with skewness corrections and uniformly accurate saddlepoint density/tail estimates, and it shows how to formulate BN TTA as a one-step estimator with a LAN expansion. A key contribution is an optimal weighting parameter $\lambda^*$ that balances training and test BN means while accounting for bias, variance, and higher-order moments; the work also provides a formal generalization bound under Lipschitz loss and boundedness assumptions. Together, these results guide principled BN adaptation in shifting environments and offer tools that improve reliability and calibration of BN layers in practice. The framework extends to other normalization schemes and motivates future research on dynamic, higher-order TTA strategies for robust inference.
Abstract
This study develops a higher-order asymptotic framework for test-time adaptation (TTA) of Batch Normalization (BN) statistics under distribution shift by integrating classical Edgeworth expansion and saddlepoint approximation techniques with a novel one-step M-estimation perspective. By analyzing the statistical discrepancy between training and test distributions, we derive an Edgeworth expansion for the normalized difference in BN means and obtain an optimal weighting parameter that minimizes the mean-squared error of the adapted statistic. Reinterpreting BN TTA as a one-step M-estimator allows us to derive higher-order local asymptotic normality results, which incorporate skewness and other higher moments into the estimator's behavior. Moreover, we quantify the trade-offs among bias, variance, and skewness in the adaptation process and establish a corresponding generalization bound on the model risk. The refined saddlepoint approximations further deliver uniformly accurate density and tail probability estimates for the BN TTA statistic. These theoretical insights provide a comprehensive understanding of how higher-order corrections and robust one-step updating can enhance the reliability and performance of BN layers in adapting to changing data distributions.
