NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Transferability Estimation for Semantic Segmentation Task

Yang Tan, Yang Li, Shao-Lun HuangarXiv 2021

Introduction

In transfer learning, selecting the optimal pre-trained model from a diverse "model zoo" is a critical challenge. For tasks like image classification, analytical metrics have successfully predicted transferability without the need for exhaustive fine-tuning. However, extending these methods to semantic segmentation—a dense prediction task—presents a significant hurdle due to the massive dimensionality of pixel-level data. This paper addresses the computational cost of model selection by adapting the Optimal Transport based Conditional Entropy (OTCE) metric for semantic segmentation.

The OTCE Framework

The OTCE score characterizes transferability by evaluating two primary factors: domain difference (visual discrepancy between images) and task difference (discrepancy in labeling logic).

Overview of the OTCE metric calculation involving Optimal Transport and Conditional Entropy.

The metric aligns source and target domains using Optimal Transport (OT) to produce a coupling matrix. From this matrix, the Wasserstein Distance ($\hat{W}_D$) and Conditional Entropy ($\hat{W}_T$) are derived. The final OTCE score is a linear combination: $OTCE = \lambda_1 \hat{W}_D + \lambda_2 \hat{W}_T + b$. For practical implementation in this work, the authors focus primarily on the Conditional Entropy component to measure how well source labels predict target labels after alignment.

Adapting to Semantic Segmentation

To make OTCE feasible for dense prediction, the authors treat individual pixels as independent samples. Given that a single dataset can contain over $10^7$ pixels, running OT algorithms on the full set is computationally prohibitive.

Strategic Sampling

The core innovation is a robust sampling strategy designed to capture the statistical relationship between tasks with minimal data.

The proposed pixel-wise sampling strategy to handle the high dimensionality of segmentation data.
  1. Pixel-wise Construction: Every pixel's feature vector and label are treated as a data point.
  2. Random Sampling: Instead of millions of pixels, $N$ pixels (e.g., 10,000) are sampled from both source and target sets.
  3. Expectation over Repetitions: The process is repeated $K$ times (e.g., 10 iterations), and the results are averaged to ensure stability and robustness against sampling noise.

Evaluation and Results

The method was evaluated using major autonomous driving benchmarks: Cityscapes (real-world urban scenes), BDD100K (diverse driving data), and GTA5 (synthetic data).

The effectiveness was measured by the Pearson correlation between predicted OTCE scores and actual fine-tuned accuracies. Key findings include:

  • High Predictive Power: Intra-dataset tests on Cityscapes showed correlations up to 0.768, indicating strong predictive power.
  • Inter-dataset Reliability: The metric remained a reliable indicator even across significant domain gaps, such as synthetic-to-real transfer (GTA5 to Cityscapes).
  • Efficiency: The sparse sampling approach allows transferability estimation to run on standard workstations, eliminating the need for massive GPU clusters during the model selection phase.

Conclusion

This work demonstrates that the "pixel-as-a-sample" framework, combined with strategic sampling, effectively scales transferability metrics to dense prediction tasks. Future work may involve re-incorporating the Wasserstein distance to improve results for highly diverse datasets and investigating the impact of specific feature extraction layers on the final score.

Summary updated

BibTeX
@misc{tan2021transferability,
  author = {Yang Tan and Yang Li and Shao-Lun Huang},
  title = {{Transferability Estimation for Semantic Segmentation Task}},
  year = {2021},
  eprint = {2109.15242},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.15242},
}
Figure