Skip to main content
QUICK REVIEW

[논문 리뷰] $f$-MICL: Understanding and Generalizing InfoNCE-based Contrastive Learning

Yiwei Lu, Guojun Zhang|arXiv (Cornell University)|2024. 02. 15.
Fuzzy Logic and Control SystemsComputer Science인용 수 5
한 줄 요약

이 논문은 InfoNCE를 f-상호정보(f-MICL)로 일반화하고 f-다변량 정보(또는 f-발산) 프레임워크를 도입하며, f-가우시안 유사성의 개념을 제시하고 다양한 아키텍처를 포함한 비전 및 언어 벤치마크에서 실험적 이점을 보인다.

ABSTRACT

In self-supervised contrastive learning, a widely-adopted objective function is InfoNCE, which uses the heuristic cosine similarity for the representation comparison, and is closely related to maximizing the Kullback-Leibler (KL)-based mutual information. In this paper, we aim at answering two intriguing questions: (1) Can we go beyond the KL-based objective? (2) Besides the popular cosine similarity, can we design a better similarity function? We provide answers to both questions by generalizing the KL-based mutual information to the $f$-Mutual Information in Contrastive Learning ($f$-MICL) using the $f$-divergences. To answer the first question, we provide a wide range of $f$-MICL objectives which share the nice properties of InfoNCE (e.g., alignment and uniformity), and meanwhile result in similar or even superior performance. For the second question, assuming that the joint feature distribution is proportional to the Gaussian kernel, we derive an $f$-Gaussian similarity with better interpretability and empirical performance. Finally, we identify close relationships between the $f$-MICL objective and several popular InfoNCE-based objectives. Using benchmark tasks from both vision and natural language, we empirically evaluate $f$-MICL with different $f$-divergences on various architectures (SimCLR, MoCo, and MoCo v3) and datasets. We observe that $f$-MICL generally outperforms the benchmarks and the best-performing $f$-divergence is task and dataset dependent.

연구 동기 및 목표

  • KL 기반의 상호정보(InfoNCE)를 넘어선 f-상호정보(f-MICL) 프레임워크로 대비 학습 확장하는 것.
  • 대비 목표에서 코사인 유사성의 대안이 더 나은 성능을 낼 수 있는지 조사하는 것.
  • 결합 특징 분포에 대한 가정 하에 실용적인 f-가우시안 유사성(s_f)을 개발하는 것.
  • 데이터셋, 아키텍처, 모달리티 전반에 걸쳐 f-MICL의 실질적 이점을 입증하는 것.
  • f-MICL을 기존 InfoNCE 기반 목표와 연결하고 정렬(alignment) 및 균일성(uniformity) 같은 이론적 속성을 제공하는 것.

제안 방법

  • MI를 f-MI 프레임워크로 일반화하고 대비 학습의 최적화를 위한 변분 하한을 도출한다.
  • f-MICL 목표를 제시: max_{s in F} E_{(x,y)~p+} s(g(x),g(y)) - E_{(x,y)~p×} f*∘s(g(x),g(y)).
  • 실용적인 유사도 측정으로 f-Gaussian 유사성 s_f(x^g,y^g) = f'∘G_σ(||x^g - y^g||^2) 를 도입한다.
  • 결합 특징 밀도가 단위 초구의 가우시안 커널에 비례한다는 가정을 통해 f 및 가우시안 사전들로부터 얻은 실용적인 s_f를 제시한다.
  • 배치에 대해 (1/N)∑ s_f(x_i^g,y_i^g) - (α/(N(N-1)))∑_{i≠j} f*∘s_f(x_i^g,x_j^g)를 제공한다.
  • 기존 목표(InfoNCE, AU, Spectral Contrastive Loss)와의 연결을 보이고 정렬/균일성 속성을 논의한다.
Figure 1 : Experiment for verifying Assumption 3 . Here we draw the relation between the squared distances $\|x^{g}-y^{g}\|^{2}$ and the averaged log likelihood $\log p_{g}$ , with $\log p_{g}$ estimated by the flow model RealNVP (Dinh et al., 2017 ) . ( left ) Gaussian prior; (right) Uniform prior.
Figure 1 : Experiment for verifying Assumption 3 . Here we draw the relation between the squared distances $\|x^{g}-y^{g}\|^{2}$ and the averaged log likelihood $\log p_{g}$ , with $\log p_{g}$ estimated by the flow model RealNVP (Dinh et al., 2017 ) . ( left ) Gaussian prior; (right) Uniform prior.

실험 결과

연구 질문

  • RQ1InfoNCE의 KL 기반 목표를 더 넓은 f-발산 가족으로 확장(f-MICL)하더라도 성능 저하 없이 가능하지 않을까?
  • RQ2대비 학습에서 유사도 측정으로 코사인 유사성이 최선의 선택인가, 아니면 f-Gaussian 또는 다른 유사도 함수가 더 나은 결과를 낼 수 있는가?
  • RQ3InfoNCE에서 f-MICL 프레임워크로 확장할 때 정렬과 균일성 같은 이론적/경험적 속성이 어떻게 전달되는가?
  • RQ4비전과 언어 과제에서 서로 다른 f-발산이 하위 표현에 미치는 영향을 평가할 수 있는가?

주요 결과

  • f-MICL은 서로 다른 f-발산에 따라 다양한 목표를 제공하며, 종종 InfoNCE와 비슷하거나 더 우수한 성능을 보인다.
  • 제안된 f-Gaussian 유사성은 테스트된 f-발산 전반에서 코사인 유사성보다 일관되게 더 나은 성능을 보인다.
  • InfoNCE는 f-MICL 목표의 상한으로서, 새로운 프레임워크를 기존 방법과 연결한다.
  • AU는 f-MICL 프레임워크의 특수한 경우로 보여지며, 정렬과 균일성 속성이 f-MICL로 확장됨을 시사한다.
  • 데이터셋/과제에 따라 선호하는 f-발산이 다르며 모든 설정에 단일 발산이 지배적이지 않다.
  • f-Gaussian 유사성은 CIFAR-10, STL-10, TinyImageNet, ImageNet 등에서 ViT-S를 사용하는 MoCo v3와 함께 성능을 향상시킨다.
Figure 2 : Network architecture of $f$ -MICL. $\mathtt{image}_{i}$ : the $i^{\rm th}$ image in the current batch; $f$ : the function used in the $f$ -mutual information (§ 2 ); $g$ : feature embedding; $t$ , $t_{1}$ , $t_{2}$ : augmentation functions drawn from the same family $\mathcal{T}$ of augme
Figure 2 : Network architecture of $f$ -MICL. $\mathtt{image}_{i}$ : the $i^{\rm th}$ image in the current batch; $f$ : the function used in the $f$ -mutual information (§ 2 ); $g$ : feature embedding; $t$ , $t_{1}$ , $t_{2}$ : augmentation functions drawn from the same family $\mathcal{T}$ of augme

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.