TL;DR
This paper introduces "Compressed Parameter Subspaces" (CPS), a novel method for training neural networks that are robust to various distribution shifts. By regularizing parameter spaces to be "compressed" and interpolatable, CPS allows models to maintain high accuracy across diverse test-time perturbations like backdoor attacks, adversarial examples, and domain shifts, even when trained on different data distributions.
What Problem Does This Paper Address?
The increasing prevalence of distribution shifts (when test data differs from training data) poses a significant challenge to the reliability of machine learning models. Existing solutions often focus on mitigating specific types of shifts, such as label shift or domain shift, but struggle to generalize to a broad spectrum of these variations simultaneously. This specialization limits the practical applicability of models in real-world scenarios where data distributions can change in unpredictable ways. The authors aim to bridge this gap by developing a unified approach that enhances robustness across multiple, diverse distribution shifts.
Methods
The core innovation is the concept of Compressed Parameter Subspaces (CPS). Instead of training individual models or optimizing for a single distribution, CPS trains multiple models in parallel, each on a different (potentially shifted) train-time distribution. The key is to then enforce a "compressed" geometric structure on these parameter spaces. This compression is achieved by minimizing the distance between the end-point parameters of these parallel models. This regularization encourages the parameters to reside in a more compact and interpolatable subspace.
The training process involves:
- Parallel Training: Multiple models are trained simultaneously, each on a distinct train-time distribution.
- Distance Regularization: A term is added to the loss function that penalizes the distance between the parameters of these parallel models. This encourages them to converge towards a common, compressed subspace.
- Subspace Interpolation: Once trained, parameters within this compressed subspace can be interpolated to generate new parameter configurations. This interpolation is crucial for adapting to unseen or shifted test-time distributions.
The paper also explores the use of hypernetworks to represent and leverage these CPS for continual learning scenarios.
Datasets
The experiments were conducted using standard image classification datasets:
- CIFAR10: Used for evaluating robustness against single test-time distributions and various perturbations.
- CIFAR100: Used for evaluating performance in continual learning settings and against multiple test-time distributions.
The paper does not introduce new benchmarks but rather applies existing datasets to evaluate their proposed CPS method under various challenging conditions.
Key Insights and Ideas
- Compression is Key: The "compressed" nature of the parameter subspace, achieved through distance regularization, is critical. It leads to better interpolatability and reduced interference between parameters, making the subspace more robust to shifts.
- Ensembling within CPS: Sampling and ensembling parameters from the trained CPS consistently yields higher average accuracy across a range of test-time distributions compared to individual models or standard ensembling techniques.
- Low-Loss Regions: The compressed subspace effectively contains low-loss parameter configurations that can map back to various shifted inputs, even for tasks or perturbations not explicitly seen during training.
- Hypernetworks for Continual Learning: Adapting CPS within a hypernetwork architecture significantly improves performance in continual learning, reducing catastrophic forgetting and enabling adaptation to unseen tasks.
Key Results
- Robustness to Perturbations: CPS models demonstrated improved robustness against various perturbations, including backdoor attacks, adversarial attacks, stylization, and rotation, achieving higher accuracy compared to baselines. For instance, in Table 1, CPS models (e.g., CPS (backdoor) intp. (max)) achieved significantly higher accuracy on unseen shifts like adversarial attack (60.5 ± 1.2) and random permutations (61.7 ± 19.8) compared to some baselines.
- Continual Learning Performance: In a continual learning setting (Table 3), CPS-regularized hypernetworks outperformed standard hypernetworks, showing better test set accuracy after learning multiple tasks. For example, the CPS-regularized hypernetwork evaluated after task 5 achieved 63.6% accuracy, compared to 59.2% for the standard hypernetwork.
- Interpolation Benefits: The paper shows that interpolated parameters within the CPS often yield better accuracy than boundary parameters, especially for shifted distributions. Appendix A.3.3 visually demonstrates how interpolated input spaces map to more accurate regions in the compressed parameter space.
Limitations and Future Work
- Computational Cost: Training multiple models in parallel for CPS can be computationally intensive, especially with a large number of train-time distributions.
- Hyperparameter Tuning: The effectiveness of CPS might depend on careful tuning of hyperparameters like the distance coefficient ($\beta$).
- Generalization to Unseen Tasks: While CPS shows promise for unseen tasks, further research is needed to fully understand its generalization capabilities, especially for tasks with significantly different coarse labels.
The authors suggest future work could explore enforcing geometric structure more broadly in parameter subspace construction and developing more advanced methods for test-time adaptation to joint distribution shifts.
Summary updated