Mitigating Semantic Collapse in Generative Personalization with a Surprisingly Simple Test-Time Embedding Adjustment

Anh Bui, Trang Vu, Trung Le, Junae Kim, Tamas Abraham, Rollin Omari, Amar Kaur, Dinh Q. Phung · DOI

Introduction

Generative personalization allows users to introduce unique visual concepts ($V^*$)—such as a specific pet, a personal object, or a unique art style—into text-to-image models using only a few reference images. While methods like DreamBooth and Textual Inversion are powerful, they often struggle with complex, compositional prompts. A user requesting "$V^*$ wearing glasses in the Grand Canyon" might receive an image of $V^*$ in a generic void, or a beautiful canyon with no $V^*$. This failure in compositionality is known as the Semantic Collapsing Problem (SCP).

The Semantic Collapsing Problem

The researchers identified that during the optimization of custom embeddings, the resulting vectors often drift significantly in both magnitude and direction. These "diva" embeddings become semantic black holes; their disproportionately large norms dominate the cross-attention layers of the model, causing it to ignore the surrounding text context. In other cases, the drift is so extreme that the model fails to recognize the concept entirely when placed in a complex scene.

Figure 1: TEA restores the missing personalized concept (the barn) in a complex prompt where the baseline ClassDiffusion failed to compose the subject with the environment.

Test-time Embedding Adjustment (TEA)

TEA is a simple, training-free solution that operates on the learned embedding at inference time. It realigns these drifted embeddings through two geometric operations:

  1. Normalization and Rescaling: The magnitude of the $V^*$ embedding is rescaled to align more closely with its generic "anchor" concept (e.g., the word "dog" for a specific pet).
  2. Rotation via SLERP: Using Spherical Linear Interpolation (SLERP), the embedding is rotated back toward the semantic direction of the original anchor concept.

This adjustment ensures the token retains its unique identity while behaving like a standard word, allowing the model's attention mechanism to process the entire prompt holistically without one token overpowering the others.

Key Results and Insights

TEA was evaluated across diverse datasets, including CustomConcept101 and CelebA-HQ, demonstrating broad compatibility with six different personalization methods and architectures like Stable Diffusion and Flux. Quantitative metrics showed significant boosts in CLIP-based alignment scores and VLM-based evaluations.

One of the most striking findings is that TEA can bypass "Anti-DreamBooth" defenses. These defenses typically poison images to cause extreme SCP during training, effectively "hiding" a person's likeness. TEA can "recover" these protected concepts by simply realigning the distorted embeddings at test time, revealing that the defenses don't destroy the concept but merely magnify its semantic drift.

Conclusion

TEA provides a lightweight, effective remedy for the semantic collapse inherent in current personalization workflows. By treating the problem as a geometric misalignment in the latent space, it enables high-fidelity, context-aware generation without the need for expensive retraining or complex architectural changes. Future work will look toward adaptive adjustments that automatically find the optimal scaling factors for any given prompt.

Summary updated

BibTeX
@inproceedings{bui2026mitigating,
  author = {Anh Bui and Trang Vu and Trung Le and Junae Kim and Tamas Abraham and Rollin Omari and Amar Kaur and Dinh Q. Phung},
  title = {{Mitigating Semantic Collapse in Generative Personalization with a Surprisingly Simple Test-Time Embedding Adjustment}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=P7sPfvq7Ih},
}
Figure