Skip to main content
QUICK REVIEW

[논문 리뷰] Making LLaMA SEE and Draw with SEED Tokenizer

Yuying Ge, Sijie Zhao|arXiv (Cornell University)|2023. 10. 02.
Multimodal Machine Learning ApplicationsComputer Science인용 수 8
한 줄 요약

SEED는 1D 인과 토큰을 가진 이산 이미지 토크나이저를 도입하여 LLM이 시각 정보를 보고 그림을 그릴 수 있게 하며, 그 결과 SEED-LLaMA라는 멀티모달 LLM으로 확장된다. SEED-LLaMA는 단일 다음 단어 예측으로 상호배열된 시각 및 텍스트 데이터를 처리하도록 사전 학습되고 지시-미세조정된다.

ABSTRACT

The great success of Large Language Models (LLMs) has expanded the potential of multimodality, contributing to the gradual evolution of General Artificial Intelligence (AGI). A true AGI agent should not only possess the capability to perform predefined multi-tasks but also exhibit emergent abilities in an open-world context. However, despite the considerable advancements made by recent multimodal LLMs, they still fall short in effectively unifying comprehension and generation tasks, let alone open-world emergent abilities. We contend that the key to overcoming the present impasse lies in enabling text and images to be represented and processed interchangeably within a unified autoregressive Transformer. To this end, we introduce SEED, an elaborate image tokenizer that empowers LLMs with the ability to SEE and Draw at the same time. We identify two crucial design principles: (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. With SEED tokens, LLM is able to perform scalable multimodal autoregression under its original training recipe, i.e., next-word prediction. SEED-LLaMA is therefore produced by large-scale pretraining and instruction tuning on the interleaved textual and visual data, demonstrating impressive performance on a broad range of multimodal comprehension and generation tasks. More importantly, SEED-LLaMA has exhibited compositional emergent abilities such as multi-turn in-context multimodal generation, acting like your AI assistant.

연구 동기 및 목표

  • 단일 자기회귀 Transformer에서 텍스트와 이미지를 interchangeable하게 처리 가능하도록 통합 표현을 고안한다.
  • 단어와 의미적으로 고수준으로 정렬되고 인지형 1D 인과 토큰을 가지는 시각 토크나이저를 설계하며, 이는 LLM 학습 목표에 적합하다.
  • 기존 LLM 어휘에 이산 이미지 토큰을 추가하여 확장 가능한 멀티모달 사전학습 및 지시 튜닝을 가능하게 한다.
  • 다중턴 이미지-텍스트 생성 및 구성적 이미지 생성을 포함한 자기발현적 멀티모달 능력을 시연한다.

제안 방법

  • SEED를 제안한다. ViT 인코더, Causal Q-Former, VQ 코드북, MLP, UNet 디코더를 갖춘 VQ 기반 이미지 토크나이저.
  • 이미지-텍스트 자막과의 대조 학습을 사용하여 2D ViT 피처를 1D 인과 시퀀스 임베딩으로 변환하도록 Causal Q-Former를 학습시킨다.
  • 인과 임베딩을 VQ 코드북으로 이산화하여 32개의 인과 시각 코드를 생성한 다음, MLP로 디토큰화 해 image generation을 위한 unCLIP-SD 잠재공간과 정렬한다.
  • 일관된 다음 단어 예측 목표를 사용하여 상호 교차하는 이미지-텍스트, 비디오-텍스트, 이미지-텍스트 데이터에 대해 멀티모달 사전학습을 수행함으로써 SEED-LLaMA를 사전 학습시킨다.
  • 감독 미세조정(LoRA 기반의 이후 전체 미세조정)을 통해 SEED-LLaMA를 사람의 지시와 맞추기 위해 멀티모달 지시 튜닝을 적용한다.
  • 이미지 자막 생성, VQA, 비디오 QA, 텍스트-이미지 생성 등 멀티모달 이해 및 생성 과제에 대해 평가하고, 다중턴 인-컨텍스트 멀티모달 생성의 질적 시연을 포함한다.
Figure 1: The introduced SEED-LLaMA, a multimodal AI assistant, demonstrates emergent ability in the multi-turn in-context image and text generation given multimodal instructions.
Figure 1: The introduced SEED-LLaMA, a multimodal AI assistant, demonstrates emergent ability in the multi-turn in-context image and text generation given multimodal instructions.

실험 결과

연구 질문

  • RQ11D 인과 이산 이미지 토크나이저가 단어 토큰과 의미적으로 정렬되어 통합된 자기회귀 멀티모달 모델을 가능하게 할 수 있는가?
  • RQ2SEED가 원래의 다음 단어 예측 목표 내에서 확장 가능한 멀티모달 사전학습 및 지시 튜닝을 가능하게 하는가?
  • RQ3SEED-LLaMA가 보일 수 있는 자기발현적 멀티모달 능력은 무엇인가? 예: 다중턴 인-context 생성, 구성적 이미지 생성
  • RQ4기존 멀티모달 LLM 접근 방식과 비교하여 시각적 이해 및 생성 벤치마크에서 SEED의 성능은 어떠한가?

주요 결과

  • SEED 토크나이저는 이산적 인과 시각 코드를 생성하여 이미지-텍스트 검색 성능이 경쟁력 있고 고수준 의미 표현을 제공한다.
  • 고정된 SD-UNet을 사용한 SEED 토큰으로부터의 이미지 재구성은 입력 이미지와 의미적 일관성을 유지하며(CLIP 기반 유사도는 unCLIP-SD 상한 근처).
  • SEED-LLaMA는 이미지, 비디오, 텍스트 작업에서 경쟁력 있는 멀티모달 이해 및 생성 결과를 달성하고 다중턴 인-컨텍스트 멀티모달 생성 시연.
  • 지시 튜닝과 더 큰 모델 크기가 SEED-Bench 및 관련 벤치마크의 성능을 향상시킨다.
  • SEED는 지시로 안내되는 스타일화 이미지 생성, 이미지 블렌딩, 멀티모달 구성 등을 포함한 구성적 제로샷 이미지 생성을 가능하게 한다.
Figure 2: (a) SEED is a discrete image tokenizer, producing quantized visual codes with 1D causal dependency and high-level semantics. (b) With SEED tokenizer, LLM is able to perform scalable multimodal autoregression on interleaved visual and textual data with next-word-prediction objective.
Figure 2: (a) SEED is a discrete image tokenizer, producing quantized visual codes with 1D causal dependency and high-level semantics. (b) With SEED tokenizer, LLM is able to perform scalable multimodal autoregression on interleaved visual and textual data with next-word-prediction objective.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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