ConsistentFeature: A Plug-and-Play Component for Neural Network Regularization
RuiZhe Jiang, Haotian Lei
TL;DR
The paper introduces ConsistentFeature (CF), a plug-and-play regularization technique that treats training data as multiple i.i.d. domains and enforces feature consistency across random splits via an auxiliary discriminator. By adversarially aligning the feature distributions across splits, CF promotes domain-invariant, generalizable representations and suppresses memorization, with minimal architectural assumptions and computational overhead. Empirical results across diverse datasets and architectures show CF reduces overfitting, lowers validation loss, and improves accuracy, including on out-of-distribution data like ImageNet-A, while remaining robust to hyperparameter choices. CF can be combined with traditional regularizers to further enhance generalization, making it a practical tool for improving normal convergence and memory suppression even when overfitting is not pronounced.
Abstract
Over-parameterized neural network models often lead to significant performance discrepancies between training and test sets, a phenomenon known as overfitting. To address this, researchers have proposed numerous regularization techniques tailored to various tasks and model architectures. In this paper, we introduce a simple perspective on overfitting: models learn different representations in different i.i.d. datasets. Based on this viewpoint, we propose an adaptive method, ConsistentFeature, that regularizes the model by constraining feature differences across random subsets of the same training set. Due to minimal prior assumptions, this approach is applicable to almost any architecture and task. Our experiments show that it effectively reduces overfitting, with low sensitivity to hyperparameters and minimal computational cost. It demonstrates particularly strong memory suppression and promotes normal convergence, even when the model has already started to overfit. Even in the absence of significant overfitting, our method consistently improves accuracy and reduces validation loss.
