Skip to main content
QUICK REVIEW

[논문 리뷰] Planting a SEED of Vision in Large Language Model

Yuying Ge, Yixiao Ge|arXiv (Cornell University)|2023. 07. 16.
Multimodal Machine Learning ApplicationsComputer Science인용 수 10
한 줄 요약

SEED는 오프더셋 LLM이 LoRA-조정 다중모달 모델을 통해 이미지-텍스트와 텍스트-이미지 생성을 가능하게 하는 이산 이미지 토크나이저를 도입하며, 5M 이미지-텍스트 쌍과 1D 인과 토큰 설계를 사용합니다.

ABSTRACT

We present SEED, an elaborate image tokenizer that empowers Large Language Models (LLMs) with the emergent ability to SEE and Draw at the same time. Research on image tokenizers has previously reached an impasse, as frameworks employing quantized visual tokens have lost prominence due to subpar performance and convergence in multimodal comprehension (compared to BLIP-2, etc.) or generation (compared to Stable Diffusion, etc.). Despite the limitations, we remain confident in its natural capacity to unify visual and textual representations, facilitating scalable multimodal training with LLM's original recipe. In this study, we identify two crucial principles for the architecture and training of SEED that effectively ease subsequent alignment with LLMs. (1) Image tokens should be independent of 2D physical patch positions and instead be produced with a 1D causal dependency, exhibiting intrinsic interdependence that aligns with the left-to-right autoregressive prediction mechanism in LLMs. (2) Image tokens should capture high-level semantics consistent with the degree of semantic abstraction in words, and be optimized for both discriminativeness and reconstruction during the tokenizer training phase. As a result, the off-the-shelf LLM is able to perform both image-to-text and text-to-image generation by incorporating our SEED through efficient LoRA tuning. Comprehensive multimodal pretraining and instruction tuning, which may yield improved results, are reserved for future investigation. This version of SEED was trained in 5.7 days using only 64 V100 GPUs and 5M publicly available image-text pairs. Our preliminary study emphasizes the great potential of discrete visual tokens in versatile multimodal LLMs and the importance of proper image tokenizers in broader research.

연구 동기 및 목표

  • 자동회귀 LLM에 맞춰 시각적 표현과 텍스트 표현을 통합하는 토크나이저 설계의 동기를 부여합니다.
  • 1D 인과 의존성과 고수준 의미 토큰을 갖는 VQ 기반 이미지 토크나이저를 개발합니다.
  • SEED를 LLM과 LoRA를 통해 통합하면 비전-언어 및 언어-비전 태스크를 모두 가능하게 함을 보여줍니다.
  • 확립된 다중모달 기준선에 비해 제로샷 검색 및 생성 성능이 경쟁력을 지니는지 보여줍니다.
  • 제한된 계산 자원과 공개 이미지-텍스트 데이터를 사용한 확장 가능한 학습 레시피를 제시합니다.

제안 방법

  • ViT 인코더, Causal Q-Former, VQ 코드북, Reverse Q-Former, UNet 디코더를 갖춘 VQ 기반 이미지 토크나이저로 SEED를 설계합니다.
  • 1D 인과 주의집중과 이미지-텍스트 대조 손실을 사용해 16x16 ViT 특징에서 32 개의 인과 임베딩을 생성하도록 Causal Q-Former를 학습합니다.
  • VQ 코드북으로 인과 임베딩을 양자화하여 32개의 이산 시각 코드를 인과 의존성과 함께 생성합니다.
  • DIScrete 코드에서 Stable Diffusion 잠재공간과 정렬된 생성 임베딩으로 매핑하기 위해 Reverse Q-Former를 사용하여 이미지 합성을 가능하게 합니다.
  • 연속 임베딩을 이산 코드에서 재구성하는 디코더를 학습하고 이중 재구성 손실을 통해 생성 임베딩을 텍스트 특성과 정렬합니다.
  • LoRA로 5M 이미지-텍스트 쌍을 사용해 SEED-OPT 2.7B 모델을 미세조정하고 이미지-텍스트 및 텍스트-이미지 자동회귀 태스크를 수행합니다.
Figure 1: (a) The proposed SEED is a discrete image tokenizer, producing quantized visual codes with 1D causal dependency and high-level semantics. (b) SEED visual tokens enable LLMs to perform both visual comprehension and generation through multimodal autoregression with interleaved image-text dat
Figure 1: (a) The proposed SEED is a discrete image tokenizer, producing quantized visual codes with 1D causal dependency and high-level semantics. (b) SEED visual tokens enable LLMs to perform both visual comprehension and generation through multimodal autoregression with interleaved image-text dat

실험 결과

연구 질문

  • RQ1이산화되고 의미적으로 풍부한 이미지 토크나이저가 LLM 텍스트 토큰과 밀접하게 정렬되어 통합 다중모달 자동회회를 가능하게 할 수 있을까?
  • RQ21D 인과의 고수준 의미 이미지 토큰이 LLM 프레임워크 내에서 이미지 이해와 이미지 생성을 모두 촉진할 수 있을까?
  • RQ3사전 학습된 LLM과 LoRA로 통합될 때 SEED의 검색 및 생성 능력이 기존의 다중모달 기준선과 비교해 어떤가?
  • RQ4유지 가능한 의미 정렬을 보존하면서 보통의 컴퓨팅 및 데이터 규모로 이러한 토크나이저와 다중모달 모델을 효율적으로 학습하는 것이 가능한가?
  • RQ5SEED가 LLM과 결합될 때 제로샷 이미지 캡션 생성 및 시각적 질문 응답을 얼마나 잘 지원하는가?

주요 결과

  • SEED 토큰은 표준 벤치마크에서 BLIP-2와 비교해 제로샷 이미지-텍스트 검색에서 경쟁력을 보입니다.
  • 이산 SEED 토큰은 CLIP 기반 의미 정렬을 바탕으로 Stable Diffusion과 비교해도 이미지 생성 성능이 경쟁적입니다.
  • LoRA로 5M 이미지-텍스트 쌍을 학습한 SEED-OPT 2.7B는 이미지-텍스트 및 텍스트-이미지 자동회회를 시연합니다.
  • SEED는 이산 토큰을 Reverse Q-Former를 통해 SD-UNet 잠재공간으로 디코딩하여 사실적인 이미지 생성을 가능하게 합니다.
  • 정성적 시연에서 SEED가 감독된 VQA 미세조정 없이도 캡션을 생성하고 열린형 시각 질문에 답하는 것을 보여줍니다.
  • 이 접근 방식은 이산 시각 토큰이 LLM의 emergent 다중모달 능력을 효과적으로 지원할 수 있음을 시사합니다.
Figure 2: Overview of our SEED tokenizer, which produces discrete visual codes with causal dependency and high-level semantics.
Figure 2: Overview of our SEED tokenizer, which produces discrete visual codes with causal dependency and high-level semantics.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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