Abstract: Regularization and transfer learning are two popular techniques to enhance generalization on unseen data, which is a fundamental problem of machine learning. Regularization techniques are versatile, as they are task- and architecture-agnostic, but they do not exploit a large amount of data available. Transfer learning methods learn to transfer knowledge from one domain to another, but may not generalize across tasks and architectures, and may introduce new training cost for adapting to the target task. To bridge the gap between the two, we propose a transferable perturbation, MetaPerturb, which is meta-learned to improve generalization performance on unseen data. MetaPerturb is implemented as a set-based lightweight network that is agnostic to the size and the order of the input, which is shared across the layers. Then, we propose a meta-learning framework, to jointly train the perturbation function over heterogeneous tasks in parallel. As MetaPerturb is a set-function trained over diverse distributions across layers and tasks, it can generalize to heterogeneous tasks and architectures. We validate the efficacy and generality of MetaPerturb trained on a specific source domain and architecture, by applying it to the training of diverse neural architectures on heterogeneous target datasets against various regularizers and fine-tuning. The results show that the networks trained with MetaPerturb significantly outperform the baselines on most of the tasks and architectures, with a negligible increase in the parameter size and no hyperparameters to tune.
Introduction
Deep Neural Networks (DNNs) are notoriously prone to overfitting, particularly when training data is limited. Traditionally, researchers have addressed this using two distinct paradigms: Regularization and Transfer Learning. Standard regularizers like Dropout or Weight Decay are versatile and architecture-agnostic but are "blind" to the rich statistical information present in large datasets. Conversely, Transfer Learning (e.g., fine-tuning) leverages large datasets but is often "rigid," requiring identical source and target architectures and failing when domains are significantly different.
MetaPerturb bridges this gap by introducing a transferable regularizer. It is an ultra-lightweight, meta-learned module (comprising only 82 parameters) that learns universal "rules of thumb" for feature perturbation to enhance generalization. Once trained on a source task, it can be "plugged in" to entirely different neural architectures and datasets to boost performance without further tuning.
The MetaPerturb Framework
The core innovation of MetaPerturb is its ability to learn a perturbation function $g_\phi$ that generalizes across heterogeneous tasks. During meta-training, the function is optimized over multiple tasks from a source dataset (like Tiny ImageNet) to minimize the validation loss on unseen data.
As illustrated above, the learned perturbation function is transferred from the source domain to target domains (e.g., Aircraft, CUB) and different architectures (e.g., VGG, Conv4). This transferability is possible because MetaPerturb is designed to be architecture-agnostic, treating layer features as sets rather than fixed-size tensors.
Architecture and Implementation
MetaPerturb consists of two primary components designed for maximum flexibility:
- Input-dependent Stochastic Noise Generator: This generates noise based on input features using a permutation-equivariant design. This ensures the regularizer is indifferent to the specific order or number of channels in a given layer.
- Batch-dependent Scaling Function: This component learns a gating mechanism to decide the intensity of noise applied to each channel, utilizing batch statistics and layer-specific information.
By implementing MetaPerturb as a shared set-function across all layers, the same 82-parameter module can be integrated into diverse architectures like ResNet, VGG, or Wide-ResNet. The integration into a standard residual block, as shown in the figure above, demonstrates how the perturbation function $g_\phi(h)$ modifies latent features $h$ before the final activation.
Experimental Results
The efficacy of MetaPerturb was validated by meta-training it on Tiny ImageNet (TIN) and testing it on various target datasets, including STL10, CIFAR100, and fine-grained datasets like Stanford Cars and CUB.
- Outperforming Fine-tuning: On the Stanford Cars dataset, a ResNet20 trained with MetaPerturb achieved 73.04% accuracy, significantly outperforming standard fine-tuning (58.61%) and advanced regularizers like Manifold Mixup (48.97%).
- Cross-Architecture Success: MetaPerturb trained on a ResNet20 was successfully applied to VGG9, ResNet44, and Wide-ResNet 28-2, consistently outperforming base models and standard Dropout.
- Robustness and Calibration: Beyond accuracy, MetaPerturb improves model calibration (matching predicted confidence with actual accuracy) and enhances adversarial robustness, as the meta-learning process naturally discourages overconfidence.
Conclusion
MetaPerturb demonstrates that the logic of feature perturbation for generalization is somewhat universal. By transferring a tiny, meta-learned module rather than millions of feature weights, researchers can achieve superior generalization on data-scarce tasks across diverse architectures. Future work may see MetaPerturb pre-trained on massive datasets like ImageNet-21k to serve as a universal, plug-and-play regularization tool for the machine learning community.
Summary updated