NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CoRe: Context-Regularized Text Embedding Learning for Text-to-Image Personalization

Feize Wu, Yun Pang, Junyi Zhang, Lianyu Pang, Jian Yin, Baoquan Zhao, Qing Li, Xudong Mao

Introduction

Text-to-image personalization allows users to introduce unique concepts—such as a specific pet or a personal heirloom—into generative models using only a few reference images. However, existing techniques like Textual Inversion and DreamBooth frequently encounter a fundamental "identity vs. alignment" trade-off. Models often either overfit to the subject’s identity, ignoring the prompt's instructions, or follow the prompt while losing the subject's specific characteristics.

The "Bad Neighbor" Problem

The authors of CoRe identify a subtle cause for this failure: when a new concept is inverted into a text embedding, the resulting vector often becomes semantically incompatible with surrounding words. This "loud" or disruptive embedding interferes with the CLIP text encoder’s processing of context tokens. Consequently, the model's cross-attention maps break, causing it to "forget" to render elements like costumes or specific backgrounds because it is overly focused on the new concept token.

Figure 1: A personalized Santa figurine generated in a fireplace setting, demonstrating identity preservation within a specific context.

Methodology: Context Regularization (CoRe)

To solve this, the researchers introduced Context Regularization (CoRe), which shifts the focus from constraining the new concept to protecting the integrity of the surrounding prompt. The method employs three primary strategies:

  1. Context Embedding Regularization (CER): This ensures that the output embeddings of context words (e.g., "desert" in "S* in the desert") remain stable and similar to their standard meanings.
  2. Context Attention Regularization (CAR): This forces the cross-attention maps of context words to remain consistent with a known reference category (like "doll" or "toy"), ensuring the model leaves "space" in the image for all prompt elements.
  3. Embedding Rescaling: A strategy to prevent the new concept's vector from growing too large and overpowering the prompt during training.

CoRe utilizes a two-stage training process: first learning a stable text embedding, then fine-tuning the U-Net to capture fine-grained identity details. It can also be applied as a test-time optimization (TTO) to fix specific difficult prompts during inference.

Figure 5: A child doll figurine successfully integrated into a complex "Star Wars" themed desert scene with a lightsaber, showcasing high prompt alignment.

Experimental Results

CoRe was evaluated against 24 concepts across animate and inanimate categories. It consistently outperformed state-of-the-art baselines such as Custom Diffusion and NeTI.

  • Quantitative Performance: CoRe achieved superior CLIP-T scores (text alignment) and DINO scores (identity preservation).
  • Qualitative Success: The method excels at complex compositions where baselines fail, such as rendering specific subjects in intricate costumes or performing specific actions.
  • Human Preference: In a study of 1,200 responses, CoRe was preferred by a wide margin, including an 85.7% preference rate over Custom Diffusion.

Conclusion

By regularizing the "environment" around a new concept rather than just the concept itself, CoRe effectively resolves the tug-of-war between identity and prompt alignment. While it still faces challenges with extremely complex spatial relationships inherited from base diffusion models, it represents a significant step forward in making text-to-image personalization both creative and controllable.

Summary updated

BibTeX
@inproceedings{wu2025core,
  author = {Feize Wu and Yun Pang and Junyi Zhang and Lianyu Pang and Jian Yin and Baoquan Zhao and Qing Li and Xudong Mao},
  title = {{CoRe: Context-Regularized Text Embedding Learning for Text-to-Image Personalization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i8.32904},
}
Figure