TL;DR
This paper introduces a novel Distributionally Robust Optimization (DRO) framework for multiclass logistic regression (MLR) that enhances robustness against data distribution shifts, particularly outliers. By reformulating the DRO problem with a Wasserstein metric, they derive a new matrix norm regularizer and demonstrate its effectiveness in improving the robustness of deep image classifiers like Vision Transformers (ViTs) against random and adversarial attacks.
What Problem Does This Paper Address?
In machine learning, models are often trained on data that follows a specific distribution. However, real-world data can deviate from this training distribution due to various factors like sensor noise, adversarial manipulations, or simply natural variations. This deviation can lead to a significant drop in model performance, a phenomenon known as distribution shift. While robust optimization techniques aim to mitigate this, existing methods often struggle with multiclass classification problems or are computationally expensive. This paper specifically tackles the challenge of making multiclass classifiers robust to distribution shifts, particularly in the context of deep learning models like Vision Transformers, which are increasingly used for image classification but can be vulnerable to such shifts.
Methods
The core of this work is the development of a Distributionally Robust Optimization (DRO) formulation for Multiclass Logistic Regression (MLR). The key innovation lies in defining the "ambiguity set" – the set of possible data distributions the model should be robust to – using the Wasserstein metric. This metric provides a principled way to measure the distance between probability distributions.
The authors reformulate the DRO problem into a more tractable regularized learning problem. This reformulation leads to a novel matrix norm regularizer for the coefficient matrix in MLR. This regularizer is shown to be the dual norm of the coefficient matrix, establishing a theoretical connection between robustness and regularization.
For practical application in deep learning, they propose an efficient random-layer training mechanism. Instead of retraining the entire network, they apply the DRO-MLR to a randomly selected layer in each training epoch. This approach balances computational efficiency with the benefits of DRO. They also employ a metric learning approach to estimate an appropriate norm for defining the Wasserstein metric in the transformed feature spaces of deep networks.
Datasets
The paper evaluates their proposed DRO-MLR method on two standard image classification datasets:
- MNIST: A dataset of handwritten digits.
- CIFAR-10: A dataset of small images across 10 object classes.
These datasets are used for both training and testing their deep Vision Transformer (ViT) models.
Key Insights and Ideas
- Wasserstein DRO for Multiclass MLR: The paper successfully extends Distributionally Robust Optimization, previously focused on binary classification or regression, to the multiclass logistic regression setting using the Wasserstein metric. This is a significant theoretical contribution.
- Robustness-Regularization Connection: The derived matrix norm regularizer provides a clear theoretical link between achieving distributional robustness and applying specific regularization techniques in the multiclass setting. This offers a deeper understanding of why regularization can improve robustness.
- Efficient DRO Training for Deep Networks: The proposed random-layer training strategy for ViTs is a practical innovation. It makes DRO more accessible for deep learning by avoiding the computational burden of retraining entire networks, while still yielding substantial robustness improvements.
- Metric Learning for Feature Spaces: Adapting the Wasserstein metric to the transformed feature spaces of deep networks using metric learning is crucial for effectively applying DRO in these complex models. This allows the robustness mechanism to adapt to the learned representations.
- ViT Self-Attention Preservation: Visualizations show that DRO-MLR helps Vision Transformers maintain their ability to focus on important image regions (self-attention) even when the input is perturbed, unlike standard ERM models which can lose this capability.
Key Results
The paper demonstrates significant improvements in robustness for deep image classifiers, particularly Vision Transformers (ViTs), against both random and adversarial attacks:
- Reduced Test Error and Loss: When combined with adversarial training methods like PGD, DRO-MLR achieved substantial reductions in test error rate (up to 83.5%) and log-loss (up to 91.3%) compared to baseline methods on MNIST and CIFAR-10 datasets.
- Improved Performance with Adversarial Training: Combining DRO-MLR with existing adversarial training methods (ERM, BAT, PGD) consistently led to better performance than using those methods alone. PGD + DRO-MLR was particularly effective.
- Comparable Accuracy on Clean Data: DRO-MLR showed comparable performance to ERM on unperturbed data, indicating that robustness is achieved without sacrificing standard accuracy.
- Effectiveness of Last Layer Training: Applying DRO-MLR to just the final linear layer of a ViT model was shown to be a fast and effective way to improve robustness, reducing loss by up to 87.0% and error rate by up to 67.6% on MNIST.
Limitations and Future Work
- Computational Cost: While the random-layer training is more efficient, applying DRO-MLR to all layers can still be computationally intensive. The paper notes that applying DRO-MLR to the last layer of CNNs showed less significant improvement compared to ViTs, suggesting that the extent of DRO application matters.
- Hyperparameter Tuning: The regularization coefficient (ε) for the Wasserstein ball needs to be tuned, which is done using a validation set.
- Future Work: The authors suggest exploring the application of DRO-MLR to other deep learning architectures (like CNNs, as briefly shown) and investigating more advanced metric learning techniques. Further research into optimizing the random layer selection strategy could also be beneficial.
Summary updated