Manuscript Offprint

arXiv:2610.33460

Semantic-First MixGRPO: Reliable Emotional Image Generation via Temporal Decoupling

Zhenxuan Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Controllable image synthesis should modify visual affect without replacing the objects, layout, or relations specified by a prompt. Existing methods address this tension through conditioning architectures or auxiliary losses, while mixed ordinary differential equation (ODE) and stochastic differential equation (SDE) sampling has mainly been used to accelerate group relative policy optimization (GRPO). We instead study stochastic-window position as an attribute-control variable for flow-based image generation. Using FLUX.1-dev with EmotiCrafter-style valence-arousal conditioning, we compare fixed early, middle, and late four-transition SDE windows, progressive MixGRPO, and full-path Flow-GRPO under matched settings. Because step 0 has the highest noise, our semantic-first schedule uses deterministic ODE sampling at steps 0–19 to establish content, then confines stochastic exploration and policy updates to steps 20–23. Across three seeds, it achieves a CLIPScore of 29.662±0.27629.662 \pm 0.276, cross-affect DINO consistency of 80.1±0.980.1 \pm 0.9, and semantic drift of 2.9%, while reducing training cost by 33.5% relative to full-path Flow-GRPO. Full-path stochastic training remains more accurate on valence-arousal targets, revealing a genuine trade-off. Semantic-first nevertheless improves both affect and semantic metrics over progressive scheduling, preserves the principal subject in 95.98% of images at five extreme or neutral targets, and receives the highest semantic-preservation and overall-preference ratings in a 30-participant study. These results identify probability-flow time as a practical graphics control dimension for reliable affective appearance manipulation.

Keywords: controllable image synthesis, emotional image generation, flow matching, GRPO, semantic preservation

1. Introduction

Emotion-aware image generation is useful in advertising, interface design, educational media, entertainment, and human-computer interaction, where the same semantic scene may need to convey different affective states. A practical system should therefore answer two questions simultaneously: what should appear, and how should it feel. The continuous valence-arousal (V-A) model provides a compact control space for the second question [1, 2]. EmotiCrafter further demonstrates that an emotion injection transformer (EIT) can condition text-to-image generation on continuous V-A targets [3]. Nevertheless, stronger affective modulation may change a prompt's main object, layout, or relations. In engineering deployment, a cheerful tree becoming fireworks is not a harmless stylistic variation; it is a specification failure.

Online reinforcement learning (RL) offers a direct way to optimize non-differentiable affect and semantic rewards. Flow-GRPO formulates stochastic sampling in flow-matching models as a Markov decision process and optimizes the full trajectory [4]. Its full-path SDE rollout creates exploration but is computationally expensive. MixGRPO reduces this overhead by using SDE sampling and GRPO optimization only inside a short window while using deterministic ODE sampling elsewhere [5]. In the original formulation, the window is mainly an efficiency and curriculum mechanism. Yet denoising time is not attribute-neutral: high-noise steps establish global scene structure, whereas low-noise steps increasingly affect local appearance and detail [5, 6].

This observation motivates our central question: when should stochastic exploration be introduced if semantics and affect must share one probability-flow trajectory? We compare two temporal orders under the same backbone, rewards, number of sampling steps, and SDE-window size. Emotion-first exposes the high-noise phase to SDE exploration and later returns to an ODE trajectory. Semantic-first keeps the high-noise phase deterministic and introduces stochastic exploration only after the scene structure has formed. In our implementation, step 0 is the highest-noise step, so semantic-first uses the late SDE window [20, 24].

Full-path Flow-GRPO achieves the lowest V–A error, confirming that unrestricted stochastic optimization maximizes affective exploration. This benefit coincides with lower CLIP and DINO scores and higher semantic drift. The proposed late-window schedule preserves most of the affect improvement over a non-RL baseline, improves every reported main metric over progressive

MixGRPO, and reduces end-to-end training cost. Figure 1 illustrates the underlying control problem: affective appearance should change while the prompt-defined scene remains recognizable.

Our contributions are:

  • We formulate the position of the SDE/optimization window as a temporal allocation of responsibilities between semantic formation and affective rendering.

  • We instantiate a semantic-first schedule: deterministic ODE sampling at high noise followed by a fixed four-step SDE window at low noise. The schedule uses the FLUX-compatible V-A EIT and MixGRPO framework without an additional loss or network branch.

  • We characterize the affect–semantic trade-off through controlled schedule comparisons, three-seed evaluation, extreme V–A cases, efficiency measurements, and a 30-participant study. Semantic-first improves the reported affect and semantic metrics over progressive scheduling and provides stronger principal-subject preservation than full-path stochastic optimization, which achieves the lowest affect error.

References (30)