ReNeg: Learning Negative Embedding with Reward Guidance

Xiaomin Li, Yixuan Liu, Takashi Isobe, Xu Jia, Qinpeng Cui +6 more
12/1/2024

No official code found. Best implementation: AMD-AGI/ReNeg (19 stars, last commit 2025-01-17).

Abstract

In text-to-image (T2I) generation applications, negative embeddings have proven to be a simple yet effective approach for enhancing generation quality. Typically, these negative embeddings are derived from user-defined negative prompts, which, while being functional, are not necessarily optimal. In this paper, we introduce ReNeg, an end-to-end method designed to learn improved Negative embeddings guided by a Reward model. We employ a reward feedback learning framework and integrate classifier-free guidance (CFG) into the training process, which was previously utilized only during inference, thus enabling the effec tive learning of negative embeddings. We also propose two strategies for learning both global and per-sample negative embeddings. Extensive experiments show that the learned negative embedding significantly outperforms null-text and handcrafted counterparts, achieving substantial improvements in human preference alignment. Additionally, the negative embedding learned within the same text embedding space exhibits strong generalization capabilities. For example, using the same CLIP text encoder, the negative embedding learned on SD1.5 can be seamlessly transferred to text-to-image or even text-to-video models such as ControlNet, ZeroScope, and VideoCrafter2, resulting in consistent performance improvements across the board. Code is available at https://github.com/AMD-AIG-AIMA/ReNeg.

View on arXivView PDF

Code Implementations(1)

AMD-AGI/ReNegCommunity100%

ReNeg: Learning Negative Embedding with Reward Guidance

190PythonJan 17, 20251 years ago

Similar Papers

Cite this paper

@article{li2024reneg,
  title  = {ReNeg: Learning Negative Embedding with Reward Guidance},
  author = {Xiaomin Li and Yixuan Liu and Takashi Isobe and Xu Jia and Qinpeng Cui and Dong Zhou and Dong Li and You He and Huchuan Lu and Zhongdao Wang and E. Barsoum},
  year   = {2024},
  eprint = {2412.19637},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2412.19637},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.19637.svg)](https://codeofpaper.com/paper/2412.19637)

Discussion