On Local Overfitting and Forgetting in Deep Neural Networks
Uri Stern, Tomer Yaacoby, Daphna Weinshall
TL;DR
This work reframes overfitting in deep learning through local forgetting, introducing the forget fraction $F_e$ and forgetting time $\hat{n}$ to quantify how training can erase correct classifications in subregions of the data space even as overall test performance rises. It develops a theory using over-parameterized deep linear networks to characterize forgotten knowledge and links forgetting to spectral data properties, especially projections onto leading principal components. Based on these insights, the paper proposes KnowledgeFusion (KF), a post-training ensemble method that combines mid-training and final models (with a small window around a peak forget fraction) and optionally uses self-distillation to avoid inference costs, achieving consistent improvements across datasets and architectures, including under label noise and transfer learning. Empirical results show KF often matches or surpasses more expensive ensembles with substantially lower cost, supporting the practical value of recovering forgotten knowledge and offering a new tool for improving generalization in modern networks.
Abstract
The infrequent occurrence of overfitting in deep neural networks is perplexing: contrary to theoretical expectations, increasing model size often enhances performance in practice. But what if overfitting does occur, though restricted to specific sub-regions of the data space? In this work, we propose a novel score that captures the forgetting rate of deep models on validation data. We posit that this score quantifies local overfitting: a decline in performance confined to certain regions of the data space. We then show empirically that local overfitting occurs regardless of the presence of traditional overfitting. Using the framework of deep over-parametrized linear models, we offer a certain theoretical characterization of forgotten knowledge, and show that it correlates with knowledge forgotten by real deep models. Finally, we devise a new ensemble method that aims to recover forgotten knowledge, relying solely on the training history of a single network. When combined with self-distillation, this method enhances the performance of any trained model without adding inference costs. Extensive empirical evaluations demonstrate the efficacy of our method across multiple datasets, contemporary neural network architectures, and training protocols.
