TL;DR
This paper introduces a novel method, UTDC, for calibrating the confidence scores of neural networks in unsupervised domain adaptation (UDA) settings. Unlike previous methods that rely on source domain data and can be overly optimistic, UTDC directly calibrates on the target domain by estimating its accuracy, leading to significantly improved calibration performance.
What Problem Does This Paper Address?
Deep Neural Networks (DNNs) are powerful tools, but their confidence scores often don't accurately reflect their true prediction probabilities, a phenomenon known as overconfidence. Calibration aims to fix this, ensuring that a model's predicted probability of being correct matches its actual probability. This becomes particularly challenging in Unsupervised Domain Adaptation (UDA), where a model trained on a source domain is applied to a different target domain with unlabeled data. The domain shift (differences in data distributions) and the lack of target labels make direct calibration impossible. Existing UDA calibration methods often use source domain data to approximate target domain statistics, leading to an overly optimistic view of accuracy and poor calibration on the target domain.
Methods
The core of the proposed method, Unsupervised Target Domain Calibration (UTDC), is to calibrate the network's confidence directly on the target domain. The key challenge here is estimating the network's accuracy on the target domain without labels. UTDC tackles this by:
- Estimating Target Domain Accuracy: They leverage existing techniques (like Meta, ATC, or PN) to estimate the overall accuracy of the adapted model on the unlabeled target data.
- Binning and Rescaling Accuracy: The source domain data is divided into bins based on confidence scores, and the average accuracy within each bin is computed. The estimated target domain accuracy is then used to rescale these source bin accuracies to estimate the target domain bin accuracies. This step is crucial because it accounts for the domain gap.
- Calibrating on Target Data: Using these estimated target bin accuracies and the actual confidence scores from the target data, UTDC minimizes a UDA-specific adaptive Expected Calibration Error (adaECE) to find the optimal calibration parameters (e.g., temperature for temperature scaling).
This approach directly addresses the domain shift problem by using target domain data for calibration and by explicitly estimating target domain accuracy.
Datasets
The paper evaluates its method on several standard real-world domain adaptation benchmarks:
- Office-home: Includes four domains (Art, Real-World, Clipart, Product).
- Office-31: Contains three domains (Amazon, Webcam, DSLR).
- VisDa-2017: A large simulation-to-real dataset with 12 categories.
- DomainNet: A large-scale dataset with six domains (Clipart, Infograph, Painting, Quickdraw, Real, Sketch).
Key Insights and Ideas
- The "Accuracy Gap" is the Root Cause: The paper strongly argues that the primary reason for poor calibration in UDA is the discrepancy between the model's accuracy on the source domain and its (lower) accuracy on the target domain. Previous methods that ignore this gap fail.
- Direct Target Domain Calibration is Key: Calibrating directly on the target domain, rather than relying solely on source domain statistics, is essential for effective UDA calibration.
- Importance Weighting (IW) is Insufficient: The authors demonstrate that methods relying on importance weighting, which try to re-weight source samples to match the target distribution, do not effectively address the accuracy gap and thus perform poorly.
- Estimated Target Accuracy is Robust: UTDC's performance is shown to be relatively robust to minor errors in target accuracy estimation, making it practical for real-world scenarios where perfect estimation is impossible.
Key Results
- Significant Improvement: UTDC consistently and significantly outperforms existing UDA calibration methods across all tested datasets and UDA tasks.
- Near-Oracle Performance: UTDC achieves calibration results that are very close to "oracle" methods that have access to the true target labels, demonstrating its effectiveness.
- Reduced Calibration Error: Tables in the paper show substantial reductions in adaECE scores compared to baselines. For instance, on Office-home, UTDC achieves adaECE scores around 5-7, while baselines often range from 15-30 or higher.
- Better Temperature Scaling: UTDC's computed calibration temperatures are closer to the optimal values compared to source-domain-based methods, leading to better calibration.
Limitations and Future Work
- Reliance on Target Accuracy Estimation: The performance of UTDC is dependent on the quality of the target domain accuracy estimation method used. While the paper shows robustness, significant errors in estimation could still impact results.
- Parametric Calibration: The current work focuses on parametric calibration methods (like Temperature Scaling).
- Future Directions: The authors suggest extending these ideas to:
- Domain shift problems in regression and segmentation tasks.
- Non-parametric calibration methods, such as conformal prediction.
Summary updated