Introduction
Recent advancements in text-driven image editing have enabled users to perform complex semantic manipulations, such as replacing objects or altering styles. However, a significant gap remains in addressing affective requests—instructions that describe an emotional "vibe" or feeling rather than literal physical changes. While a user might easily request to "replace a dog with a cat," asking a model to make a scene look "tranquil and serene" or "radiating energy" often results in inconsistent or superficial edits.
Existing affective models are frequently limited to low-level color adjustments or coarse-grained emotional categories (e.g., the eight basic emotions). To bridge this gap, we introduce AIEdiT, a framework designed for fine-grained, comprehensive emotional manipulation that translates abstract feelings into concrete visual elements.
The AIEdiT Framework
AIEdiT moves beyond discrete labels by utilizing a Continuous Emotional Spectrum. By leveraging BERT for text extraction and a ResNet-based encoder for image analysis, the system maps emotions onto a mathematical space based on psychological models of affect. This allows the model to understand the nuances between similar feelings, such as "contentment" versus "joy."
The core of the system is the Emotional Mapper, a multi-modal Transformer that translates visually-abstract emotional requests into visually-concrete semantic representations. This mapper acts as a bridge, determining how a concept like "sorrow" should manifest in pixels—whether through desaturated tones, specific facial expressions, or environmental cues.
Training with MLLM Supervision
A major challenge in affective editing is the lack of paired "before and after" datasets for every possible emotion. AIEdiT overcomes this by using Multimodal Large Language Models (MLLMs), such as ShareGPT4V, as "teachers." The MLLM analyzes images to describe their emotional factors (tone, scene, expressions), providing high-level supervision that traditional pixel-based loss functions cannot offer.
This approach was used to curate EmoTIPS, a new large-scale dataset containing 1 million affective images. Each image is paired with a detailed, emotion-aligned description generated via a Chain-of-Thought prompting strategy, ensuring the model learns the subtle visual cues associated with complex human emotions.
Hierarchical Denoising and Control
During the inference phase, AIEdiT employs a diffusion process where the timestep $t$ serves as a "control knob" for the level of editing. At lower noise levels (e.g., $t=25$), the model focuses on global adjustments like color and tone. At higher levels (e.g., $t=49$), the model gains the freedom to alter object categories, postures, and scene structures to better evoke the target emotion.
Experimental Results
AIEdiT was evaluated against both general-purpose editing tools (e.g., InstructPix2Pix, MagicBrush) and specialized affective models (e.g., EmoEdit, AIFormer).
Quantitative metrics confirm AIEdiT's effectiveness:
- Visual Quality: AIEdiT achieved a Fréchet Inception Distance (FID) of 27.93, significantly outperforming EmoEdit (37.10).
- Affective Accuracy: The model recorded a Kullback-Leibler Divergence (KLD) of 2.4373, indicating the closest match to user-requested emotions.
- Human Preference: In blind trials, users preferred AIEdiT's results 39.68% of the time, nearly doubling the preference for the next best affective model.
Conclusion and Future Work
AIEdiT represents a significant step forward in affective computing by enabling nuanced, text-driven emotional editing. While the model currently faces challenges with "emotional dissonance" (conflicting emotions in a single prompt), its ability to bridge abstract concepts and concrete visual features sets a new standard for the field. Future research will focus on handling mixed emotions and exploring multi-object scenes with interacting emotional states.
Summary updated