Skip to main content
QUICK REVIEW

[Paper Review] Key-Locked Rank One Editing for Text-to-Image Personalization

Yoad Tewel, Rinon Gal|arXiv (Cornell University)|May 2, 2023
Advanced Image and Video Retrieval TechniquesComputer Science6 citations
TL;DR

Perfusion introduces a key-locked rank-1 editing method for text-to-image personalization that achieves high visual fidelity and strong textual alignment using only 100KB per concept. By locking concept keys to their supercategory embeddings and applying gated rank-1 updates to value projections, it enables runtime control over concept influence, supports multi-concept composition, and spans the Pareto front of fidelity-alignment trade-offs without retraining.

ABSTRACT

Text-to-image models (T2I) offer a new level of flexibility by allowing users to guide the creative process through natural language. However, personalizing these models to align with user-provided visual concepts remains a challenging problem. The task of T2I personalization poses multiple hard challenges, such as maintaining high visual fidelity while allowing creative control, combining multiple personalized concepts in a single image, and keeping a small model size. We present Perfusion, a T2I personalization method that addresses these challenges using dynamic rank-1 updates to the underlying T2I model. Perfusion avoids overfitting by introducing a new mechanism that "locks" new concepts' cross-attention Keys to their superordinate category. Additionally, we develop a gated rank-1 approach that enables us to control the influence of a learned concept during inference time and to combine multiple concepts. This allows runtime-efficient balancing of visual-fidelity and textual-alignment with a single 100KB trained model, which is five orders of magnitude smaller than the current state of the art. Moreover, it can span different operating points across the Pareto front without additional training. Finally, we show that Perfusion outperforms strong baselines in both qualitative and quantitative terms. Importantly, key-locking leads to novel results compared to traditional approaches, allowing to portray personalized object interactions in unprecedented ways, even in one-shot settings.

Motivation & Objective

  • To address overfitting in text-to-image personalization, especially in the attention 'Where' pathway (keys), which degrades textual alignment and generalization.
  • To enable high visual fidelity and strong textual alignment while maintaining a model size five orders of magnitude smaller than state-of-the-art methods.
  • To support dynamic, runtime balancing of visual fidelity and textual alignment through a controllable gating mechanism.
  • To allow combining multiple independently trained concepts in a single prompt, including complex interactions between them.
  • To enable one-shot personalization with improved robustness and generalization through supercategory-based key-locking.

Proposed method

  • Introduces a key-locking mechanism that fixes concept keys to the keys of their supercategory (e.g., 'teddybear' locked to 'teddy'), preventing overfitting to specific spatial layouts.
  • Treats value projections as an extended latent space and jointly optimizes them with input word embeddings to encode visual appearance.
  • Applies a gated rank-1 update to the K and V projection matrices, enabling selective application of concept updates during inference.
  • Uses a gating mechanism to control the strength of concept influence at inference time, allowing runtime trade-offs between visual fidelity and textual alignment.
  • Employs a two-pathway attention view: Keys as 'Where' (spatial layout), Values as 'What' (visual appearance), with personalization focused on the 'What' pathway.
  • Trains using reconstruction prompts to stabilize learning and improve alignment, especially when combined with supercategory key-locking.

Experimental results

Research questions

  • RQ1Can key-locking the cross-attention keys of a personalized concept to its supercategory reduce overfitting and improve textual alignment?
  • RQ2Can a gated rank-1 update mechanism enable runtime control over concept influence and support multi-concept composition in text-to-image generation?
  • RQ3Can a 100KB model achieve performance comparable to full fine-tuning methods while maintaining high visual fidelity and alignment?
  • RQ4How does key-locking affect training dynamics and generalization, especially in one-shot or zero-shot settings?
  • RQ5Can concepts trained on a vanilla diffusion model be transferred to fine-tuned variants like InkPunk-v2 or Protogen-v3.4?

Key findings

  • Perfusion achieves high visual fidelity and strong textual alignment with only 100KB per concept, five orders of magnitude smaller than state-of-the-art methods.
  • Key-locking significantly reduces overfitting in the attention 'Where' pathway, improving textual alignment scores compared to baseline methods.
  • The gated rank-1 update enables runtime balancing of visual fidelity and textual alignment without retraining or model specialization.
  • Perfusion supports the combination of multiple independently trained concepts in a single prompt, enabling novel interactions such as a teddybear holding a teapot.
  • The method generalizes to fine-tuned diffusion models (e.g., InkPunk-v2, Protogen-v3.4), demonstrating zero-shot transfer capability.
  • One-shot training yields only a slight drop in performance, and reconstruction prompts improve visual fidelity by stabilizing training dynamics.

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.