[Paper Review] RAPHAEL: Text-to-Image Generation via Large Mixture of Diffusion Paths
RAPHAEL introduces a text-to-image diffusion model that uses large mixtures of spatial and temporal diffusion paths via space-MoE and time-MoE to align text concepts with image regions, achieving state-of-the-art quality and style versatility.
Text-to-image generation has recently witnessed remarkable achievements. We introduce a text-conditional image diffusion model, termed RAPHAEL, to generate highly artistic images, which accurately portray the text prompts, encompassing multiple nouns, adjectives, and verbs. This is achieved by stacking tens of mixture-of-experts (MoEs) layers, i.e., space-MoE and time-MoE layers, enabling billions of diffusion paths (routes) from the network input to the output. Each path intuitively functions as a "painter" for depicting a particular textual concept onto a specified image region at a diffusion timestep. Comprehensive experiments reveal that RAPHAEL outperforms recent cutting-edge models, such as Stable Diffusion, ERNIE-ViLG 2.0, DeepFloyd, and DALL-E 2, in terms of both image quality and aesthetic appeal. Firstly, RAPHAEL exhibits superior performance in switching images across diverse styles, such as Japanese comics, realism, cyberpunk, and ink illustration. Secondly, a single model with three billion parameters, trained on 1,000 A100 GPUs for two months, achieves a state-of-the-art zero-shot FID score of 6.61 on the COCO dataset. Furthermore, RAPHAEL significantly surpasses its counterparts in human evaluation on the ViLG-300 benchmark. We believe that RAPHAEL holds the potential to propel the frontiers of image generation research in both academia and industry, paving the way for future breakthroughs in this rapidly evolving field. More details can be found on a webpage: https://raphael-painter.github.io/.
Motivation & Objective
- Motivate higher fidelity and controllability in text-to-image generation by aligning text concepts with specific image regions.
- Develop a diffusion model that leverages space-MoE and time-MoE to create billions of diffusion paths.
- Enhance image quality with edge-supervised learning integrated into diffusion blocks.
- Demonstrate versatility across diverse styles and higher human-preference metrics.
- Provide extensibility through LoRA, ControlNet, and SR-GAN to reach higher resolutions and applications.
Proposed method
- Use a U-Net-based diffusion backbone with 16 transformer blocks; each block contains self-attention, cross-attention, space-MoE, and time-MoE.
- Space-MoE routes each text token to a region-specific expert using a Text Gate Network and binary region masks derived from cross-attention maps.
- Time-MoE introduces a gate network to assign diffusion timesteps to time experts, placed before each space-MoE in a block.
- Edge-supervised learning adds an edge-prediction branch that aligns attention maps with image edges to improve texture and boundaries, trained with a focal loss against a detected edge map.
- Training uses a latent diffusion setup with VAE compression, multi-scale training, and a large LAION-5B-based dataset; optimization via AdamW with specific hyperparameters.
- Evaluation includes zero-shot COCO FID-30k and ViLG-300 human studies to compare image quality and text alignment against prior models.
Experimental results
Research questions
- RQ1Can a large mixture of diffusion paths via space-MoE and time-MoE improve text-to-image alignment and artistic fidelity over conventional cross-attention mechanisms?
- RQ2How does edge-aware supervision influence texture fidelity and overall image aesthetics across styles?
- RQ3What is the impact of the number of experts and timesteps on image quality and generation speed?
- RQ4Can RAPHAEL maintain high quality across diverse styles and prompts while remaining scalable with a single 3B-parameter model?
Key findings
- RAPHAEL achieves a new state-of-the-art zero-shot FID-30k of 6.61 on MS-COCO.
- In human evaluations on ViLG-300, RAPHAEL surpasses competing models in image quality and text alignment.
- RAPHAEL demonstrates strong style-switching capabilities across Japanese comics, realism, cyberpunk, and ink illustration.
- A single 3B-parameter model trained on 1,000 A100 GPUs for two months attains high-quality, 4096×6144 resolutions when combined with SR-GAN.
- Space-MoE and time-MoE contributions yield improved CLIP alignment and lower FID, with ablations showing each module’s positive impact.
- Edge-supervised learning further enhances image quality and aesthetics by constraining attention maps to image edges.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.