Balanced Learning for Domain Adaptive Semantic Segmentation

Wangkai Li, Rui Sun, Bohao Liao, Zhaoyang Li, Tianzhu Zhang
2/14/2026

Official code: Woof6/BLDA (9 stars, last commit 2026-05-03). 1 more implementation below.

Abstract

Unsupervised domain adaptation (UDA) for semantic segmentation aims to transfer knowledge from a labeled source domain to an unlabeled target domain. Despite the effectiveness of self-training techniques in UDA, they struggle to learn each class in a balanced manner due to inherent class imbalance and distribution shift in both data and label space between domains. To address this issue, we propose Balanced Learning for Domain Adaptation (BLDA), a novel approach to directly assess and alleviate class bias without requiring prior knowledge about the distribution shift. First, we identify over-predicted and under-predicted classes by analyzing the distribution of predicted logits. Subsequently, we introduce a post-hoc approach to align the logits distributions across different classes using shared anchor distributions. To further consider the network's need to generate unbiased pseudo-labels during self-training, we estimate logits distributions online and incorporate logits correction terms into the loss function. Moreover, we leverage the resulting cumulative density as domain-shared structural knowledge to connect the source and target domains. Extensive experiments on two standard UDA semantic segmentation benchmarks demonstrate that BLDA consistently improves performance, especially for under-predicted classes, when integrated into various existing methods. Code is available at https://github.com/Woof6/BLDA.

View on arXivView PDF

Code Implementations(2)

Woof6/BLDAOfficial100%

Official implementation of "Balanced Learning for Domain Adaptive Semantic Segmentation" (ICML 2025)

90Shell, PythonJun 4, 20255 months ago
Junjue-Wang/LoveDACommunity72%
PyTorch

[NeurIPS 2021] LoveDA: A Remote Sensing Land-Cover Dataset for Domain Adaptive Semantic Segmentation

54766Shell, PythonOct 13, 20219 months ago
domain-adaptationpytorchremote-sensingsemantic-segmentation

Similar Papers

Cite this paper

@article{li2026balanced,
  title  = {Balanced Learning for Domain Adaptive Semantic Segmentation},
  author = {Wangkai Li and Rui Sun and Bohao Liao and Zhaoyang Li and Tianzhu Zhang},
  year   = {2026},
  eprint = {2512.06886},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2512.06886},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.06886.svg)](https://codeofpaper.com/paper/2512.06886)

Discussion