Manuscript Offprint
arXiv:2610.13558What We Talk About When We Talk About Emotion Editing
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Xingzu Zhan, Lin Gu , Ruogu Fang
Department of Biomedical Engineering, Vanderbilt University, Nashville, Tennessee, USA
Research Institute of Electrical Communication, Tohoku University, Sendai, Japan
xingzuz@andrew.cmu.edu, lin.gu@riken.jp, ruogu.fang@vanderbilt.edu
(a) Same scene, different emotional meaning
Emotion depends on interpretation.

Motivation: successful emotion editing requires semantic interpretation, not only emotion labels
(b) Hidden states align more with visual than affective responses
Visual system (stronger alignment)
Affect-related system (weaker alignment)
Figure 1: Emotional image editing requires connecting visual content to emotional meaning. (a) Conceptual illustration of cognitive reappraisal: women crying outside a church may suggest grief or joy under funeral or wedding interpretations (Ochsner et al., 2002). (b) Across 400 source–target pairs, hidden states from EmoEdit, EmoEditor, and AffectDelta show stronger correspondence with TRIBE-predicted target-image responses in both early and higher visual regions than in affect-related regions (Fisher z scores). Appendix G provides the encoding protocol and controls for EmoEdit and EmoEditor.
ABSTRACT
Emotional image editing aims to change the emotion a scene conveys while preserving its essential content. Because the same scene can support different emotional interpretations, achieving an emotional goal requires visual changes grounded in the source context. Motivated by the Component Process Model, which links emotional responses to event appraisal, we investigate neural representations as a reference for these editing decisions. Using TRIBE v2, an fMRI encoding model, we analyze 400 source–target pairs across eight emotion categories. Hidden states from EmoEdit, EmoEditor, and AffectDelta correspond more strongly to predicted target-image responses in visual regions than in affect-related regions. This imbalance motivates ROI-ReFT, which combines source visual responses as a content reference with a predicted affective response change as an editing direction. Two interacting branches use both conditions to guide a frozen editor throughout generation. Predicted responses of the generated image supervise affective change and constrain visual drift. On a post hoc selected subset of 400 editing requests, ROI-ReFT achieves 91.750% target-emotion accuracy and 83.250% joint success, with the same output both matching the target emotion and reaching source–output DINO-I of at least 0.80. Our code and dataset will be publicly released.
1 INTRODUCTION
Emotional image editing aims to change the affect an image conveys or evokes while preserving scene identity. EmoEdit and EmoEditor modify semantic content and contextual cues (Yang et al.,
2025; Lin et al., 2025). AffectDelta specifies source-to-target changes in emotion distributions (Zhan et al., 2026), while EmoScope explores image-specific editing strategies (Li et al., 2026). An emotional target specifies the intended outcome, while realizing it requires choosing visual changes appropriate to the source scene.
This choice depends on how visual content is interpreted. In their cognitive reappraisal study, Ochsner et al. (2002) illustrate reinterpretation with women crying outside a church: the scene could represent a wedding rather than a funeral. The same tears can thus suggest joy or grief, depending on the event the viewer believes is taking place (Figure 1a). Across the task, reinterpreting unchanged photographs reduced negative affect. This ambiguity raises the question of whether image editors capture the emotional meaning of the source and target images alongside their visual content. Emotional meaning involves interacting cognitive and bodily processes. The Component Process Model (CPM) explains how appraisals of an event's relevance, implications, coping potential, and normative significance coordinate motivation, physiology, expression, and subjective feeling (Scherer, 2009). This account highlights the complexity of relating visual content to an emotional response and motivates examining the affective information represented by an editor.
We therefore seek a neural reference for how the source scene may be emotionally interpreted by viewers. Leitão et al. (2020) combined fMRI with behavioral and physiological measures to identify brain networks associated with four CPM components and their dynamic synchronization. Visual-emotion studies also show distributed emotion information across visual and transmodal regions (Kragel et al., 2019; Horikawa et al., 2020). We use TRIBE v2, an fMRI encoding model, to predict cortical responses to the source image (d'Ascoli et al., 2026). These predicted responses provide a reference for its affective context and visual content. Desired changes in affect-related responses can then guide the emotional direction of editing, while source visual responses guide content preservation. This joint guidance aims to produce an image that evokes the target emotion while retaining the source scene's principal content. Across 400 source–target pairs balanced across eight source and target emotion categories, hidden states from EmoEdit, EmoEditor, and AffectDelta show stronger correspondence with TRIBE-predicted target-image responses in both early and higher visual regions than in affect-related regions (Figure 1b). This pattern also holds for AffectDelta, our base editor, motivating explicit guidance for the desired affective change. Since emotional change is realized through visual cues, we combine this affective direction with a source visual reference to coordinate emotional change and content preservation.
Building on this observation and prior work on neural guidance (Li et al., 2019; Xiao et al., 2026), we introduce ROI-ReFT, a dual-ROI representation intervention for emotional image editing. It couples a source visual reference with a predicted affective response change, allowing the source scene and emotional goal to jointly guide generation. Our contributions are threefold:
• We characterize visual and affective correspondence in three emotion editors, identifying stronger alignment of their hidden states with TRIBE-predicted target-image responses in visual regions than in affect-related regions.
• We propose a dual-ROI intervention with two interacting branches that read both neural conditions throughout generation. Supervision through the generated image’s predicted responses trains their collaboration to realize affective change while constraining visual drift.
• On a post hoc selected subset of 400 editing requests, ROI-ReFT achieves 91.750% target-emotion accuracy and 83.250% joint success at DINO-I ≥ 0.80, improving emotional accuracy and all three preservation metrics over AffectDelta. Ablations further support the benefits of interaction and dual neural supervision.
2.1 EMOTIONAL IMAGE EDITING
Emotional image editing studies how visual changes alter the emotions an image evokes. Early work linked affective words to color themes for image recoloring (Wang et al., 2013) and transferred color and texture toward emotion distributions associated with a reference image (Peng et al., 2015). These approaches established appearance attributes and emotion distributions as useful controls for affective transformation. Their emphasis on color and texture offers direct control over visual atmosphere; later semantic editing methods expand the available changes to the depicted objects and situations.
Diffusion-based methods extend these controls to semantic content and scene context. EmoEdit combines an emotion adapter with an instruction loss to learn context-dependent semantic modifications (Yang et al., 2025). EmoEditor integrates global emotional and local visual cues, conditions editing on the difference between a target emotion code and the predicted source distribution, and refines generation through iterative emotion inference (Lin et al., 2025). AffectDelta represents the requested change as a signed difference between full source and target emotion distributions, including transitions that retain the dominant category (Zhan et al., 2026). EmoScope explores image-specific editing strategies through affordance reasoning and iterative verification of emotional plausibility and consistency (Li et al., 2026). Together, these methods develop how emotional goals are specified and translated into scene changes. Our approach adds predicted neural responses as editing guidance: source visual responses provide a content reference, while desired changes in affect-related responses provide an editing direction.
2.2 THEORETICAL MODELS OF EMOTION
Emotion theories differ in how they characterize emotional states and explain their generation. Basic-emotion accounts distinguish families of emotions with characteristic response patterns (Ekman, 1992), whereas dimensional models organize affect along continuous axes such as pleasure and arousal (Russell, 1980). The theory of constructed emotion emphasizes how past experience, interoceptive prediction, and conceptual knowledge shape emotional experiences (Barrett, 2017).
Appraisal theories relate emotional differences to evaluations of an event's significance, including certainty, responsibility, and control (Smith & Ellsworth, 1985). The Component Process Model (CPM) develops this perspective into a dynamic account: appraisals drive coordinated changes in motivation, physiology, expression, and subjective feeling as an event unfolds (Scherer, 2009). This makes the relation between an event and the viewer central to explaining emotional change. Computational models such as EMA connect appraisal and coping to an evolving interpretation of the situation (Marsella & Gratch, 2009). Emotion-regulation models further distinguish interventions at different stages of emotion generation (Gross, 1998), with cognitive reappraisal studies demonstrating that changing an interpretation can alter affect even when the image remains unchanged (Ochsner et al., 2002).
We adopt CPM as the main theoretical motivation for relating scene interpretation to emotional change. Neuroimaging work has identified networks associated with CPM components and their dynamic coordination (Leitão et al., 2020), while studies of visually evoked emotion report representations across visual and transmodal regions (Kragel et al., 2019; Horikawa et al., 2020). Neural information has also served as a learning signal: Li et al. (2019) regularize visual models using neural representational similarities, while Xiao et al. (2026) use fMRI-guided interventions and fine-tuning to improve language-model reasoning. These studies provide a methodological precedent for using neural representations to guide model behavior (Chen et al., 2026), complementing their role in assessing correspondence. These findings motivate drawing on distributed neural information for editing. Our formulation uses predicted visual and affect-related responses jointly to guide content preservation and emotional change.
3 METHOD
3.1 OVERVIEW
Our analysis in the Introduction shows that existing editors’ hidden states correspond more strongly to TRIBE-predicted visual responses than to affect-related responses (Figure 1b). This imbalance motivates explicitly guiding the generation process with the desired affective response change. Because emotional changes are expressed through scene-dependent visual cues, we pair this direction with a source visual reference. Given a source image and supplied source and target emotion distributions , we use these two neural conditions to generate an edited image that conveys the requested emotion while retaining the scene’s principal content.

Figure 2: Overview of joint visual and affective neural guidance. TRIBE-predicted source visual responses provide a content reference, while a source-conditioned predictor supplies an affective editing direction. Both conditions jointly drive gated low-rank updates throughout the frozen diffusion editor. Predicted responses of the generated image supervise affective change and constrain visual drift, complemented by auxiliary objectives. Paired target responses supervise predictor pretraining and generated affective change during training. The predictor is frozen during intervention training; inference uses the source image and emotion conditions. Snowflakes denote frozen modules during intervention training.
Figure 2 shows how we turn these two roles into editing guidance. We build on the frozen Affect-Delta editor (Zhan et al., 2026), retaining its source-image latent and emotion conditioning, and use a frozen TRIBE v2 encoding model B to predict population cortical responses (d'Ascoli et al., 2026). We first construct a source visual response state and predict a source-relative affective response change. These conditions jointly regulate the editor's hidden states throughout denoising. We then train their combined action through the generated image: its predicted responses supervise affective change and constrain visual drift. A paired target image supplies training supervision; inference uses the source image and emotion conditions.
3.2 CONSTRUCTING NEURAL GUIDANCE
The two conditions describe different aspects of an edit: the visual condition specifies the scene that should remain recognizable, while the affective condition specifies the emotional transition to realize. We therefore encode the former as a source response state and the latter as a signed response change, corresponding to the two guidance paths on the left of Figure 2.
For the visual reference, we encode the source image’s predicted responses in visual regions of interest (ROIs):
The frozen state encoder summarizes two visual ROI groups into 16 coordinates each. This source-dependent state provides a content reference throughout generation. The original source latent remains a separate spatial input to the editor, preserving layout information alongside the neural reference.
For affective guidance, the required change depends on both the source scene and the requested emotional transition. A training pair provides the target change . The frozen encoder summarizes three affect-related ROI groups into eight coordinates each, preserving zero change and the sign of the response difference. This representation specifies how the response should move relative to the source. To supply this direction without a paired target image at inference, we predict it from source-image features and the emotion conditions:
Here is pooled from the source image's VAE latent. We pretrain on paired affective change codes and freeze it during intervention training. Its prediction is the affective condition in both training and inference, while paired target responses supervise the generated change during training. Thus, the predictor-supervision path in Figure 2 belongs to pretraining, and the output-supervision path trains the intervention.
Both and are computed once per edit and reused throughout denoising. Appendix A details the group encodings, normalization conventions, source features, and predictor pretraining.
3.3 JOINT NEURAL INTERVENTION
The two guidance signals must act together because the visual changes that express an emotion depend on the source scene. Conversely, preserving the scene must allow the changes needed to convey that emotion. We therefore let both intervention branches read both conditions: the visual reference informs affective editing, and the affective direction informs visual preservation. Following representation-level adaptation in ReFT (Wu et al., 2024), we implement this interaction through gated low-rank updates to the frozen diffusion editor, as shown in the central module of Figure 2.
At layer , timestep , and spatial position , the current hidden vector provides a spatial query for separately reading the visual and affective ROI tokens. The retrieved information is combined with source features, time and layer context, and a direct projection of . This joint context gives both branches access to the current scene representation, both neural conditions, and the requested emotional transition. The direct emotion projection is trainable and complements the frozen predictor .
Each branch uses its own action network, low-rank basis, and sigmoid gate to translate the joint context into a hidden update. The two independently gated updates are added to the current representation:
where and denote the affective and visual updates, and scale their strengths. The gates can activate simultaneously, allowing both branches to contribute at the same position and step. Spatial variation follows from the hidden-state queries, while the shared context coordinates the two branches' actions.
We apply both branches at two U-Net scales, midblock and upblocks.2, at every step of the 20-step DDIM trajectory (Song et al., 2021). Although and remain fixed, the evolving hidden states and noise level change the queries, actions, and gates across the trajectory. The intervention thus responds to the current generation state at both scales. The backbone remains frozen while the intervention learns how to combine the affective direction with the source visual reference. Appendix B specifies the attention, context construction, gating, low-rank parameterization, initialization, and layer configuration.
3.4 SUPERVISION THROUGH THE GENERATED IMAGE
The two conditions guide how the editor changes its representations; training must connect those changes to the image they produce. We therefore supervise the completed output along the same two dimensions: the affective change it realizes and the visual content it retains. After the full generation trajectory, the frozen, differentiable TRIBE model predicts the output image's cortical responses. Losses on these responses propagate through the image decoder and all denoising steps to the intervention parameters, implementing the output-supervision paths on the right of Figure 2.
For affective supervision, we align the generated response change with the change specified by the paired target:
Source, target, and generated responses are computed with the same continuous-image teacher. The paired target anchors the desired output change, while supplies the editor's input guidance. This keeps output supervision independent of the predictor's estimate.
Visual supervision limits source-relative neural drift while allowing the visual modifications needed for the emotional goal. We use a soft budget relative to a matched edit from the frozen base model. Let be the output with the same source, emotion conditions, initial noise, and sampler, with interventions disabled. If measures source-relative response differences in the visual ROI codes, then
where and sg stops gradients. The matched base edit provides a reference amount of visual change under the same editing request. The loss penalizes only deviation beyond this reference plus allowance , permitting necessary scene changes while limiting additional drift introduced by the intervention.
We complement these neural objectives with an emotion loss for the requested distribution and a content loss for image-level preservation. The content loss separately budgets CLIP deviation from the matched base output and structural deviation from the source image. We also retain the editor's noise-prediction objective and regularize the combined hidden update with . The full objective is
Together, these objectives train the joint intervention to translate an affective direction into changes grounded in the source scene. Appendix C specifies the distance functions and auxiliary losses, and Appendix D provides the training and inference settings.
4 EXPERIMENTS
We evaluate whether joint neural guidance improves emotional editing and source-content preservation, identify the contributions of its components, and examine whether it strengthens affective correspondence in hidden representations.
4.1 EXPERIMENTAL SETUP
Data. We evaluate all methods on the same post hoc selected subset of 400 editing requests from AffectPair-249K, introduced by AffectDelta (Zhan et al., 2026). Source and target categories are each balanced across amusement, anger, awe, contentment, disgust, excitement, fear, and sadness, with 50 examples per category in each distribution.
Baselines. We compare seven methods spanning general editing and emotion-oriented transformation. LDAST (Fu et al., 2022) transfers artistic style from language, SDEdit (Meng et al., 2022) edits through noise addition and diffusion denoising, and InstructPix2Pix (IP2P) (Brooks et al., 2023) follows natural-language editing instructions. Among emotion-oriented methods, AIF (Weng et al., 2023) maps textual emotions to color and texture changes; EmoEdit (Yang et al., 2025) learns emotion-conditioned semantic modifications; and EmoEditor (Lin et al., 2025) combines global emotional context with local visual cues. AffectDelta (Zhan et al., 2026) conditions editing on signed differences between source and target emotion distributions. As our base editor, it also provides a direct comparison for assessing the gains from neural intervention.
Metrics. A shared, frozen eight-class ResNet-18 emotion predictor from EmoEditor (Lin et al., 2025) measures target-emotion accuracy (Emo-A) and the signed increase in target-emotion probability ( Target). DINO-I, CLIP-I, and LPIPS assess preservation relative to the source. Joint Success Rate (JSR) measures the fraction of all outputs that both match the target emotion and reach a DINO-I threshold , testing whether the same edit satisfies both goals. Appendix E gives the metric definitions and evaluator configurations; Appendix D provides training and inference details.
4.2 COMPARISON WITH STATE-OF-THE-ART METHODS
Quantitative Comparison. ROI-ReFT improves emotional control and content preservation together (Table 1). It achieves the highest Emo-A of 91.750%, exceeding AffectDelta's 70.500% by 21.250 percentage points, and the highest Target of +0.301 versus +0.199. Relative to AffectDelta, DINO-I rises from 0.749 to 0.862, CLIP-I from 0.751 to 0.819, and LPIPS decreases
Table 1: Quantitative comparison of emotion editing and image preservation on the selected 400 editing requests. Arrows indicate whether higher or lower values are better. Best and second-best results in each column are bold and underlined, respectively, with ranks determined before rounding. Ties receive the same marking.
| Method | Emo-A ↑ | ΔTarget ↑ | DINO-I ↑ | CLIP-I ↑ | LPIPS ↓ |
|---|---|---|---|---|---|
| LDAST (Fu et al., 2022) | 30.500% | -0.154 | 0.508 | 0.672 | 0.462 |
| SDEdit (Meng et al., 2022) | 22.250% | -0.229 | 0.159 | 0.544 | 0.565 |
| IP2P (Brooks et al., 2023) | 53.500% | +0.039 | 0.948 | 0.739 | 0.270 |
| AIF (Weng et al., 2023) | 31.250% | -0.141 | 0.774 | 0.806 | 0.267 |
| EmoEdit (Yang et al., 2025) | 66.750% | +0.169 | 0.745 | 0.806 | 0.267 |
| EmoEditor (Lin et al., 2025) | 45.750% | -0.032 | 0.807 | 0.795 | 0.267 |
| AffectDelta (Zhan et al., 2026) | 70.500% | +0.199 | 0.749 | 0.751 | 0.390 |
| ROI-ReFT (Ours) | 91.750% | +0.301 | 0.862 | 0.819 | 0.252 |
from 0.390 to 0.252. ROI-ReFT ranks first on CLIP-I and LPIPS and second on DINO-I. IP2P obtains higher DINO-I (0.948), but its Emo-A is , illustrating why visual similarity must be considered alongside emotional correctness. The simultaneous gains over the base editor support combining an affective editing direction with a source visual reference.
Joint Emotional and Visual Success. JSR tests whether the aggregate gains above occur in the same outputs. Figure 3 shows that ROI-ReFT leads across most preservation thresholds, reaching at (333 of 400 outputs). IP2P preserves source content closely and leads at the strictest thresholds, but its lower emotional accuracy limits the fraction of edits that achieve the requested emotion. ROI-ReFT's higher joint success across most thresholds supports coordinating emotional change with visual preservation.

Figure 3: Joint Success Rate (JSR) across DINO-I thresholds on the same 400 selected editing requests. An output counts as successful only when its predicted emotion matches the target and its source–output DINO-I is at least . Higher curves indicate more outputs satisfying both requirements. ROI-ReFT achieves JSR at (333 of 400 outputs).
Qualitative Comparison. Figure 4 presents one example for each of the eight target emotions. Each row uses the same source image and target emotion across methods. In the anger and excitement examples, ROI-ReFT changes facial expressions while retaining the man holding banknotes and the illustrated woman with her ornate headdress, robe, and staff, respectively. These edits illustrate how an emotional direction can be realized through scene-specific cues while keeping the principal subjects and their context recognizable.
4.3 ABLATION STUDY
Ablation Settings. We compare seven settings in Table 2 to examine neural guidance, interaction, and output supervision. ReFT w/o ROI retains the representation intervention but removes ROI guidance. Visual-only uses only the source visual condition, while Affective-only uses only the

Figure 4: Qualitative comparison for eight target emotions. Each row shows the input image, the target emotion at left, and outputs from eight editing methods. Ours denotes ROI-ReFT with a ReFT write gain of 0.5, and AffectDelta is the base editor. IP2P denotes InstructPix2Pix.
predicted affective change. Dual, independent lets each branch read its own ROI condition; Dual, interactive lets both branches read both conditions and constitutes the full model. Full w/o removes affective response alignment on the generated image (Eq. 4), while Full w/o removes the visual response budget (Eq. 5). These settings examine the source content reference and affective editing direction individually, jointly, and through their output objectives.
Table 2: Ablation results on the same selected subset of 400 editing requests. Full denotes dual ROI guidance with interactive reading. All percentages use a denominator of 400; JSR additionally requires DINO-I for the same output. Best and second-best results in each column are bold and underlined, respectively, with ranks determined before rounding.
| Variant | Emo-A ↑ | ΔTarget ↑ | DINO-I ↑ | CLIP-I ↑ | LPIPS ↓ | JSR(0.80) ↑ |
|---|---|---|---|---|---|---|
| ReFT w/o ROI | 78.500% | +0.231 | 0.803 | 0.781 | 0.319 | 67.500% |
| Visual-only | 83.000% | +0.246 | 0.888 | 0.845 | 0.215 | 76.000% |
| Affective-only | 89.000% | +0.289 | 0.788 | 0.760 | 0.335 | 74.000% |
| Dual, independent | 89.500% | +0.292 | 0.837 | 0.801 | 0.277 | 78.500% |
| Dual, interactive | 91.750% | +0.301 | 0.862 | 0.819 | 0.252 | 83.250% |
| Full w/o | 87.000% | +0.267 | 0.858 | 0.817 | 0.257 | 77.250% |
| Full w/o | 91.000% | +0.308 | 0.805 | 0.773 | 0.319 | 75.500% |
Results and Analysis. The results support the complementary roles of the two neural conditions. Compared with ReFT w/o ROI, the full model raises Emo-A from 78.500% to 91.750% and JSR from 67.500% to 83.250%. Visual-only achieves the strongest preservation scores, whereas Affective-only achieves higher Emo-A (89.000% versus 83.000%) but lower JSR (74.000% versus 76.000%). This contrast supports using visual responses as a content reference and affective changes as an editing direction. Interactive reading further increases JSR over independent reading from 78.500% to 83.250%, while improving Emo-A and all three preservation metrics, supporting coordination between these roles. Output supervision helps realize this coordination: removing lowers Emo-A to 87.000% and JSR to 77.250%, with comparatively small preservation changes. Removing retains 91.000% Emo-A and raises Target to +0.308, but weakens all three preservation scores and lowers JSR to 75.500%. Thus, stronger target-emotion probability gains can accompany weaker content preservation. Together, the ablations support our motivation to let the source scene shape emotional editing and to supervise both the affective change and the visual content of the resulting image.
4.4 EFFECT OF NEURAL GUIDANCE ON HIDDEN REPRESENTATIONS
To revisit the visual–affective imbalance in Figure 1b, we measure hidden-state correspondence with TRIBE-predicted target-image responses (Table 3). Random and shuffled test whether the affective direction is meaningful and paired with the source scene. Random affective ROI tests region selection by retraining and ReFT with alternative regions, while Full w/o tests affective output supervision. Appendix F details these controls.
Table 3: Hidden-state correspondence with TRIBE-predicted target-image responses, reported as Fisher scores. AffectDelta is the baseline in Figure 1b. The last column is the affective score minus 0.258. Best and second-best results are bold and underlined, respectively.
| Configuration | Early visual z ↑ | Higher visual z ↑ | Affective ROI z ↑ | |
|---|---|---|---|---|
| AffectDelta | 0.427 | 0.447 | 0.258 | — |
| Full + Random | 0.441 | 0.464 | 0.246 | -0.012 |
| Full + Shuffled | 0.448 | 0.460 | 0.262 | +0.004 |
| Random affective ROI | 0.453 | 0.470 | 0.284 | +0.026 |
| Full w/o | 0.468 | 0.482 | 0.352 | +0.094 |
| ROI-ReFT Full | 0.552 | 0.562 | 0.478 | +0.220 |
Analysis. ROI-ReFT raises affective correspondence from 0.258 to 0.478, alongside gains in early and higher visual correspondence from 0.427 to 0.552 and from 0.447 to 0.562. The larger affective gain narrows the visual–affective gap that motivates our method. Norm-matched random conditions yield 0.246, and conditions borrowed from other scenes with similar emotional transitions yield 0.262, supporting a meaningful direction paired with the current scene. Random affective ROIs yield 0.284, supporting the selected affect-related regions over arbitrary regions of matched size. Removing reduces affective correspondence to 0.352, demonstrating the contribution of output supervision. These representation-level findings complement the editing results: joint guidance strengthens affective correspondence while retaining strong visual correspondence.
5 CONCLUSION
We introduced ROI-ReFT to coordinate emotional change with source-content preservation. Our analysis found that the studied editors' hidden states correspond more strongly to TRIBE-predicted visual responses than to affect-related responses. Motivated by this finding, ROI-ReFT combines a source visual reference with a predicted affective response change. Two interacting branches guide the frozen editor throughout generation and learn from the generated image's predicted neural responses. On the post hoc selected subset of 400 editing requests, ROI-ReFT improves emotional accuracy and all three preservation metrics over AffectDelta, with joint success at DINO-I . These results support using complementary neural guidance to shape how an image changes, connecting the requested emotion to the visual content that should remain recognizable.
AI USE STATEMENT
We used generative AI tools for literature review, manuscript polishing, and assistance with research code.
ETHICS STATEMENT
Our method uses existing image data and cortical responses predicted by a pretrained encoding model. These responses are computational estimates rather than direct measurements of an individual viewer's emotion. Emotional interpretations vary across people and contexts, and biases in the data and pretrained models may influence editing and evaluation. Applications should respect image rights and privacy, disclose emotional modifications, and avoid deceptive or coercive uses.
REPRODUCIBILITY STATEMENT
Sections 3 and 4 describe the method and experimental comparisons. Appendices A and B specify the neural encodings and intervention parameterization; Appendices C and D document the objectives, optimization, and inference settings. Metric definitions and neural guidance controls are detailed in Appendices E and F. The reported comparisons use the same post hoc selected set of 400 editing requests and shared frozen evaluators.
REFERENCES
Lisa Feldman Barrett. The theory of constructed emotion: an active inference account of interoception and categorization. Social Cognitive and Affective Neuroscience, 12(1):1–23, 2017. doi:10.1093/scan/nsw154. URL https://academic.oup.com/scan/article/12/1/1/2823712.
Tim Brooks, Aleksander Holynski, and Alexei A. Efros. InstructPix2Pix: Learning to follow image editing instructions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 18392–18402, 2023. URL https://openaccess.thecvf.com/content/CVPR2023/html/Brooks_InstructPix2Pix_Learning_To_Follow_Image_Editing_Instructions_CVPR_2023_paper.html.
Honghang Chen, Xiujun Zhang, Xiaoli Sun, and Mingqing Xiao. Calibrated harmonic overlaid implicit neural representations for multi-dimensional data. In European Conference on Computer Vision, pp. 229–247. Springer, 2026.
Stéphane d'Ascoli, Jérémie Rapin, Yohann Benchetrit, Teon Brooks, Katelyn Begany, Joséphine Raugel, Hubert Banville, and Jean-Rémi King. A foundation model of vision, audition, and language for in-silico neuroscience. arXiv preprint arXiv:2605.04326, 2026. URL https://arxiv.org/abs/2605.04326.
Paul Ekman. An argument for basic emotions. Cognition and Emotion, 6(3-4):169–200, 1992. doi:10.1080/02699939208411068. URL https://www.paulekman.com/wp-content/uploads/2013/07/An-Argument-For-Basic-Emotions.pdf.
Tsu-Jui Fu, Xin Eric Wang, and William Yang Wang. Language-driven artistic style transfer. In European Conference on Computer Vision, 2022. URL https://ldast.github.io/.
James J. Gross. The emerging field of emotion regulation: An integrative review. Review of General Psychology, 2(3):271–299, 1998. doi: 10.1037/1089-2680.2.3.271. URL https://doi.org/10.1037/1089-2680.2.3.271.
Tomoyasu Horikawa, Alan S. Cowen, Dacher Keltner, and Yukiyasu Kamitani. The neural representation of visually evoked emotion is high-dimensional, categorical, and distributed across transmodal brain regions. iScience, 23(5):101060, 2020. doi: 10.1016/j.isci.2020.101060. URL https://pmc.ncbi.nlm.nih.gov/articles/PMC7191651/.
Philip A. Kragel, Marianne C. Reddan, Kevin S. LaBar, and Tor D. Wager. Emotion schemas are embedded in the human visual system. Science Advances, 5(7):eaaw4358, 2019. doi: 10.1126/sciadv.aaw4358. URL https://pmc.ncbi.nlm.nih.gov/articles/PMC6656543/.
Joana Leitão, Ben Meuleman, Dimitri Van De Ville, and Patrik Vuilleumier. Computational imaging during video game playing shows dynamic synchronization of cortical and subcortical networks of emotions. PLOS Biology, 18(11):e3000900, 2020. doi: 10.1371/journal.pbio.3000900. URL https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.3000900.
Qing Li, Zeyu Dong, Yin Cui, Chuan Yan, and Xiaojiang Peng. What can i edit? open-ended strategy discovery and the emotion editability landscape. arXiv preprint arXiv:2607.23920, 2026. URL https://arxiv.org/abs/2607.23920.
Zhe Li, Wieland Brendel, Edgar Walker, Erick Cobos, Taliah Muhammad, Jacob Reimer, Matthias Bethge, Fabian Sinz, Zachary Pitkow, and Andreas Tolias. Learning from brains how to regularize machines. In Advances in Neural Information Processing Systems, volume 32, 2019. URL https://proceedings.neurips.cc/paper/2019/hash/70117ee3c0b15a2950f1e82a215e812b-Abstract.html.
Qing Lin, Jingfeng Zhang, Yew-Soon Ong, and Mengmi Zhang. Make me happier: Evoking emotions through image diffusion models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 16367–16376, 2025. URL https://openaccess.thecvf.com/content/ICCV2025/html/Lin_Make_Me_Happier_Evoking_Emotions_Through_Image_Diffusion_Models_ICCV_2025_paper.html.
Stacy C. Marsella and Jonathan Gratch. EMA: A process model of appraisal dynamics. Cognitive Systems Research, 10(1):70–90, 2009. URL https://stacymarsella.org/publications/pdf/EMA_Dynamics.pdf.
Chenlin Meng, Yutong He, Yang Song, Jiaming Song, Jiajun Wu, Jun-Yan Zhu, and Stefano Ermon. SDEdit: Guided image synthesis and editing with stochastic differential equations. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=aBsCjcPu_tE.
Kevin N. Ochsner, Silvia A. Bunge, James J. Gross, and John D. E. Gabrieli. Rethinking feelings: An fMRI study of the cognitive regulation of emotion. Journal of Cognitive Neuroscience, 14(8):1215–1229, 2002. doi: 10.1162/089892902760807212. URL https://doi.org/10.1162/089892902760807212.
Kuan-Chuan Peng, Tsuhan Chen, Amir Sadovnik, and Andrew C. Gallagher. A mixed bag of emotions: Model, predict, and transfer emotion distributions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 860–868, 2015. URL https://openaccess.thecvf.com/content_cvpr_2015/html/Peng_A_Mixed_Bag_2015_CVPR_paper.html.
Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pp. 8748–8763. PMLR, 2021. URL https://proceedings.mlr.press/v139/radford21a.html.
James A. Russell. A circumplex model of affect. Journal of Personality and Social Psychology, 39(6):1161–1178, 1980. URL https://pdodds.w3.uvm.edu/research/papers/others/1980/russell1980a.pdf.
Klaus R. Scherer. Emotions are emergent processes: they require a dynamic computational architecture. Philosophical Transactions of the Royal Society B: Biological Sciences, 364(1535): 3459–3474, 2009. doi: 10.1098/rstb.2009.0141. URL https://pmc.ncbi.nlm.nih.gov/articles/PMC2781886/.
Craig A. Smith and Phoebe C. Ellsworth. Patterns of cognitive appraisal in emotion. Journal of Personality and Social Psychology, 48(4):813–838, 1985. doi: 10.1037/0022-3514.48.4.813. URL https://pubmed.ncbi.nlm.nih.gov/3886875/.
Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, 2021. URL https://arxiv.org/abs/2010.02502.
Xiaohui Wang, Jia Jia, and Lianhong Cai. Affective image adjustment with a single word. The Visual Computer, 29(11):1121–1133, 2013. doi: 10.1007/s00371-012-0755-3. URL https://link.springer.com/article/10.1007/s00371-012-0755-3.
Shuchen Weng, Peixuan Zhang, Zheng Chang, Xinlong Wang, Si Li, and Boxin Shi. Affective image filter: Reflecting emotions from text to images. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 10810–10819, 2023. URL https://openaccess.thecvf.com/content/ICCV2023/html/Weng_Affective_Image_Filter_Reflecting_Emotions_from_Text_to_Images_ICCV_2023_paper.html.
Zhengxuan Wu, Aryaman Arora, Zheng Wang, Atticus Geiger, Dan Jurafsky, Christopher D. Manning, and Christopher Potts. ReFT: Representation finetuning for language models. In Advances in Neural Information Processing Systems, volume 37, 2024. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/75008a0fba53bf13b0bb3b7bff986e0e-Abstract-Conference.html.
Mingqing Xiao, Kai Du, and Zhouchen Lin. Beyond representational alignment with brain-guided language models for robust reasoning. Nature Machine Intelligence, 8:1275–1289, 2026. doi: 10.1038/s42256-026-01278-w. URL https://www.nature.com/articles/s42256-026-01278-w.
Jingyuan Yang, Jiawei Feng, Weibin Luo, Dani Lischinski, Daniel Cohen-Or, and Hui Huang. EmoEdit: Evoking emotions through image manipulation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 24690–24699, 2025. URL https://openaccess.thecvf.com/content/CVPR2025/html/Yang_EmoEdit_Evoking_Emotions_through_Image_Manipulation_CVPR_2025_paper.html.
Xingzu Zhan, Lin Gu, and Ruogu Fang. AffectDelta: Beyond emotion labels for image editing. arXiv preprint arXiv:2609.02616, 2026. URL https://arxiv.org/abs/2609.02616.
Richard Zhang, Phillip Isola, Alexei A. Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. URL https://richzhang.github.io/PerceptualSimilarity/.
A NEURAL GUIDANCE ENCODING
The frozen TRIBE v2 model predicts a population cortical response . For a static image, we average the four retained response samples under a fixed presentation protocol. The visual state and affective change encoders summarize different quantities and use different normalization conventions.
For each of two visual ROI groups , the frozen state encoder standardizes, projects, and whitens the source response:
Here maps each group to 16 coordinates, contains its coordinate normalization factors, and denotes elementwise division. The source-dependent state is shared across the generation trajectory. The corresponding difference encoder applies the same scaling, projection, and whitening to a response difference without subtracting .
For three affect-related ROI groups , we encode a signed cortical response difference as
Each group contributes eight coordinates. The group projections are fitted by uncentered singular value decomposition of training response differences, with vertex scaling and a single RMS scale per ROI group, represented by . Encoding differences without mean subtraction preserves zero change and its sign, distinguishing this code from the centered visual state.
The predictor input is obtained by pooling the source VAE's unscaled posterior-mode latent to . The predictor applies layer normalization to and uses an MLP with two 256-dimensional hidden layers to map the concatenated source and emotion inputs to 24 coordinates. It is pretrained with group-averaged Smooth L1 supervision on paired affective change codes under its fixed response-prediction protocol and then frozen. We retain this pretrained encoding convention during intervention training. Final-image supervision recomputes source, target, and generated responses with a common continuous-image TRIBE protocol.
B JOINT INTERVENTION PARAMETERIZATION
At layer , timestep , and spatial position , let be the hidden vector and its channel RMS. A query combines the normalized hidden vector with source, time, and layer context:
(9)
The time descriptor contains the normalized scheduler timestep, normalized log signal-to-noise ratio, and three smooth phase weights. A shared layer adapter can therefore change its action as denoising progresses.
Group-specific linear projections turn the three affective code groups into tokens and the two visual state groups into tokens . Each token receives a learned group embedding. Separate scaled dot-product attention reads the two token sets, and a direct emotion projection provides the requested distribution change:
(10)
The trainable MLP complements the frozen affective predictor. Spatial selectivity comes from the queries formed from the editor's hidden states.
For each branch , an action network produces rank-r coefficients, and an independent sigmoid gate controls their strength. The updates in Eq. (3) are
Here is a trainable basis normalized rowwise. Each branch has its own basis, action network, and gate, while both use the joint context in Eq. (10). Their gates can activate simultaneously. Zero-initialized action output layers make the intervention initially preserve the base editor.
We apply the writes at the U-Net's mid_block and up_blocks.2, with 1280 and 640 channels, respectively. Each layer has a rank-16 adapter with token width 64. Both layers are active at every step of the 20-step DDIM trajectory. Conditions remain fixed for a given edit, while hidden states, queries, actions, and gates evolve. The original source latent remains concatenated with the noisy latent to retain the editor's spatial input.
C OUTPUT DISTANCES AND AUXILIARY OBJECTIVES
The visual distance in Eq. (5) averages the RMS differences of the two visual ROI codes:
The paired target supplies the affective loss in Eq. (4), while the matched base output supplies the reference deviation for the visual budget.
A frozen emotion predictor is supervised by . For content, define , where is the frozen CLIP image encoder (Radford et al., 2021). We combine a budget on deviation from the matched base edit with a budget on source structure:
The structural distance averages squared differences between normalized Sobel edge maps at resolutions 32, 16, and 8. At each resolution, luminance is centered and RMS-normalized before extracting and normalizing the edges. This constrains coarse layout while accommodating brightness and contrast changes. We use , , and ; each term penalizes only deviations exceeding its budget.
The noise-prediction objective is
where is a noisy latent of the paired target image , timesteps cover the full training noise schedule, denotes the frozen editor, and the trainable intervention. The normalized update penalty measures squared total write magnitude relative to squared hidden magnitude, averaged over the two intervention layers. On output-supervision updates, it averages this sampled-step penalty with the corresponding full-trajectory penalty.
D TRAINING AND INFERENCE
We optimize the intervention’s token projections, context maps, emotion projections, action networks, gates, and per-layer bases. The base U-Net, VAE, emotion encoder, affective predictor Q, TRIBE, and ROI encoders remain frozen. Every update combines a randomly sampled noise-prediction objective with full-trajectory output supervision. Activation checkpointing retains gradient paths through all 20 denoising steps, the image decoder, and the frozen neural teacher.
Training uses the observed source-to-target emotion transitions to balance pair exposure, while retaining each pair's original images and soft emotion distributions. The sampler prioritizes underrepresented transitions and, when available within its balance tolerance, pairs consecutive selections from the same source with different target categories. We use AdamW for 2000 updates at a learning rate of , with four workers and one pair per worker, zero weight decay, and gradient clipping at 1. The loss weights are , , and ; the visual ROI allowance is . The random seed is 20260918.
At inference, the source image supplies its latent features and visual response state, while Q predicts the affective change from the source and requested emotion distributions. These conditions are computed once and reused throughout sampling. We use a uniform intervention gain for both layers and all steps in the current inference configuration. The gain scales the learned hidden-state writes in Eq. (3); training uses unit gain. A target image is required for paired training supervision but is unnecessary for editing a new source image.
E EVALUATION METRICS
We evaluate every method on the same source–target emotion pairs. For pair , is the source image, is the edited output, and is the requested emotion category. The fixed emotion predictor from EmoEditor (Lin et al., 2025) returns the eight-class probability vector . Visual preservation is measured between and . Each image pair contributes equally to the reported mean.
E.1 EMOTION EDITING METRICS
Emotion accuracy (Emo-A). An edit is emotionally successful when the evaluator's most probable category equals the requested target. Define
The indicator is one for a correct target prediction and zero otherwise. We report Emo-A as a percentage, so each successful output contributes percentage points. This measures target-category correctness without imposing a visual preservation threshold.
E.2 VISUAL PRESERVATION METRICS
DINO image similarity (DINO-I). Let denote the image feature produced by the fixed DINO-based evaluation encoder, including its input preprocessing. We first normalize each feature to unit Euclidean norm, , and compute source–output cosine similarity:
Higher values indicate closer visual representations of the source and edited images. The joint-success calculation below uses each individual before averaging.
CLIP image similarity (CLIP-I). For the fixed CLIP image encoder (Radford et al., 2021), let include its input preprocessing and image projection, and define . CLIP-I is
This compares two images in CLIP's representation space, with higher scores indicating greater similarity. The source image is the reference for this evaluation, whereas the training content budget in Eq. (13) uses the matched base edit for its CLIP term.
Learned Perceptual Image Patch Similarity (LPIPS). LPIPS (Zhang et al., 2018) compares normalized intermediate feature maps using learned channel weights. Let denote the channel-normalized feature at spatial position of layer , and let be its learned channel weights. The per-pair distance and test-set mean are
(18)
Here and are the feature-map dimensions and denotes elementwise multiplication. Smaller distances indicate greater perceptual similarity. Unlike DINO-I and CLIP-I, LPIPS aggregates spatial feature differences across multiple layers.
E.3 JOINT SUCCESS RATE (JSR)
JSR measures how often the same edited image achieves the emotional goal and meets a specified visual preservation requirement. Using the emotion-success indicator from Eq. (15) and the individual DINO similarity from Eq. (16), we define
The denominator is always the entire test set. An output contributes only if both conditions hold for that output; success on different images cannot be combined. Thus, JSR evaluates the intersection of emotional correctness and visual preservation rather than a product of their separate average scores.
All methods use the same 400 pairs and the same thresholds. For every , we compare each unrounded per-image DINO similarity with , count the jointly successful outputs, and divide by 400. We report 100 JSR( ) on the percentage axis of Figure 3, sweeping the displayed threshold range [0, 0.90]. For example, ROI-ReFT has 333 jointly successful outputs at , giving 333/400 = 0.8325, reported as 83.250%.
For fixed outputs, JSR is non-increasing as increases and is bounded above by Emo-A. When a threshold admits every image pair, JSR equals Emo-A. The curve therefore shows how much emotional success remains as the required visual similarity becomes stricter. Table values are rounded to three decimal places for presentation; thresholding is performed before rounding.
F NEURAL GUIDANCE CONTROL SETTINGS
The controls in Table 3 distinguish the information carried by the affective condition, its pairing with the source scene, and the choice of guidance regions.
Random . For each request, we replace with a random 24-dimensional vector generated in the training-set standardized coordinates and matched to the norm of the predicted condition it replaces. We keep the source image, visual condition , emotion inputs, diffusion noise, and model weights unchanged. Results are summarized over multiple predefined random seeds per request. Matching the norm separates direction information from changes in input magnitude.
Shuffled . For request , we select another request with the same target emotion, a similar source emotion distribution and transition magnitude, and a different source scene. We use request 's predicted affective condition while retaining request 's source image, , , , diffusion noise, and model weights. This control preserves a genuine output of and approximately preserves emotional-transition information while disrupting its pairing with the current scene.
Random affective ROI. We select regions outside the original affective ROIs with matching vertex counts, reconstruct the 24-dimensional affective code using the same encoding procedure, and retrain both Q and ReFT. The visual ROIs remain unchanged. We repeat the experiment with multiple random region selections to examine whether the benefit depends on the chosen affect-related regions.
Removing affective output supervision. Full w/o retains both guidance branches and removes the affective response alignment objective on the generated image, as in Section 4.3.
G HIDDEN-STATE CORRESPONDENCE ANALYSIS OF EXISTING EDITORS
This analysis provides the encoding protocol and controls for the EmoEdit and EmoEditor results in Figure 1b. We examine how well an editor's intermediate representation predicts the neural response associated with its paired target image.
Data and representation extraction. The two editors use the same 400 source–target pairs in the same order. Source and target emotion categories are each balanced across eight classes, with 50 samples per category. In 155 pairs, source and target share the same dominant emotion category; the remaining 245 pairs change category. Each editor receives the source image and target emotion. We record the output of unet.mid_block at step 15 of a 30-step generation trajectory. This diagnostic extraction schedule is separate from the 20-step inference configuration of ROI-ReFT. TRIBE v2 predicts responses to the source and paired target images; the encoding analysis uses the paired target response as its prediction target.
ROI encoding and controls. We analyze five ROI groups: early visual (V1/V2/V3), V4/higher visual, affect-related, auditory, and sensorimotor regions. For each editor and ROI group, we fit a separate linear encoding model using a five-fold pipeline of feature standardization, principal component analysis, and cross-validated ridge regression. The ridge objective is
where contains the transformed hidden features and each row of contains the paired target image's predicted response within ROI , . Thus, the probe predicts a target response state, whereas the affective guidance in our method specifies a response change. We evaluate predictions on held-out folds using Pearson correlation and report Fisher-transformed scores, .
We compare the actual hidden features with two controls. Shuffled hidden permutes hidden-to-response pairings within folds among requests with the same target emotion. This preserves target-category membership while disrupting the correspondence between individual requests and their paired target responses. Random features uses Gaussian features with the same shape as the hidden features. Both controls repeat the complete encoding pipeline and five-fold evaluation. These controls operate on the features used for the probe, whereas the controls in Section 4.4 perturb the neural guidance supplied to ROI-ReFT.
Table 4: Hidden-state correspondence with TRIBE-predicted paired-target responses for existing editors. Scores are Fisher-transformed Pearson correlations. Shuffled hidden preserves target-emotion groups while disrupting pairings; Random features replaces hidden features with same-shaped Gaussian features.
| ROI group | EmoEditor | EmoEdit | ||||
|---|---|---|---|---|---|---|
| Actual | Shuffled | Random | Actual | Shuffled | Random | |
| Early visual | 0.391 | 0.016 | -0.015 | 0.405 | 0.051 | -0.039 |
| V4/higher visual | 0.460 | 0.032 | -0.039 | 0.356 | 0.070 | -0.017 |
| Affective | 0.240 | 0.007 | -0.035 | 0.237 | 0.132 | 0.001 |
| Auditory control | 0.232 | 0.034 | 0.074 | 0.187 | 0.105 | 0.092 |
| Sensorimotor control | 0.206 | -0.014 | -0.021 | 0.191 | 0.106 | -0.001 |
Results. Actual features exceed both controls in every ROI group (Table 4), indicating correspondence with the predicted responses beyond the tested pairing and random-feature controls. Both editors have their two highest scores in visual regions. EmoEditor's highest visual score is 0.460, compared with 0.240 in affect-related regions; EmoEdit's corresponding scores are 0.405 and 0.237. Higher scores than the same-target shuffled control indicate that the correspondence depends on request-level pairing beyond target-category membership. Positive correspondence also appears in auditory and sensorimotor regions. The stronger visual correspondence and comparatively weaker affective correspondence reveal the representational imbalance that motivates the joint guidance design studied in the main paper.