Skip to main content
QUICK REVIEW

[논문 리뷰] Chameleon: Mixed-Modal Early-Fusion Foundation Models

Chameleon Team|arXiv (Cornell University)|2024. 05. 16.
Multimodal Machine Learning ApplicationsComputer Science인용 수 14
한 줄 요약

Chameleon은 초기 융합(token-based) 다중모달 모델 패밀리로, 이미지와 텍스트의 인터리브 시퀀스를 처리하기 위해 처음부터 학습되었으며, 최첨단 비전-언어 결과와 강력한 텍스트 전용 성능을 달성하고, 장문 혼합모달 생성에서 주목할 만한 성공을 거둠.

ABSTRACT

We present Chameleon, a family of early-fusion token-based mixed-modal models capable of understanding and generating images and text in any arbitrary sequence. We outline a stable training approach from inception, an alignment recipe, and an architectural parameterization tailored for the early-fusion, token-based, mixed-modal setting. The models are evaluated on a comprehensive range of tasks, including visual question answering, image captioning, text generation, image generation, and long-form mixed modal generation. Chameleon demonstrates broad and general capabilities, including state-of-the-art performance in image captioning tasks, outperforms Llama-2 in text-only tasks while being competitive with models such as Mixtral 8x7B and Gemini-Pro, and performs non-trivial image generation, all in a single model. It also matches or exceeds the performance of much larger models, including Gemini Pro and GPT-4V, according to human judgments on a new long-form mixed-modal generation evaluation, where either the prompt or outputs contain mixed sequences of both images and text. Chameleon marks a significant step forward in a unified modeling of full multimodal documents.

연구 동기 및 목표

  • 이미지와 텍스트의 임의의 인터리브 시퀀스를 추론하고 생성할 수 있는 통합된 조기 융합 다중모달 모델을 개발한다.
  • 대규모에서 토큰 기반 혼합모달 학습을 위한 학습 안정화 및 정합성 확보.
  • 비전-언어 과제에서 최첨단 성능을 입증하는 동시에 텍스트 전용 벤치마크에서도 경쟁력을 유지한다.
  • 장문 혼합모달 생성 및 사람 평가가 포함된 개방형 과제에서의 능력을 선보인다.

제안 방법

  • 새로운 512x512 이미지 토크나이저를 통해 이미지를 이산 토큰으로 표현하고, 코드북 8192에서 1024 토큰을 생성한다.
  • 약 10조 토큰 규모의 교차 텍스트, 이미지 및 코드 데이터를 사용하여 처음부터 균일한 트랜스포머를 학습한다.
  • 혼합모달 설정에서 학습 안정화를 위해 쿼리-키 정규화(QK-Norm) 및 정규화 재배치를 비롯한 아키텍처 혁신을 적용한다.
  • 두 단계 사전 학습 데이터 혼합을 사용하고(첫 번째 단계 대규모 비지도 데이터, 두 번째 단계 더 품질이 높은 데이터), 소프트맥스 로짓을 제어하기 위한 z-loss 정규화를 포함한다.
  • 능력 및 안전성을 정렬하기 위해 범주별로 감독 학습 데이터(SFT)로 미세조정한다(Text, Code, Visual Chat, Image Generation, Interleaved Generation, Safety).
  • 모달리티 인식 마스킹과 토큰 수준 제어를 갖춘 인터리브 생성 스트리밍을 위한 맞춤형 추론 파이프라인을 개발한다.
Figure 1 : Chameleon represents all modalities — images, text, and code, as discrete tokens and uses a uniform transformer-based architecture that is trained from scratch in an end-to-end fashion on $\sim$ 10T tokens of interleaved mixed-modal data. As a result, Chameleon can both reason over, as we
Figure 1 : Chameleon represents all modalities — images, text, and code, as discrete tokens and uses a uniform transformer-based architecture that is trained from scratch in an end-to-end fashion on $\sim$ 10T tokens of interleaved mixed-modal data. As a result, Chameleon can both reason over, as we

실험 결과

연구 질문

  • RQ1단일의 조기 융합 토큰 기반 모델이 이미지와 텍스트의 혼합 시퀀스를 함께 추론하고 생성할 수 있는가?
  • RQ2대규모 혼합모달 학습을 안정화하기 위해 어떤 학습 및 아키텍처 조정이 필요한가?
  • RQ3혼합모달 모델이 비전-언어 과제 및 장문 생성에서 특화된 다중모달 또는 텍스트 전용 모델과 어떻게 비교되는가?
  • RQ4다양한 모달리티에 걸친 감독 학습 파인튜닝으로 확장할 때 안전성과 정합성은 어떤 결과를 보이는가?

주요 결과

  • Chameleon-34B가 시각 질문 응답 및 이미지 캡션 벤치마크에서 최첨단 성능을 달성한다.
  • Chameleon은 Mixtral 8x7B 및 Gemini-Pro와 비교했을 때 상식 추론 및 독해 과제에서 텍스트 전용 벤치마크와 동등하거나 그 이상을 달성한다.
  • 장문 혼합모달 생성에 대한 인간 평가에서 Chameleon-34B는 Gemini-Pro 및 GPT-4V에 비해 선호도에서 상당히 우수하게 나타났다(60.4% vs. Gemini-Pro 및 51.6% vs. GPT-4V).
  • Chameleon은 단일 모델 내에서 비자루의 이미지 생성을 비정형적으로 수행하고 개방형 다중모달 문서 모델링을 가능하게 한다.
  • 모델은 34B 매개변수까지 확장되며 안정적인 학습 기본으로 여러 벤치마크에서 더 큰 모델과 경쟁력 있는 성능을 달성한다.
Figure 2 : Sample interleaved image and text generation from Chameleon. The corresponding images are generated in locations marked by <img> .
Figure 2 : Sample interleaved image and text generation from Chameleon. The corresponding images are generated in locations marked by <img> .

이 논문 읽기

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

누빈트에서 이 논문 읽기

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