IMAGE-ALCHEMY: Advancing subject fidelity in personalised text-to-image generation
Amritanshu Tiwari, Cherish Puniani, Kaustubh Sharma, Ojasva Nema
TL;DR
The paper tackles the problem of personalizing diffusion-based text-to-image models to novel subjects using very few reference images, which often leads to catastrophic forgetting and high computational cost. It introduces Image-Alchemy, a two-stage pipeline that first learns a subject-specific, low-rank LoRA adaptation on SDXL's attention layers using rare placeholder tokens, and then inserts the subject into a generic SDXL-generated scene via a segmentation-guided Img2Img step. Key contributions include a token- and LoRA-based personalization framework, a segmentation-driven subject replacement, and empirical evidence showing a DINO similarity of 0.789 for the personalized subject with minimal degradation to the rest of the image. The approach preserves the base model’s broad generative capabilities while enabling high-fidelity subject integration, offering a practical and efficient path toward robust personalization in diffusion models.
Abstract
Recent advances in text-to-image diffusion models, particularly Stable Diffusion, have enabled the generation of highly detailed and semantically rich images. However, personalizing these models to represent novel subjects based on a few reference images remains challenging. This often leads to catastrophic forgetting, overfitting, or large computational overhead.We propose a two-stage pipeline that addresses these limitations by leveraging LoRA-based fine-tuning on the attention weights within the U-Net of the Stable Diffusion XL (SDXL) model. First, we use the unmodified SDXL to generate a generic scene by replacing the subject with its class label. Then, we selectively insert the personalized subject through a segmentation-driven image-to-image (Img2Img) pipeline that uses the trained LoRA weights.This framework isolates the subject encoding from the overall composition, thus preserving SDXL's broader generative capabilities while integrating the new subject in a high-fidelity manner. Our method achieves a DINO similarity score of 0.789 on SDXL, outperforming existing personalized text-to-image approaches.
