Constraining pseudo-label in self-training unsupervised domain adaptation with energy-based model

Lingsheng Kong, Bo Hu, Xiongchang Liu, Jun Lu, Jane You, Xiaofeng Liu

Abstract

Unsupervised Domain Adaptation (UDA) seeks to mitigate the performance degradation encountered when deep learning models are deployed on target domains that differ from their training source. While self-training via pseudo-labeling is a popular UDA strategy, it is often plagued by error propagation and overconfident, incorrect predictions. This paper introduces a novel framework that incorporates Energy-based Models (EBMs) to provide a "pseudo-label-irrelevant" regularization signal. By treating the classifier as an EBM, the authors stabilize the self-training process, ensuring the model finds high-confidence explanations for target data without being forced to commit to potentially erroneous labels. Experimental results on VisDA17, Office-31, and Cityscapes benchmarks demonstrate that this approach consistently outperforms existing self-training and adversarial methods.

Introduction

Deep learning models are notoriously sensitive to domain shift. A model trained on synthetic images (the source domain) often fails when applied to real-world photographs (the target domain). Unsupervised Domain Adaptation (UDA) addresses this by leveraging unlabeled target data to bridge the gap. Among UDA techniques, self-training has emerged as a powerful paradigm. In self-training, the model generates "pseudo-labels" for the target data and uses these predictions as ground truth for subsequent training iterations.

However, self-training is a double-edged sword. If the model's initial predictions on the target domain are incorrect—which is common due to the domain shift—the model effectively learns from its own mistakes. This "error propagation" leads to a feedback loop where the model becomes increasingly overconfident in its deviations. Existing solutions, such as manual label smoothing, often rely on static parameters that fail to adapt to the complexity of the data or the evolving state of the model.

Methodology: Energy-Based Constraints

To address the instability of self-training, the authors propose a framework that treats the standard discriminative classifier as an Energy-based Model (EBM). In this architecture, the network assigns a scalar "energy" value to every input. Low energy is associated with data that aligns with the training distribution, while high energy indicates outliers or unlikely configurations.

The authors introduce two primary implementations of this concept:

1. Regularization EBM (R-EBM)

R-EBM adds a simple energy minimization term to the standard self-training loss. The energy term, $E_w(x)$, is calculated using the LogSumExp of the network's output logits. The critical advantage of R-EBM is that it is "pseudo-label-irrelevant." Because the energy calculation does not depend on a specific chosen label, it acts as a sanity check. It forces the model to find some high-confidence explanation for the target data without being prematurely forced to commit to a specific, potentially incorrect, pseudo-label.

2. EBM Loss (L-EBM)

L-EBM is a more sophisticated variant that utilizes "soft" pseudo-labels—the raw probability distribution—to weight the energy minimization. To prevent the model from collapsing during the early stages of training, the authors implement a loss annealing scheme. This scheme begins with simple regularization and gradually transitions toward the full EBM loss as the model's confidence and accuracy improve.

Theoretical Justification

Beyond empirical performance, the authors provide a rigorous probabilistic foundation for their method. They prove that the EBM-constrained approach is a form of Classification Expectation Maximization (CEM). This theoretical link justifies why the method converges to a stable solution and provides a formal framework for understanding how energy minimization interacts with the classification objective.

Experimental Evaluation

The proposed method was evaluated on several prominent UDA benchmarks across image classification and semantic segmentation tasks.

Image Classification

On the VisDA17 challenge, which involves a shift from synthetic 3D models to real-world COCO images, the "CRST + L-EBM" approach achieved a mean accuracy of 80.4%, a significant improvement over the standard CRST baseline of 78.1%. On the Office-31 benchmark, the method reached a state-of-the-art mean accuracy of 88.6% (using a ResNet-50 backbone), outperforming sophisticated generative methods.

Semantic Segmentation

The framework was also tested on synthetic-to-real driving scene adaptation. On the GTA5 to Cityscapes task, the method achieved a mean Intersection over Union (mIoU) of 49.0%, representing a 2% improvement over standard self-training methods. Similar gains were observed on the SYNTHIA to Cityscapes dataset.

Key Insights

The success of the EBM-constrained framework can be attributed to several factors:

  • Decoupling Confidence from Correctness: By using a label-irrelevant energy term, the model can express confidence that an input belongs to a class without needing to be certain about which class initially.
  • Adaptive Regularization: Unlike fixed label smoothing, the EBM approach is inherently adaptive. The regularization signal evolves based on the input $x$ and the current network parameters $w$.
  • Plug-and-Play Integration: The method does not require architectural changes and can be integrated into existing state-of-the-art self-training pipelines (like CBST or CRST) as an additional loss term.

Conclusion and Future Work

The integration of Energy-based Models into self-training provides a robust mechanism for constraining pseudo-labels and preventing error propagation in UDA. While the results are compelling, the authors note that the L-EBM variant requires careful management of the loss annealing schedule to avoid early model collapse. Additionally, while the LogSumExp shortcut mitigates some computational costs, the full EBM loss adds complexity to the training loop. Future research may explore more advanced EBM training techniques or integration with other uncertainty-calibration methods to further enhance performance and stability.

Summary updated

BibTeX
@article{kong2022constraining,
  author = {Lingsheng Kong and Bo Hu and Xiongchang Liu and Jun Lu and Jane You and Xiaofeng Liu},
  title = {{Constraining pseudo-label in self-training unsupervised domain adaptation with energy-based model}},
  journal = {Int. J. Intell. Syst.},
  year = {2022},
  doi = {10.1002/int.22930},
}
Figure