Skip to main content
QUICK REVIEW

[논문 리뷰] DeCap: Decoding CLIP Latents for Zero-Shot Captioning via Text-Only Training

Wei Li, Linchao Zhu|arXiv (Cornell University)|2023. 03. 06.
Multimodal Machine Learning ApplicationsComputer Science인용 수 24
한 줄 요약

DeCap은 가볍고 텍스트-데이터로 학습된 CLIP 기반 제로샷 캡션 프레임워크를 소개하며, 훈련이 필요 없는 시각-텍스트 임베딩 프로젝션으로 이미지 및 비디오 캡션 벤치마크에서 페어링 데이터 없이도 최첨단 성능을 달성합니다.

ABSTRACT

Large-scale pre-trained multi-modal models (e.g., CLIP) demonstrate strong zero-shot transfer capability in many discriminative tasks. Their adaptation to zero-shot image-conditioned text generation tasks has drawn increasing interest. Prior arts approach to zero-shot captioning by either utilizing the existing large language models (e.g., GPT-2) or pre-training the encoder-decoder network in an end-to-end manner. In this work, we propose a simple framework, named DeCap, for zero-shot captioning. We introduce a lightweight visual-aware language decoder. This decoder is both data-efficient and computation-efficient: 1) it only requires the text data for training, easing the burden on the collection of paired data. 2) it does not require end-to-end training. When trained with text-only data, the decoder takes the text embedding extracted from the off-the-shelf CLIP encoder as a prefix embedding. The challenge is that the decoder is trained on the text corpus but at the inference stage, it needs to generate captions based on visual inputs. The modality gap issue is widely observed in multi-modal contrastive models that prevents us from directly taking the visual embedding as the prefix embedding. We propose a training-free mechanism to reduce the modality gap. We project the visual embedding into the CLIP text embedding space, while the projected embedding retains the information of the visual input. Taking the projected embedding as the prefix embedding, the decoder generates high-quality descriptions that match the visual input. The experiments show that DeCap outperforms other zero-shot captioning methods and unpaired captioning methods on the typical image captioning benchmarks, i.e., MSCOCO and NoCaps.

연구 동기 및 목표

  • 텍스트-전용 학습을 사용하여 캡션화에 필요한 페어링된 이미지-텍스트 데이터에 대한 의존도를 줄인다.
  • CLIP의 정렬된 다중 모달 잠재 공간을 활용하여 시각 입력에 조건화된 캡션을 생성한다.
  • 이미지 및 텍스트 임베딩 간의 모달리티 격차를 해소하기 위한 학습 없는 프로젝션 메커니즘을 제안한다.
  • 이미지 및 비디오 캡션 벤치마크에서 강력한 제로샷 성능을 보여준다.

제안 방법

  • CLIP 텍스트 임베딩에 조건화된 문장을 재구성하도록 텍스트 디코더를 처음부터 학습한다(접두어 언어 모델링).
  • 고정된 CLIP 텍스트 인코더로 인코딩된 문장을 접두사로 사용하는 텍스트-전용 학습 목표를 활용한다.
  • 추론 시, CLIP 이미지 임베딩을 CLIP 텍스트 임베딩 공간으로 훈련 없이 메모리 기반의 프로젝션으로 매핑한다. 이는 텍스트 임베딩의 서포트 메모리에서 나온 메모리 기반의 학습-없는 프로젝션으로 CLIP 이미지 임베딩을 CLIP 텍스트 임베딩 공간으로 투사한다.
  • 코사인 유사도와 소프트맥스를 사용하여 텍스트 임베딩의 가중 합을 계산하고 이를 생성용 프로젝션 접두어로 형성한다.
  • 프로젝션된 텍스트 공간 임베딩에 조건화된 트랜스포머 기반 디코더로 캡션을 디코딩한다.
  • 모달리티 격차 효과를 분석하기 위해 추론 전략(CLIPRe, VD, NND)과의 비교를 선택적으로 수행한다.

실험 결과

연구 질문

  • RQ1CLIP 텍스트 임베딩을 조건으로 하는 텍스트-전용 학습 디코더가 제로샷 설정에서 시각 입력에 대해 고품질 캡션을 생성할 수 있는가?
  • RQ2이미지 임베딩에서 CLIP 텍스트 임베딩 공간으로의 학습-없는 프로젝션이 캡션 작성을 위한 모달리티 격차를 효과적으로 해소하는가?
  • RQ3표준 캡션 벤치마크에서 제로샷 및 크로스도메인 설정, 그리고 비디오 캡션 작업에서 DeCap의 성능은 어떠한가?

주요 결과

  • DeCap은 페어링된 데이터가 없는 방법들 중에서 MSCOCO와 NoCaps에서 제로샷 캡션에 대한 최첨단 성능을 달성한다.
  • 프로젝션 기반 디코딩 메커니즘이 모달리티 격차를 크게 줄이고 이미지 및 비디오 벤치마크 전반에서 캡션 품질을 향상시킨다.
  • 도메인 관련 소스의 텍스트 데이터(예: CC3M-text, SS1M, Book Corpus)로 학습된 DeCap은 일반 베이스라인보다 강한 결과를 얻고 강한 교차도메인 일반화 능력을 보인다.
  • 텍스트-전용 디코더를 이용한 신경 디코딩은 많은 제로샷 시나리오에서 검색 기반 및 직접 임베딩 접근법을 능가할 수 있다.
  • 비디오 캡션 성능은 MSR-VTT 및 ActivityNet-Captions에서 경쟁력 있는 제로샷 성능을 보이며, 디코더 학습에 도메인 특화 텍스트 데이터를 사용할 때 추가 이점을 얻는다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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