Skip to main content
QUICK REVIEW

[논문 리뷰] CLIP-GEN: Language-Free Training of a Text-to-Image Generator with CLIP

Zihao Wang, Wei Liu|arXiv (Cornell University)|2022. 03. 01.
Handwritten Text Recognition TechniquesComputer Science인용 수 31
한 줄 요약

CLIP-GEN은 라벨이 없는 이미지와 CLIP priors를 사용하여 paired 텍스트-이미지 데이터 없이 일반 텍스트-이미지 생성기를 학습시키며, CLIP 이미지 임베딩을 VQGAN 토큰 시퀀스로 매핑하기 위해 트랜스포머를 학습합니다.

ABSTRACT

Training a text-to-image generator in the general domain (e.g., Dall.e, CogView) requires huge amounts of paired text-image data, which is too expensive to collect. In this paper, we propose a self-supervised scheme named as CLIP-GEN for general text-to-image generation with the language-image priors extracted with a pre-trained CLIP model. In our approach, we only require a set of unlabeled images in the general domain to train a text-to-image generator. Specifically, given an image without text labels, we first extract the embedding of the image in the united language-vision embedding space with the image encoder of CLIP. Next, we convert the image into a sequence of discrete tokens in the VQGAN codebook space (the VQGAN model can be trained with the unlabeled image dataset in hand). Finally, we train an autoregressive transformer that maps the image tokens from its unified language-vision representation. Once trained, the transformer can generate coherent image tokens based on the text embedding extracted from the text encoder of CLIP upon an input text. Such a strategy enables us to train a strong and general text-to-image generator with large text-free image dataset such as ImageNet. Qualitative and quantitative evaluations verify that our method significantly outperforms optimization-based text-to-image methods in terms of image quality while not compromising the text-image matching. Our method can even achieve comparable performance as flagship supervised models like CogView.

연구 동기 및 목표

  • 텍스트-이미지 데이터가 페어링되지 않은 상태에서 일반 텍스트-이미지 생성기를 학습시키는 것을 동기화한다.
  • 생성의 priors로 CLIP의 언어-비전 공동 임베딩을 활용한다.
  • 임베딩을 이산 이미지 토큰으로 매핑하기 위한 이미지 토크나이저와 조건부 자기회귀 트랜스포머를 개발한다.
  • 언어-프리 학습이 이미지 품질 및 텍스트-이미지 정렬에서 경쟁력 있는 성능을 달성한다를 Demonstrate 한다.

제안 방법

  • CLIP를 사용하여 공유 공간에서 단일한 이미지/텍스트 임베딩을 얻는다.
  • VQ-GAN 기반 이미지 토크나이저를 학습시켜 이미지를 이산 토큰으로 변환한다.
  • CLIP 임베딩(p(s|c))로부터 이미지 토큰을 예측하는 조건부 자기회귀 트랜스포머를 학습한다.
  • 학습 중 토큰 재구성과 임베딩-CLIP 일관성 손실을 최적화하여 디코딩된 이미지가 CLIP 임베딩과 정렬되도록 한다.
  • 추론 시 입력 텍스트를 CLIP 텍스트 임베딩으로 맵핑하고 트랜스포머를 통해 이미지 토큰을 생성한 뒤 이를 이미지로 디코딩한다.

실험 결과

연구 질문

  • RQ1페어링된 텍스트-이미지 데이터가 전혀 없는 상태에서 고품질의 일반 도메인 텍스트-이미지 생성기를 학습시킬 수 있는가?
  • RQ2CLIP의 언어-비전 priors를 활용하면 라벨이 없는 이미지 컬렉션에서도 일관된 텍스트-이미지 생성을 가능하게 하는가?
  • RQ3제안된 방법이 이미지 품질 및 텍스트-이미지 관련성 측면에서 최적화 기반 및 완전 지도 학습 텍스트-이미지 모델과 비교해 어떤 차이가 있는가?
  • RQ4라벨이 없는 데이터를 사용해 학습할 때 디스크리트 토큰 기반의 트랜스포머 방식이 일반 도메인 생성에 viable한가?

주요 결과

  • MS-COCO에서 방법은 강력한 FID 점수(FID-0 및 FID-1 최고) 및 대체 기반 대비 경쟁력 있는 IS 및 CapS를 달성한다.
  • ImageNet에서 접근 방식은 우호적인 FID 점수를 산출하며 고품질 이미지와 일관된 의미 분포를 나타낸다.
  • 정성적으로, 이 방법은 고충실도 이미지를 생성하고 상세한 질감을 보이며 out-of-distribution 및 스타일링 프롬프트에 일반화할 수 있다.
  • 이 모델은 대규모 페어링 데이터로 학습된 감독 트랜스포머 기반 모델인 CogView의 성능에 근접하면서도 라벨이 없는 이미지와 CLIP priors만 사용한다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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