[논문 리뷰] source free domain adaptation via distribution estimation
어디까지나 뇌피셜인 블로그
논문 링크 : https://arxiv.org/pdf/2204.11257.pdf
Motivation
domain adaptation 은 source dataset으로 train된 model을 unlabeled target dataset에 사용하려는 task이다. source dataset과 real-world는 다르므로 source dataset으로 train된 모델을 general하게 사용하기는 어렵기 때문에 관심을 얻고 있다. domain adaptation은 곧 source dataset의 distribution과 target dataset의 distribution이 다른 문제를 말하는 domain shift problem을 푸는 것과 같다.
그 중에서도 source dataset에 접근하지 않고 source dataset으로 train된 model의 weight만을 사용해 domain adaptation 하는 task를 source free domain adaptation이라고 하고, 이 논문에서는 source domain의 distribution을 estimation 하는 방법을 사용한다.
먼저 선행되어야 하는 notation들을 소개한다.
source dataset 을
따라서 linear classifier
각 element는 feature와 weight vector의 dot product이고, k-th class의 data는 k-th weight vector of
Method
1) Pseudo-labeling by exploiting anchors
본 논문에서는 spherical k-means 를 통해 target data를 cluster하고 pseudo label 을 부여한다. initial center 는 anchor들로 선정한다 :

2) Source distribution estimation
SFDA task는 traditional DA 와 달리 source data의 distritubution을 알지 못하므로, 본 논문에서는 source feature distribution을 estimation 한다. 첫 번째로, source data의 feature representation은 class-conditioned multivariate Gaussian distribution을 따른다고 가정한다 :
아무튼 surrogate distribution
여기서 의미하는 바는 estimated source feature mean의 scale은 target feature의 scale과 같고 direction은 anchor 와 같다는 것이다. 그리고 covariance matrix는 이전의 연구들에서 class conditioned covariance 가 activated semantic direction과 서로다른 feature channel간의 correlation을 나타낸다는 것을 밝혔다고 한다.. ;; 읽어봐야겠다. 왜? 직관적으로 잘 와닿지 않는다.
본 논문에서는 target feature의 intra-class semantic information 이 source 와 roughly consistent한다고 가정한다.
따라서 source covariance의 estimator 를 target feature의 statistics로 구한다.
where
아무튼
anchors와 target features를 이용하여,
를 derive한다. where we can sample surrogate features
3) Source-free domain adaptation
이전 section에서, pretrained model에 보존된 domain knowledge를 이용하여 accessing source data 없이 source distribution 을 estimate 했다. 따라서 이제 surrogate source data인 estimated distritubution으로부터 data 를 sample하여 SFDA 문제는 traditional DA 문제로 바뀌게 된다. 여기서 Contrastive Domain Discrepancy (CDD) 를 targe domain과 estimated source distribution을 explicitly align 하기 위해 사용한다.