Skip to main content
QUICK REVIEW

[Paper Review] Personalizing Text-to-Image Generation via Aesthetic Gradients

Víctor Gallego|arXiv (Cornell University)|Sep 25, 2022
Image Retrieval and Classification TechniquesComputer Science5 citations
TL;DR

This paper introduces aesthetic gradients, a method to personalize text-to-image diffusion models by optimizing the CLIP text encoder's embedding to align with user-defined aesthetics using a set of reference images. By applying a few gradient steps to the CLIP text encoder with a loss based on the dot product between the prompt embedding and a user-provided aesthetic embedding, the approach improves image generation quality and style alignment without fine-tuning the diffusion model, achieving higher aesthetic scores and more consistent stylistic preferences in generated images.

ABSTRACT

This work proposes aesthetic gradients, a method to personalize a CLIP-conditioned diffusion model by guiding the generative process towards custom aesthetics defined by the user from a set of images. The approach is validated with qualitative and quantitative experiments, using the recent stable diffusion model and several aesthetically-filtered datasets. Code is released at https://github.com/vicgalle/stable-diffusion-aesthetic-gradients

Motivation & Objective

  • To address the limitation of text-to-image models in capturing user-specific aesthetic preferences beyond object-level personalization.
  • To enable personalization of diffusion models based on collections of reference images that reflect a desired visual style or aesthetic.
  • To develop a lightweight, efficient method that avoids fine-tuning the diffusion model while preserving semantic consistency of the original prompt.
  • To improve the aesthetic quality of generated images by aligning the CLIP text encoder's representation with user-defined visual preferences.

Proposed method

  • The method computes an aesthetic embedding e as the average of CLIP visual embeddings from a set of K user-provided reference images, normalized to unit length.
  • A loss is defined as the dot product between the CLIP text embedding of the prompt c and the aesthetic embedding e, measuring alignment between the prompt and user preferences.
  • Gradient descent is applied to the CLIP text encoder weights θ using the loss ∇θ(c eᵀ), updating the prompt representation to better reflect the desired aesthetic.
  • The update is performed for a small number of steps (5–20) with a learning rate ε = 1e−4, producing a personalized prompt embedding c′.
  • Only the CLIP text encoder is updated; the diffusion model and visual encoder remain frozen, ensuring computational efficiency and model stability.
  • The personalized embedding c′ is then used to condition the diffusion model, generating images that reflect both the original prompt and the user’s aesthetic preferences.

Experimental results

Research questions

  • RQ1Can a diffusion model be personalized not for specific objects, but for broader aesthetic styles defined by a set of reference images?
  • RQ2How effectively can gradient-based optimization of the CLIP text encoder improve the alignment between generated images and user-defined visual aesthetics?
  • RQ3Does the proposed method outperform simple prompt engineering (e.g., appending aesthetic keywords) in capturing complex visual styles?
  • RQ4To what extent can this method improve the aesthetic quality of generated images without fine-tuning the diffusion model?
  • RQ5How sensitive is the method to hyperparameters such as learning rate and number of optimization steps?

Key findings

  • The aesthetic gradients method significantly improves the average aesthetic score of generated images compared to the original Stable Diffusion model, as measured by an open-source aesthetic scoring model.
  • Images generated using personalized embeddings based on SAC₈₊ and LAION₇₊ datasets show stronger alignment with the target aesthetic, such as fantasy-like or floral styles, as confirmed by qualitative analysis.
  • The method outperforms simple prompt augmentation (e.g., appending 'gloomcore' or 'glowwave' to the prompt), which had minimal impact due to limitations in CLIP’s text encoder.
  • The approach achieves consistent style transfer across diverse prompts, including complex and long-form descriptions, demonstrating robustness to prompt variation.
  • The method is computationally efficient, requiring only 5–20 gradient steps on the CLIP text encoder, and does not require fine-tuning the diffusion model or storing model weights.
  • The use of a single 768-dimensional vector per aesthetic preference enables compact, shareable, and scalable personalization across users.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.