EmoCtrl: Controllable Emotional Image Content Generation

Jingyuan Yang, Weibin Luo, Hui HuangarXiv 2025 · DOI

Abstract

Text-to-image (T2I) generation has reached remarkable levels of semantic fidelity, yet controlling the affective or emotional tone of generated images remains a significant challenge. Existing methods often struggle to balance emotional expression with content preservation, leading to "content distortion." We present EmoCtrl, a novel framework designed for Controllable Emotional Image Content Generation (C-EICG). EmoCtrl utilizes learnable emotion tokens and a dual-stage enhancement process—textual and visual—to decouple content from emotion. By leveraging Large Language Models (LLMs) for textual refinement and cross-attention mechanisms for visual injection, EmoCtrl generates images that are both semantically accurate and emotionally resonant. Experimental results demonstrate that EmoCtrl significantly outperforms state-of-the-art models in emotion accuracy and joint content-emotion fidelity.

Introduction

The rapid advancement of text-to-image (T2I) models like Stable Diffusion has enabled the creation of high-quality visual content from simple text prompts. However, these models often fail to capture the nuanced emotional weight intended by the user. For instance, a prompt like "a sad ocean" might result in a standard seascape without the intended melancholy. Conversely, models specifically tuned for emotion often suffer from content distortion, where the primary subject is lost or altered to fit the emotional label.

This paper introduces the task of Controllable Emotional Image Content Generation (C-EICG). The goal is to independently control both the content (the "what") and the emotion (the "how") of an image. To address this, we propose EmoCtrl, a framework that harmonizes these two dimensions through a dual-stage enhancement strategy.

Methodology

EmoCtrl operates through two primary modules designed to inject emotion at different levels of the generation pipeline:

  1. Textual Emotion Enhancement: The framework employs eight learnable textual emotion tokens corresponding to Mikels’ emotion categories (e.g., Amusement, Anger, Fear). These tokens are concatenated with the user's content prompt and processed by a LoRA-tuned Large Language Model (LLM). The LLM acts as a creative director, expanding abstract emotion labels into descriptive, concrete visual metaphors. For example, "Ocean + Sadness" might be expanded into "A dark, turbulent sea under a heavy, grey sky," providing the generative model with explicit semantic cues.
  2. Visual Emotion Enhancement: Recognizing that text alone cannot capture all nuances of atmosphere, EmoCtrl also utilizes visual emotion tokens. These tokens are integrated into the Stable Diffusion process via a cross-attention mechanism. Here, text features serve as the "Query," while visual emotion tokens act as the "Key" and "Value." This allows the model to inject perceptual cues—such as specific color palettes, lighting, and textures—directly into the latent space without overwriting the core semantic content.
The EmoCtrl architecture featuring (a) Textual Emotion Enhancement using an LLM and (b) Visual Emotion Enhancement via cross-attention within Stable Diffusion.

Datasets

Training EmoCtrl required high-quality emotional data. The authors curated two new datasets: EmoSet+ and EmoEditSet+, comprising over 158,000 quadruplets (emotion label, content concept, detailed caption, and image). Multimodal LLMs (MLLMs) were used to generate detailed affective prompts for existing images. Crucially, the researchers filtered these datasets to separate "neutral" content concepts (e.g., "dog") from "emotional" ones (e.g., "ghost"), ensuring the model learns to apply emotion to any arbitrary subject.

Results and Discussion

EmoCtrl demonstrates superior performance across multiple benchmarks compared to state-of-the-art models like SDXL and EmoGen.

  • Emotion Accuracy (Emo-A): EmoCtrl achieved an accuracy of 61.68%, significantly higher than EmoGen's 45.23%.
  • Joint Accuracy (EC-A): This metric evaluates the model's ability to satisfy both content and emotion constraints. EmoCtrl scored 45.72%, nearly doubling the performance of Dreambooth (24.86%).
  • Qualitative Excellence: As shown in Figure 1, EmoCtrl successfully generates diverse emotional variations for the same content prompt, maintaining high fidelity to the original subject while vividly capturing the target affect.
Qualitative results of EmoCtrl across various content prompts and the eight Mikels' emotion categories.

User studies further validate these findings, with participants preferring EmoCtrl 95.55% of the time for its balance of content fidelity and emotional evocation. The model also shows remarkable flexibility, generalizing to multi-emotion tasks and artistic style transfers.

Conclusion

EmoCtrl represents a significant step forward in affective image generation by successfully decoupling content and emotion. By combining the semantic reasoning of LLMs with the perceptual control of visual tokens, the framework allows for the creation of images that possess both a clear subject and a distinct "soul." Future work will focus on expanding the emotion space beyond basic categories and refining evaluation metrics to better account for the inherent subjectivity of human emotion.

Summary updated

BibTeX
@misc{yang2025emoctrl,
  author = {Jingyuan Yang and Weibin Luo and Hui Huang},
  title = {{EmoCtrl: Controllable Emotional Image Content Generation}},
  year = {2025},
  eprint = {2512.22437},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.22437},
}
Figure