Skip to main content
QUICK REVIEW

[논문 리뷰] LLM-grounded Diffusion: Enhancing Prompt Understanding of Text-to-Image Diffusion Models with Large Language Models

Long Lian, Boyi Li|arXiv (Cornell University)|2023. 05. 23.
Multimodal Machine Learning ApplicationsComputer Science인용 수 23
한 줄 요약

이 논문은 두 단계의 training-free 접근법(LLM-grounded Diffusion, LMD)을 제시합니다. 이 방법은 LLM을 사용해 장면 레이아웃을 생성하고 레이아웃-기반 컨트롤러로 확산 모델을 조정하여 프롬프트 이해도와 다중 라운드 장면 명시를 크게 개선합니다.

ABSTRACT

Recent advancements in text-to-image diffusion models have yielded impressive results in generating realistic and diverse images. However, these models still struggle with complex prompts, such as those that involve numeracy and spatial reasoning. This work proposes to enhance prompt understanding capabilities in diffusion models. Our method leverages a pretrained large language model (LLM) for grounded generation in a novel two-stage process. In the first stage, the LLM generates a scene layout that comprises captioned bounding boxes from a given prompt describing the desired image. In the second stage, a novel controller guides an off-the-shelf diffusion model for layout-grounded image generation. Both stages utilize existing pretrained models without additional model parameter optimization. Our method significantly outperforms the base diffusion model and several strong baselines in accurately generating images according to prompts that require various capabilities, doubling the generation accuracy across four tasks on average. Furthermore, our method enables instruction-based multi-round scene specification and can handle prompts in languages not supported by the underlying diffusion model. We anticipate that our method will unleash users' creativity by accurately following more complex prompts. Our code, demo, and benchmark are available at: https://llm-grounded-diffusion.github.io

연구 동기 및 목표

  • 텍스트-투-이미지 확산 모델에서 추가 학습 없이 프롬프트 이해도 향상.
  • 프리 트레인된 LLM을 활용해 프롬프트에서 구조화된 이미지 레이아웃 생성.
  • LLM이 생성한 레이아웃에 기반해 이미지를 렌더링하도록 오프-더-셀프 확산 모델을 안내.
  • 지시 기반의 다중 라운드 장면 명시 및 비자기어를 통한 다국어 이미지 생성을 가능하게 함.
  • 확산 모델의 프롬프트-팔로우 능력을 평가하는 벤치마크 제공

제안 방법

  • Stage 1: 입력 프롬프트에서 자막이 달린 바운딩 박스와 배경 자막으로 장면 레이아웃을 생성하는 고정된 LLM 사용.
  • Stage 2: 기존 확산 모델을 재학습 없이 LLM이 생성한 레이아웃을 따르며 이미지를 생성하도록 새로운 레이아웃-기반 컨트롤러를 적용.
  • Grounding은 인스턴스 수준의 제어를 보장하기 위해 각 박스 마스크 Latents 및 주의 집중 기반 디노이징으로 달성합니다.
  • 구성 단계는 각 박스 잠재를 일관성 있게 접목시켜 최종 이미지를 확보합니다.
  • 선택적 학습 기반 방법(GLIGEN 등)과의 통합으로 인스턴스/속성 제어를 추가 강화(LMD+)
  • 명령 기반의 다중 라운드 장면 명시 및 기본 확산 모델이 지원하지 않는 언어의 프롬프트로부터의 생성 지원

실험 결과

연구 질문

  • RQ1LLM이 생성한 레이아웃이 부정, 수치 이해, 공간 관계, 속성 바인딩 등 복잡한 프롬프트에 대한 확산 모델의 준수성을 향상시킬 수 있는가?
  • RQ2훈련 없이 2단계 LLM-기반 파이프라인이 프롬프트 팔로우 작업에서 기본 확산 모델 및 벤치마인보다 성능이 우수한가?
  • RQ3재학습 없이 다중 라운드 장면 명시 및 비자연어 프롬프트를 가능하게 하는가?
  • RQ4GLIGEN과 같은 학습 기반 어댑터를 LMD에 통합했을 때 효과는 어떠한가?

주요 결과

  • LMD는 네 가지 프롬프트 팔로우 작업에서 기본 Stable Diffusion 모델보다 현저히 우수하며 평균 생성 정확도를 두 배 향상시킵니다.
  • 벤치마크 작업에서: 부정—SD 28% 대 LMD 100% (3.6배); 생성 수치 이해—SD 39% 대 LMD 62% (1.6배) 및 LMD+ 86% (2.2배); 속성 바인딩—SD 52% 대 LMD 65% (1.3배) 및 LMD+ 69% (1.3배); 공간 관계—SD 28% 대 LMD 79% (2.8배) 및 LMD+ 67% (2.4배); 평균—SD 37% 대 LMD 77% (2.1배) 및 LMD+ 81% (2.2배).
  • LMD+(GLIGEN 어댑터 포함)는 추가 개선을 보이며 여러 작업에서 GLIGEN 단독 벤치마크를 능가합니다.
  • 레이아웃 생성 단계(Stage 1)는 프롬프트와 일치하는 레이아웃을 안정적으로 생성하며 제약은 레이아웃 생성이 아닌 레이아웃-에서 이미지로의 단계에서 발생합니다.
  • 기본 확산 모델을 SDv1.5에서 SDv2.1로 교체해도 하이퍼파라미터 조정 없이 LMD가 효과적이며 향후 확산 모델과의 호환성을 강조합니다。

이 논문 읽기

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

누빈트에서 이 논문 읽기

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