[Paper Review] Coping with Label Shift via Distributionally Robust Optimisation
This paper proposes AdvShift, a distributionally robust optimisation (DRO) method that trains a single classifier robust to arbitrary label shifts by minimizing worst-case risk over a KL-divergence ball around the training label distribution. The method uses a gradient descent-proximal mirror ascent algorithm to stabilize training and achieves significant performance gains over baselines on CIFAR-100 and ImageNet under adversarial label shift.
The label shift problem refers to the supervised learning setting where the train and test label distributions do not match. Existing work addressing label shift usually assumes access to an \emph{unlabelled} test sample. This sample may be used to estimate the test label distribution, and to then train a suitably re-weighted classifier. While approaches using this idea have proven effective, their scope is limited as it is not always feasible to access the target domain; further, they require repeated retraining if the model is to be deployed in \emph{multiple} test environments. Can one instead learn a \emph{single} classifier that is robust to arbitrary label shifts from a broad family? In this paper, we answer this question by proposing a model that minimises an objective based on distributionally robust optimisation (DRO). We then design and analyse a gradient descent-proximal mirror ascent algorithm tailored for large-scale problems to optimise the proposed objective. %, and establish its convergence. Finally, through experiments on CIFAR-100 and ImageNet, we show that our technique can significantly improve performance over a number of baselines in settings where label shift is present.
Motivation & Objective
- Address the challenge of label shift in real-world deployment where test label distributions differ from training distributions.
- Overcome limitations of existing methods that require access to unlabelled test data for distribution estimation.
- Develop a single, robust classifier that generalizes well across multiple test environments with varying label distributions.
- Formulate label shift robustness as a min-max game using distributionally robust optimisation (DRO) to ensure worst-case performance across shifted distributions.
- Design a scalable, stable optimisation algorithm for large-scale datasets like ImageNet, avoiding instability from naive gradient estimation under adversarial distributions.
Proposed method
- Formulate the label shift problem as a distributionally robust optimisation (DRO) objective that minimises the worst-case expected loss over all label distributions within a KL-divergence ball of the empirical training distribution.
- Introduce a gradient descent-proximal mirror ascent algorithm to jointly optimise the model parameters and the adversary’s distribution, ensuring stable and efficient training.
- Apply a gradient stabilisation term (additive epsilon) to prevent numerical instability during updates, particularly near the simplex vertices.
- Incorporate a loss clipping mechanism to control gradient variance and prevent divergence during training under high adversarial radii.
- Use a dual optimisation strategy where the adversary dynamically adjusts label weights to maximise the model’s loss, simulating worst-case label shifts.
- Leverage the structure of the KL-ball to enable efficient and analytically tractable updates for the adversary’s distribution, avoiding costly subproblem solves.
Experimental results
Research questions
- RQ1Can a single classifier be trained to be robust to arbitrary label shifts without requiring access to unlabelled test data?
- RQ2How can distributionally robust optimisation be effectively applied to the label shift problem with stable and scalable training?
- RQ3What is the impact of dynamic adversarial distribution updates on model generalisation across both easy and hard classes?
- RQ4How do hyperparameters like loss clipping threshold and gradient stabilisation affect model robustness under increasing label shift severity?
- RQ5Does the proposed DRO-based method reduce worst-case error while maintaining good performance on easy classes, avoiding underfitting?
Key findings
- AdvShift significantly reduces worst-case error on both training and validation sets across CIFAR-100 and ImageNet, especially under adversarial label shifts.
- The model trained with AdvShift achieves lower upper-tail error on hard classes (e.g., up to 80% error in baseline) compared to standard training and baseline DRO methods.
- The algorithm maintains stable training dynamics through gradient stabilisation and loss clipping, with performance degrading sharply when these components are omitted or poorly tuned.
- The adversarial distribution evolves from uniform to concentrating on a few hard labels (e.g., 2× higher weight), reflecting the model’s learned difficulty landscape.
- Performance on easy classes initially lags in training but eventually converges to a better generalisation gap than baseline models, indicating robustness without underfitting.
- The ablation study confirms that both loss clipping and gradient stabilisation are critical: suboptimal values lead to performance degradation, especially as the adversarial radius increases.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.