Skip to main content
QUICK REVIEW

[논문 리뷰] Dimba: Transformer-Mamba Diffusion Models

Zhengcong Fei, Mingyuan Fan|arXiv (Cornell University)|2024. 06. 03.
Vibration and Dynamic AnalysisEngineering인용 수 6
한 줄 요약

Dimba는 텍스트-이미지 생성을 위해 Transformer와 Mamba 계층을 교차-attention으로 쌓은 하이브리드 확산 모델을 도입해 메모리 사용을 줄이고 유연한 처리량을 유지하며 경쟁력 있는 품질을 달성합니다. 또한 대규모 생성의 효율성을 위한 데이터셋 구성, 품질 조정 및 해상도 적응을 탐구합니다.

ABSTRACT

This paper unveils Dimba, a new text-to-image diffusion model that employs a distinctive hybrid architecture combining Transformer and Mamba elements. Specifically, Dimba sequentially stacked blocks alternate between Transformer and Mamba layers, and integrate conditional information through the cross-attention layer, thus capitalizing on the advantages of both architectural paradigms. We investigate several optimization strategies, including quality tuning, resolution adaption, and identify critical configurations necessary for large-scale image generation. The model's flexible design supports scenarios that cater to specific resource constraints and objectives. When scaled appropriately, Dimba offers substantial throughput and a reduced memory footprint relative to conventional pure Transformers-based benchmarks. Extensive experiments indicate that Dimba achieves comparable performance compared with benchmarks in terms of image quality, artistic rendering, and semantic control. We also report several intriguing properties of architecture discovered during evaluation and release checkpoints in experiments. Our findings emphasize the promise of large-scale hybrid Transformer-Mamba architectures in the foundational stage of diffusion models, suggesting a bright future for text-to-image generation.

연구 동기 및 목표

  • 메모리와 처리량의 균형을 맞추기 위한 하이브리드 어텐션-상태 공간 아키텍처 도입의 필요성 제시
  • conditioning을 위한 Transformer와 Mamba 계층을 교차-attention으로 번갈아 배치하는 Dimba 확산 백본 개발
  • 미적 요소에 중점을 둔 고품질의 이미지-텍스트 데이터 큐레이션 및 품질 조정과 해상도 적응 적용
  • Dimba가 자원 사용을 줄이면서도 경쟁력 있는 이미지 품질과 의미적 제어를 달성함을 입증

제안 방법

  • conditioning을 위한 어텐션-크로스링크를 교차시키며 Transformer와 Mamba 계층을 교대로 배치하는 Dimba 블록 도입
  • 시간 정보에 대한 글로벌 공유 MLP와 안정화를 위한 AdaLN 계층 사용
  • 자동 라벨링 공유(Share-Captioner)와 LAION 미학 예측기 를 활용한 미학적으로 밀집된 캡션의 대용량 내부 데이터셋으로 학습
  • 과대적합을 피하기 위한 소 배치 크기와 조기 중단으로 고품질 데이터에 대한 품질 조정 적용
  • 학습 없이도 고해상도 출력을 가능하게 하는 PE 보간을 통한 해상도 스케일링 탐구
  • COCO 제로샷에서의 FID, T2I-컴벤치 정렬, 사람/AI 선호도 연구를 통한 평가

실험 결과

연구 질문

  • RQ1하이브리드 Transformer–Mamba 아키텍처가 확산 모델의 메모리 사용량과 처리량에 어떤 영향을 미치는가?
  • RQ2교차-attention이 텍스트-이미지 생성을 위한 혼성 아키텍처 백본의 조건부 설정에 효과적인가?
  • RQ3이미지 품질, 의미적 정렬 및 효율성을 균형잡게 달성하기 위한 데이터 큐레이션 및 학습 전략은 무엇인가?
  • RQ4해상도 적응이 하이브리드 백본과 어떻게 상호작용하여 고해상도 생성을 가능하게 하는가?

주요 결과

  • Dimba는 COCO 제로샷에서 FID-30K 8.93을 달성하고, 선택된 기준선 대비 학습 시간은 11.2%, 학습 샘플은 2.0%에 불과합니다.
  • Dimba-G는 이미지-텍스트 정렬 지표에서 T2I-컴벤치에서 모범적인 성능(속성 바인딩, 객체 관계, 복합 구도)을 보입니다.
  • 품질 조정 및 긴 캡션 데이터를 통한 데이터 큐레이션은 미적 및 의미적 품질을 개선하고, PE 보간은 더 높은 해상도에서의 수렴 속도를 가속화합니다.
  • Dimba는 어텐션-대-Mamba 비율(K)을 조정하고 안정성을 위한 AdaLN를 활용하여 유연한 메모리/처리량 트레이드오프를 제공합니다.
  • 대형 순수 트랜스포머 기반 기준선과 비교하여 Dimba는 학습 자원의 약 2%로 유사한 FID 점수를 달성합니다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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