[논문 리뷰] MultiModal-GPT: A Vision and Language Model for Dialogue with Humans
MultiModal-GPT는 LoRA로 OpenFlamingo를 멀티모달 대화에 대해 파인튜닝하고, 통합 비전-언어 및 언어전용 지시 데이터를 사용해 다중 턴 인간 대화를 향상시킨다.
We present a vision and language model named MultiModal-GPT to conduct multi-round dialogue with humans. MultiModal-GPT can follow various instructions from humans, such as generating a detailed caption, counting the number of interested objects, and answering general questions from users. MultiModal-GPT is parameter-efficiently fine-tuned from OpenFlamingo, with Low-rank Adapter (LoRA) added both in the cross-attention part and the self-attention part of the language model. We first construct instruction templates with vision and language data for multi-modality instruction tuning to make the model understand and follow human instructions. We find the quality of training data is vital for the dialogue performance, where few data containing short answers can lead the model to respond shortly to any instructions. To further enhance the ability to chat with humans of the MultiModal-GPT, we utilize language-only instruction-following data to train the MultiModal-GPT jointly. The joint training of language-only and visual-language instructions with the \emph{same} instruction template effectively improves dialogue performance. Various demos show the ability of continuous dialogue of MultiModal-GPT with humans. Code, dataset, and demo are at https://github.com/open-mmlab/Multimodal-GPT
연구 동기 및 목표
- 다양한 비전-언어 지시를 따라갈 수 있는 다목적 멀티모달 대화 에이전트 개발을 촉진한다.
- 고정된 베이스 모델에서 Low-rank Adaptation (LoRA)을 활용해 효율적인 파인튜닝을 가능하게 한다.
- 비전-언어 데이터와 언어전용 데이터를 모두 학습시키기 위한 통합 지시 템플릿을 개발한다.
- 데이터 품질이 대화 성능에 미치는 영향을 조사하고 성능을 저하할 수 있는 데이터셋을 식별한다.
- 정성적 데모와 평가를 통해 지속적인 인간 유사 대화 능력을 시연한다.
제안 방법
- 베이스 아키텍처는 CLIP의 비전 인코더와 LLaMA 언어 디코더로 피드되는 Perceiver Resampler를 갖춘 OpenFlamingo를 기반으로 한다.
- LoRA가 파인튜닝 중 언어 디코더의 self-attention, cross-attention, feed-forward 네트워크에 적용된다.
- 언어전용 데이터와 비전-언어 데이터를 공통 학습 형식으로 변환하는 통합 지시 템플릿을 사용한다.
- 공동 학습은 언어전용 지시 데이터(예: Dolly 15k, Alpaca GPT4)와 비전-언어 지시 데이터(예: LLaVA, Mini-GPT4, A-OKVQA, COCO Caption, OCR VQA)를 모두 사용한다.
- 오직 응답 토큰과 EOS 토큰만 손실에 기여하며, 모델은 다음 토큰을 예측한다.
- 훈련 상세에는 8대의 A100 GPU, 한 에폭, GPU당 배치 크기 1, 그래디언트 누적, 그리고 LoRA 업데이트가 16 이터레이션마다 수행된다.

실험 결과
연구 질문
- RQ1 unified 비전-언어 및 언어전용 지시 템플릿이 공동 학습을 통해 효과적인 멀티모달 대화를 가능하게 할 수 있는가?
- RQ2학습 데이터의 품질과 구성이 멀티모달 대화 응답의 질과 길이에 어떤 영향을 미치는가?
- RQ3베이스 모델을 고정하고 LoRA를 사용해 타겟 구성요소를 최적화하면 강건한 멀티모달 대화 성능을 얻을 수 있는가?
- RQ4다양한 비전-언어 데이터셋을 포함하는 것이 지속적인 대화 능력에 어떤 영향을 미치는가?
- RQ5모델이 다중 턴 대화를 일관되게 유지하고 counting, description, general inquiries와 같은 작업을 수행할 수 있는가?
주요 결과
- 데이터 품질은 대화 성능에 결정적으로 영향을 미치며, 짧은 응답을 하는 데이터셋은 모델의 응답을 지나치게 간결하게 만들 수 있다.
- 비전-언어 데이터와 언어전용 지시 데이터를 모두 함께 학습하는 것이 둘 중 하나를 단독으로 사용할 때보다 대화 능력을 크게 향상시킨다.
- 저품질이거나 지나치게 간결한 데이터셋(예: VQA v2.0, OKVQA, GQA, CLEVR, NLVR)을 제외하면 빠른 응답으로의 성급함을 방지하고 사용자 친화성을 높인다.
- 통합 지시 템플릿은 두 데이터 모달리티를 효과적으로 활용해 멀티모달 이해 및 응답 생성을 향상시킨다.
- 이 접근 방식은 다양한 시演된 작업(예: 레시피, 식당 추천, OCR, counting)에서 인간과의 지속적 대화를 시연한다.
- 코드, 데이터셋, 데모는 프로젝트 리포지토리 https://github.com/open-mmlab/Multimodal-GPT 에서 확인 가능하다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.