【SemiDA】 LabOR paper review

  • Description: Inkyu Shin / LabOR- Labeling Only if Required for Domain Adaptive Semantic Segmentation / ICCV 2021

LabOR [Eng]

아래의 내용이 한국어로 적힌 글은 해당 포스트 아래에 있습니다.

1. Problem definition

  • Domain Adaptation (DA)

    • Domain adaptation is a field of computer vision.

    • The main goal of DA is to train a neural network on a source dataset and secure a good accuracy on the target dataset which is significantly different from the source dataset.

    • drawing

  • Unsupervised Domain Adaptation (UDA)

    • UDA has been actively studied, which is to transfer the knowledge from the labeled source dataset to the unlabeled target domain.
    • However, UDA still has a long way to go to reach the fully supervised performance
  • Domain Adaptation with Few Labels.

    • Due to the weakness of UDA, some researchers propose to use small parts of ground truth labels of the target dataset.
  • Semantic segmentation

    • The task of clustering parts of an image together which belong to the same object class, so-called a form of pixel-level prediction.

    • drawing

2. Motivation

  • In order to reduce the efforts of the human annotator, this work studies domain adaptation with the least labels of target dataset.
  • What points should be labeled to maximize the performance of the segmentation model?
  • This work aims to find these points, i.e, an efficient pixel-level sampling approach.
  1. Unsupervised Domain Adaptation
    • Adversarial learning approaches have aimed to minimize the discrepancy between source and target feature distribution
    • this approach has been studied mainly on output-level alignment [AdaptSeg, ADVENT].
    • But, despite much research on UDA, the performance of UDA is much lower than that of supervised learning.
  2. Domain Adaptation with Few Labels

Idea

  • This work utilizes “the novel predictor” to find uncertain regions that require human annotations and train these regions with ground truth labels in a supervised manner.
  • The uncertain regions would have the best potential performance increase instead of randomly picking labels.

3. Method

3.1 Method Summary

  • Please refer to [the below note-taken figure] and [the ordered method summary] together.
  • The below specification is corresponding to the green number in the figure.
  1. “The novel predictor”(pixel selector model (model B)) consists of a shared backbone model (Ex, Resnet50) and two pixel-level classifiers.
  2. A mini-batch of target data is passed through the backbone and both classifiers. Then we can extract two segmentation results.
  3. With two segmentation results, Inconsistent Mask(= Masks with different prediction results) is calculated.
  4. Among inconsistent mask, the human annotator give the real label, which is supervision signal for semantic segmentation model (model A)
  5. Both above-labeled target data and originally labeled source data are used for optimize semantic segmentation model (model A) while output-level adversarial learning[AdaptSeg] is also utilized.
  6. For updating classifiers in pixel selector model (model B), parameters in each classifier are applied to the loss to push away from each other, i.e, maximization of the discrepancy between the two classifiers [Maximum classifier discrepancy].

image

3.2 Details of methods

  • Loss1,2: With the labeled source data and a few labeled target data, Train a model by minimizing cross-entropy loss
  • Loss3: Adversarial learning (Details are in AdaptSeg, IAST paper)
  • Equ 4: Inconsistent Mask(= Masks with different prediction results)
  • Loss5: Pseudo label loss for pixel selector model
  • Loss6: The classifier discrepancy maximization (Details are in MCDDA paper)

image

3.3 Segment-based and Pinted-based

  • This work proposes two different labeling strategies, namely “Segment based Pixel-Labeling (SPL)” and “Point based Pixel-Labeling (PPL).”
  • SPL labels every pixel on the inconsistency mask in a segment-like manner.
  • PPL places its focus more on the labeling effort efficiency by finding the representative points. The process of finding this point is described below.
    1. Define the set of uncertain pixels D^(k)
    2. Compute the class prototype vector µ_(k) for each class k as the mean vectors of D^(k)
    3. Select the points that have the most similar probability pixels for each prototype vector.

image

4. Experiment & Result

Experimental setup

  • Dataset: The source dataset is GTA5 (synthetic dataset) and The target dataset is Cityscape(real-world data).
  • Implementation detail: (1) ResNet101 (2) Deeplab-V2

Result

results

  • Figure 1
    1. LabOR (PPL and SPL) significantly outperforms previous UDA models (IAST).
    2. SPL shows the performance comparable with fully supervised learning
    3. PPL achieves compatible performance improvements compared to WDA.
  • Table 1
    1. They show the quantitative results of both of our methods PPL and SPL compared to other state-of-the-art UDA methods.
    2. Even when compared to the fully supervised method, SPL is only down by 0.1 mIoU in comparison.
    3. PPL also shows significant performance gains over previous state-of the-art UDA or WDA methods.
  • Figure 2
    1. Qualitative result of SPL
    2. The proposed method, SPL, shows the correct segmentation result similar to the fully supervised approach.

5. Conclusion

  • This work proposes a new framework for domain adaptive semantic segmentation in a human-in-the-loop manner.
  • Two pixel-selection methods that we call “Segment based Pixel-Labeling” and “Point based Pixel-Labeling.” are introduced.
  • limitation (my thought)
    1. In SPL and PPL, human annotators need to label [2.2% area] and [40 labeled points] per image. It sounds like it needs a few labeled annotations and efforts. But if I were a human annotator, I may think the effort for labeling [2.2% area] and [40 labeled points] is equal to one for labeling a full image using Interactive segmentation tool. Specifically, labeling [2.2% area] is likely to be harder to label (see the image in Sec. 3.3).

Take home message (오늘의 교훈)

It may be more efficient to obtain a supervision signal at a low cost than using complex unsupervised methods to achieve very small performance gains.

LabOR [Kor]

English version of this article is available.

1. Problem definition (문제 정의)

  • Domain Adaptation (DA)

    • Domain adaptation 은 컴퓨터 비전 분야의 중요한 한 분야입니다.

    • Domain adpatation의 핵심 목표는, source domain을 가지고 학습한 신경망 모델이 target dataset에서도 좋은 성능이 나오도록 만드는 것 입니다. 일반적으로 Target dataset은 source와 많이 다른 스타일을 가지는 데이터셋 이기에, source에서 학습한 신경망이 target에서는 낮은 성능(심각한 성능 하락)을 보여주기도 합니다. 이러한 문제점을 해결하려고 하는 것이 DA의 핵심 목표입니다.

    • drawing

  • 비지도 Domain Adaptation (UDA)

    • label 정보를 모두 알고 있는 source dataset을 가지고 학습시킨 신경망 모델이 Target 도메인에서도 잘 동작하게 만드는 것을 목적으로 합니다. 이때 Target dataset은 label 정보를 가지고 있지 않습니다. 따라서 비지도학습 기법을 사용해서 모델을 추가 학습해야합니다.
    • UDA에 대한 많은 연구가 진행됐음에도 불구하고, 지도 학습으로 학습된 모델보다 현저히 낮은 성능을 보여줍니다.
  • 적은 target label을 가지고 Domain Adaptation.

    • 위와 같은 UDA의 약점 때문에, 몇 연구자들은 target dataset의 label 정보를 아주 조금만 사용하는 것을 고려하기 시작했습니다.
    • 아주 적은 label 정보를 모으는 것은 많은 자원과 비용을 필요로 하지 않는다는 생각이 반영된 연구입니다.
  • Semantic segmentation

    • 이미지 안에서 객체를 경계까지 정확하게 구분하는 과제를 말합니다. 픽셀 단위로 라벨링을 모두 수행합니다.

    • drawing

2. Motivation (연구 동기)

  • target label 정보를 최소한으로 사용해서 (주석자(라벨링 작업을 하는 사람)이 최소한의 노력과 시간만 투자해서) 모델의 성능을 최대한으로 끌어낼 방법을 고민합니다.
  • 이미지의 어떤 픽셀에 대한 라벨 정보를 주어야, 이미지 분할 모델이 최고의 성능으로 학습될 수 있을까? 라는 모티베이션을 가지고 연구된 논문입니다.
  • 즉 이 논문은 라벨링이 필요한 포인트를 찾기. 를 주요 과제로 삼습니다. 다시 말해 효율적인 픽셀 레벨 샘플링 작업이라고 표현할 수도 있습니다.
  1. 비지도 Domain Adaptation
    • Adversarial learning (적대학습) 은 source와 target을 모델을 사용해 추론했을 때 나오는 결과가, 피처의 분포 차이가 최소한으로 나오는것을 목표로 합니다.
    • 대표적인 논문으로는 [AdaptSeg, ADVENT] 이 있습니다.
    • 많은 비지도 DA 연구가 진행되어 왔음에도 불구하고, 이 기법을 사용해 개발된 모델과 지도 학습을 사용해 개발된 모델의 성능차이가 아직까지도 극명하게 나고 있습니다.
  2. 적은 target label을 가지고 Domain Adaptation.
    • 위와 같은 비지도 학습의 문제점을 해결하고자, 많은 연구자들은 자원이 너무 많이 필요하지 않는 선에서, 아주 조금의 라벨링 데이터를 사용하는 것을 시도했습니다. 대표적인 논문으로는 [Alleviating semantic-level shift, Active Adversarial Domain Adaptation, Playing for Data, DA_weak_labels] 이와 같은 것 들이 있습니다.
    • 이 논문들은 보통 이미지 단위 고려를 합니다. 즉 “어떤 이미지를 라벨링 하는게, 모델 성능을 최대로 만들까?” 라는 고민을 합니다.
    • 반대로, 이 논문은 “어떤 픽셀을 라벨링 하는게, 모델 성능을 최대로 만들까” 라는 고민을 합니다.

Idea (아이디어)

  • 이 논문은 새로운 예측 모델을 추가로 두고, 이것을 “불확실 영역”을 찾기 위해서 사용합니다. 이 “불확실 영역”만을 주석자가 라벨링한다면 적은 자원으로도 높은 성능을 가지는 모델을 만들 수 있을거라는 아이디어를 가지고 있습니다.
  • 이 “불확실 영역” 다르게 포현하면, 최고의 성능 잠재력을 가지고 있는 지점, 영역. 이라고 해석될 수 있습니다.

3. Method (방법론)

3.1 Method Summary (방법론 요약 정리)

  • 아래의 순서대로 기제된 방법과 이미지를 함께 보시길 바랍니다.
  • 아래의 설명 순서는 이미지 초록색 번호와 동일합니다.
  1. 픽셀 선택 모델 (pixel selector model)은 공유되는 하나의 backbone모델과 2개의 classifiers 모델로 구성됩니다.
  2. 하나의 target 미니배치 이미지들은 위 backbone과 2개의 classifier를 통과하여, 예측결과가 추론됩니다. 2개의 classifier를 사용해서 나오는 “2개의 이미지 분할 예측 결과”가 나온다고 할 수 있습니다.
  3. “2개의 이미지 분할 예측 결과”는 불일치성 마스크(Inconsistent Mask = 예측결과가 서로 다른 영역) 을 찾기 위해 사용됩니다.
  4. 위에서 찾은 불일치성 마스크 를 참고해서 주석자는 target 적은 라벨링을 수행합니다. 이러한 라벨링은 이미지 분할 모델(semantic segmentation model)을 학습하기 위해 사용됩니다.
  5. 위에서 얻은 target 적은 라벨과 원래 가지고 있던 source 라벨은 이미지 분할 모델을 지도 학습으로 학습하기 위해 사용됩니다. 동시에 적대적 학습법(adversarial learning [AdaptSeg])이 어떤 domain 이미지가 들어오든 비슷한 피처 분포를 가지게 하기 위해서 사용됩니다.
  6. 마지막으로, 픽셀 선택 모델을 학습하기 위해서 최대 차이 기법[Maximum classifier discrepancy] 이 사용됩니다. 이 기법은 두 classiifer안의 파라미터들이 서로를 밀며, 서로 멀어지게 유도하는 기법입니다.

image

3.2 Details of methods (방법론 세부사항)

  • Loss1,2: 원래 가지고 있던 source label과 주석자의 라벨링으로 만들어진 적은 target label을 가지고 Cross entropy loss가 UDA model(이미지 분할 모델)에 적용되어 학습됩니다.
  • Loss3: 적대적 학습법입니다. 자세한 사항은 다음 논문을 참고하면 됩니다. AdaptSeg
  • Equ 4: Inconsistent Mask 불일치성 마스크를 찾기 위한 공식입니다.
  • Loss5: 픽셀 선택 모델을 학습하기 위한 Pseudo(가짜) label loss입니다. Pseudo label(가짜 라벨)은 이미지 분할 모델이 예측한 결과를 그대로 사용합니다. 더 자세한 방법으로 해당 논문(IAST)의 방법을 그대로 사용했습니다.
  • Loss6: 최대 차이 기법 로스 함수 입니다. (The classifier discrepancy maximization) (자세한 사항은 이 논문 방법을 그대로 사용했습니다. MCDDA paper)

image

3.3 Segment-based (영역 기반 기법) and Pinted-based(포인트 기반 기법)

  • 이 논문이 라벨링 영역을 찾는 방법은 2가지로 나눠집니다. 하나는 영역 기반기법 “Segment based Pixel-Labeling (SPL)” 이고, 다른 하나는 포인트 기반 기법“Point based Pixel-Labeling (PPL).” 입니다.
  • SPL 은 두 classifier를 사용해 추론된 예측 결과의 차이 (위 the inconsistency mask 참조) 를 그대로 사용한 영역입니다.
  • 위 기법은 아래의 그림처럼, 굉장히 라벨링이 힘든 영역을 이기도 합니다. 더 좋은 효율성을 위해 PPL 기법은 위 영역 중 20~40개의 포인트만을 골라 사용하는 방법입니다. 아래는 이 포인트를 찾는 과정을 설명합니다.
    1. the set of uncertain pixels D^(k) 불확실성 영역에 대한 집합을 정의합니다.
    2. 각 클래스 마다 평균값을 사용하여 the class prototype vector (클래스 중앙값) 를 계산합니다.
    3. 클래스 중앙값과 가장 비슷한 원소를 찾아서, 그 포인트를 PPL을 위한 포인트라고 확정합니다.

image

4. Experiment & Result (실험 결과)

Experimental setup (실험 세팅)

  • 데이터셋: source dataset은 GTA5 (synthetic dataset)을 사용하였고, target dataset은 Cityscape(real-world data)를 사용헀습니다.
  • 실험에 사용한 모델은 다음과 같습니다. (1) ResNet101 (2) Deeplab-V2

Result

results

  • Figure 1
    1. LabOR (PPL and SPL) 기법이 기존의 비지도 DA 기법들(IAST) 좋은 성능을 가짐을 확인할 수 있습니다.
    2. SPL 기법은 지도학습과 거의 유사한 성능을 가지는 것은 굉장히 놀라운 사실입니다.
    3. PPL 은 최근의 준지도 학습법을 사용한 WDA 논문보다 더 좋은 성능을 가지는 것을 확인할 수 있습니다.
  • Table 1
    1. 이 테이블은 최근의 우수한 논문들과의 성능을 수치적으로 비교한 테이블 입니다.
    2. 여기서도, 아주 작은 라벨을 사용하는 준지도 학습법인 PPL과 전체 라벨을 사용하는 지도 학습의 성능이 비슷한 것을 정확히 볼 수 있습니다.
  • Figure 2
    1. 시각적 성능 차이를 보여줍니다.
    2. 논문에서 제안한 SPL 기법은 다른 기법보다 더욱 정확한 이미지 분할 결과를 만들어주는 것을 확인할 수 있습니다.

5. Conclusion (결론)

  • 이 논문은 적은 자원의 주석자 사용을 위한 도메인 적응형 이미지 분할 기법을 제안합니다.
  • 2개의 픽셀 선택 기법을 제안하는데, 하나는 영역기반(SPL)이며 하나는 포인트기반(PPL)입니다.
  • 한계점 (포스트 저자의 생각)
    1. 논문에 보면 SPL과 PPL 각각 한 이미지당 2.2%의 영역과 40 포인트를 라벨링 한다고 기록되어 있습니다. 이 소리는 충분히 굉장히 적은 라벨을 사용해서 효율적인 기법 처럼 들립니다. 하지만, ‘내가 만약 주석자 라면?’ 이라는 생각을 해봤을 때 (1) PPL 기법의 라벨링은 이미지 전체 라벨링 보다 힘든 작업 같아 보입니다. (섹션 3.3의 이미지 참고) (2) SPL 기법의 40포인트 또한 PPL기법의 포인트 중 하나이므로 대부분 객체 경계의 라벨이라고 고려됩니다. 따라서 이 또한 매우 힘든 작업 같아 보입니다.
    2. 이것이 정말 효율적이고 자원이 적게 필요한 작업인지는, 좀 더 많은 예제 이미지와 경험담 등을 통해서 비교할 필요가 있어보입니다.

Take home message (오늘의 교훈)

아주 조금의 모델 성능을 올리기 위해서 아주 복잡한 비지도 DA 기법을 사용하는 것보다, 비용을 최소한으로 필요로 하는 적은 라벨링만으로 모델의 성능을 매우 효과적으로 올릴 수 있다는 것을 잊지 말아야 한다.


© All rights reserved By Junha Song.