{'fraction_non_alphanumeric': 0.03033175355450237, 'fraction_numerical': 0.0037914691943127963, 'mean_word_length': 5.104046242774566, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
UBR2S: Uncertainty-Based Resampling and Reweighting Strategy for Unsupervised Domain Adaptation

Unsupervised domain adaptation (UDA) deals with the adaptation process of a model to an unlabeled target domain while annotated data is only available for a given source domain. This poses a challenging task, as the domain shift between source and target instances deteriorates a model’s performance when not addressed. In this paper, we propose UBR 2 S – the Uncertainty-Based Resampling and Reweighting Strategy – to tackle this problem. UBR 2 S employs a Monte Carlo dropout-based uncertainty estimate to obtain per-class probability distributions, which are then used for dynamic resampling of pseudo-labels and reweighting based on their sample likelihood and the accompanying decision error. Our proposed method achieves state-of-the-art results on multiple UDA datasets with single and multi-source adaptation tasks and can be applied to any off-the-shelf network architecture. Code for our method is available at https://gitlab. com/tringwald/UBR2S .