Manuscript Offprint
arXiv:2610.33460Semantic-First MixGRPO: Reliable Emotional Image Generation via Temporal Decoupling
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 , cross-affect DINO consistency of , 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.
2.1. Continuous emotional image generation
Visual affect has been modeled with discrete categories and continuous dimensions, with valence and arousal providing a widely used two-dimensional representation [1, 2]. Earlier generation and editing approaches used color transfer, adversarial learning, or semantic emotion concepts [7, 8, 9]. Emoti-Crafter learns a continuous emotion embedding and injects it into prompt features, allowing one prompt to be rendered at different V–A coordinates [3]. Dang et al. combine continuous V–A conditioning with GRPO and a neutral semantic anchor to improve emotional alignment while preserving prompt-defined content [10]. Our work reuses EmotiCrafter's conditioning principle. The contribution is not a new emotion encoder; it is an empirical study of where stochastic optimization should act along the denoising trajectory.
Prompt: A mountain range under a starry night sky
Target · Same prompt and initial noise
Emotion-first

Foreground traveler; sky suppressed
SDE 0–3 → ODE
Formal semantic drift: 17.2%
Semantic-first (ours)

Mountain landscape and sky retained
ODE 0–19 → SDE 20–23
Formal semantic drift: 2.9%
Figure 1: The affect-semantics control problem. For the same prompt, target, and initial noise, the Emotion-first output introduces a foreground traveler, while Semantic-first retains the mountain landscape and starry sky. The schedule strips show where stochastic exploration is introduced; the images are final outputs, not intermediate denoising states. The reported drift rates summarize the formal schedule comparison in Table 3.
2.2. Flow matching and mixed ODE–SDE sampling
Diffusion and flow models admit deterministic probability-flow ODEs and related stochastic sampling processes [11, 12, 13]. Rectified-flow transformers such as FLUX enable high-resolution text-to-image generation with comparatively short trajectories [14, 6]. Deterministic solvers accelerate generation [15, 16], whereas stochastic transitions provide the action distribution needed by online policy optimization.
MixGRPO combines these modes by placing SDE transitions inside a sliding window and ODE transitions outside it [5]. Its progressive schedule moves from low signal-to-noise ratio (SNR) to high SNR. Recent work further shows that flow-model policy optimization is temporally non-uniform. TempFlow-GRPO concentrates branching at selected timesteps and applies noise-aware optimization weights [17]; Stepwise-Flow-GRPO assigns credit from estimated reward improvements at individual transitions [18]; and BranchGRPO reuses shared trajectory prefixes to improve rollout stability and efficiency [19]. Neighbor GRPO instead avoids SDE conversion by constructing a con-trastive policy objective around neighboring deterministic ODE trajectories [20]. These methods target temporal credit assignment, rollout reuse, or alternative policy construction. In contrast, we keep the reward, backbone, and four-transition budget fixed and treat the location of stochasticity as an attribute-control variable. The question is not which timestep deserves more generic optimization weight, but which temporal order best separates semantic formation from affective rendering.
2.3. Reinforcement learning for image generation
Reward-weighted fine-tuning and policy-gradient methods have aligned diffusion models with human preferences and task-specific objectives [21, 22, 23]. GRPO normalizes rewards within groups and avoids a learned value network [24]. Flow-GRPO and DanceGRPO adapt this idea to flow-based visual generation [4, 25]. In medical visual grounding, PACE-MoE coordinates adaptive domain sampling with domain-specific LoRA updates under GRPO [26], providing a related example of controlling training allocation while retaining the policy objective. Because reward optimization may exploit imperfections in evaluators, multi-objective evaluation and semantic auditing remain essential. Our experiments use separate affect and semantic rewards, report both outcome families, and include human evaluation rather than collapsing them into a single score.
3. Methodology
Affect control and semantic preservation share the same generation trajectory. Our design allocates stochastic exploration to its late phase: deterministic sampling first establishes the scene, and a short stochastic window then refines its affective appearance. We describe the fixed V–A conditioning, the mixed sampling schedule, and the joint reward objective in that order.
3.1. Problem formulation
Let denote a neutral text prompt, a target valence-arousal coordinate, and the generated image. We seek a policy that reduces affect error while preserving the prompt-conditioned subject and incurring practical training cost. For a schedule , the engineering objective is naturally multi-objective:
(1) where is affect error, measures semantic fidelity or consistency, and is computational cost. Equation (1) is a schedule-selection criterion, not an additional training loss. It makes explicit why the best affect-only method need not be the best engineering operating point.
3.2. V-A emotion injection
We adapt the residual EIT design of EmotiCrafter [3] to the FLUX.1-dev T5 conditioning space. Separate MLPs map valence and arousal to token sets and . Given frozen neutral-prompt features , four EIT blocks successively apply self-attention and cross-attention to the two token sets, and an output projection predicts a residual :
During adapter pretraining, scales the target residual,
where is the frozen T5 embedding of the paired emotional rewrite. The scale is used only to construct this pretraining target; GRPO uses the residual condition in Eq. (2). Before RL, we cache together with the pooled CLIP condition and FLUX text identifiers. The text encoders and VA-EIT remain fixed throughout the schedule study.
3.3. Mixed sampling with a fixed stochastic window
We use 25 sampling transitions indexed by , where is the highest-noise transition. The terminal transition is excluded from the policy objective, so GRPO-optimized indices are 0–23. For a four-step stochastic window beginning at ,
The transition is stochastic only within :
where is the deterministic ODE update and define the SDE transition inherited from Flow-GRPO/MixGRPO [4, 5]. Policy log-probabilities and GRPO gradients are computed only for .
Figure 2 connects the conditioning, rollout, and learning stages. The cached condition is shared across all transitions. Semantic-first uses ODE sampling at steps 0–19 to establish content, followed by SDE sampling at steps 20–23 for affective refinement and a deterministic readout at step 24. The generated image group receives affect and semantic rewards, whose separately normalized advantages are averaged for GRPO. Policy log-probabilities are evaluated only inside to optimize the shared FLUX policy.
All mixed schedules use a deterministic terminal readout. Full-path Flow-GRPO samples all 25 transitions stochastically and computes the policy objective on steps 0–23. This distinction separates the sampling trajectory from the transitions included in policy optimization.
3.4. Compared temporal orders
All fixed-window methods use the same width w = 4:
• Emotion-first: . High-noise SDE exploration acts before deterministic convergence.
• Middle: . Stochasticity is placed between global formation and late refinement.
• Semantic-first (ours): . ODE formation precedes low-noise SDE affective rendering.
• Progressive: a four-step window moves from l = 0 to l = 20 during training, following MixGRPO's curriculum.
• Full-path Flow-GRPO: sampling is stochastic at every transition ; policy optimization uses indices 0–23 and excludes the terminal transition.
3.5. Joint GRPO objective
For each prompt and target, images are generated from the same initial noise and diverge through their active SDE transitions. The affect reward is the negative Euclidean distance predicted by frozen CLIP image regressors:
(a) Fixed affect conditioning
Pretrained before GRPO

(b) Semantic-first rollout and policy optimization
Fixed condition at every transition

(c) Window position
Fixed / progressive window: 4 transitions

Figure 2: Semantic-first training. (a) The pretrained residual VA-EIT constructs fixed FLUX conditions. (b) Rollouts share initial noise, use ODE steps 0–19, branch through SDE steps 20–23, and end with an ODE readout at step 24. Frozen V–A and CLIP evaluators provide group-normalized advantages for GRPO; the policy loss uses . (c) Fixed and progressive schedules share a four-transition window. Full-path Flow-GRPO uses stochastic sampling at steps 0–24 and policy optimization at steps 0–23. Blue denotes ODE sampling, orange SDE sampling, and the green outline the policy-loss window.
The semantic reward is CLIP text–image cosine similarity [27, 28]. Each reward is normalized within its prompt group,
where , and and are the group mean and standard deviation of reward . For transition in the active window, the policy ratio is
The clipped objective is
with . We set the optional KL coefficient to zero in all reported runs, matching the experiment configuration.
3.6. Computational implication
Full-path Flow-GRPO optimizes 24 transitions. A four-step fixed window reduces train-forward function evaluations from to per rank and update, an 83.3% reduction in this component. The end-to-end speedup is necessarily smaller because rollout, reward inference, decoding, communication, and deterministic ODE evaluations remain. We therefore report both NFE and measured wall-clock/GPU-hour cost.
4. Experimental protocol
4.1. Research questions
The experiments address four questions: (RQ1) how window position changes the affect-semantic trade-off; (RQ2) whether semantic-first improves upon progressive scheduling and a non-RL affect-conditioned base; (RQ3) how it compares with full-path SDE when semantic preservation is treated as an engineering constraint; and (RQ4) whether the conclusion persists at extreme affect targets and under human judgment.
4.2. Models, data, and training
The backbone is FLUX.1-dev [29, 6]. We first train the V–A EIT in Eq. (2) on neutral/emotional prompt pairs and cache emotion-conditioned embeddings. GRPO uses 25 sampling steps, output resolution, SDE noise scale , timestep shift 3, 12 generations per prompt, and equal affect/semantic reward weights. Pilot runs use seed 42 for 200 updates. Formal runs use seeds 42, 123, and 3407 for 300 updates. The progressive schedule holds each start for 14 updates and advances by one index.
Evaluation uses 132 neutral prompts. Each prompt is crossed with the 25-point grid , yielding 3,300 images per checkpoint. The 25 V-A variants of the same prompt share initial noise, and corresponding variants share noise across methods. This controls irrelevant composition variation when comparing affect schedules.
The baselines comprise reproduced EmotiCrafter, the no-RL FLUX+VA-EIT base, full-path Flow-GRPO, and progressive MixGRPO. The no-RL FLUX+VA-EIT base isolates the stronger backbone and adapter before policy optimization. Our method uses the fixed late window , with the same backbone, conditioning, and rewards as the other RL schedules.
4.3. Metrics
V-Error and A-Error are mean absolute deviations between target values and predictions from frozen affect regressors. CLIPScore is text-image cosine similarity reported after multiplication by 100 [28]. TIFA uses visual question answering to measure prompt faithfulness and is also reported on a 0–100 scale [30]. CLIP-IQA measures no-reference perceptual quality on a 0–1 scale [31]. DINO consistency is the mean pairwise cosine similarity, multiplied by 100, between DINOv2 embeddings of the 25 V-A variants generated for the same prompt [32]; it measures whether content remains stable as affect changes.
Semantic drift rate is the percentage of evaluated images whose principal subject fails a binary subject-preservation audit. Subject retention rate is the complementary audit used for the five representative V–A points in Section 5.4. These human-audit metrics are reported separately from CLIP and DINO because embedding similarity may miss categorical subject replacement.
4.4. Reporting protocol and user study
For the three-seed configurations, we report the mean and sample standard deviation; the reproduced EmotiCrafter checkpoint is reported separately. The user study involved 30 participants and one common 20-image evaluation set containing outputs from the four compared methods. The participants were randomly selected and invited to take part; no compensation was provided. Before evaluation, all participants were informed of the study procedure and voluntarily agreed to participate. Each participant independently viewed all 20 images and assigned scores from 1 to 5 for affect match, semantic preservation, and overall preference. For each participant and method, we first averaged the ratings over that method's images. We then averaged
Table 1: Window-position pilot (seed 42, 200 updates, fixed width ).
| SDE window | V-Error ↓ | A-Error ↓ | CLIPScore ↑ | TIFA ↑ | CLIP-IQA ↑ | DINO ↑ |
|---|---|---|---|---|---|---|
| Early [0, 4) | 0.978 | 1.261 | 25.641 | 60.8 | 0.885 | 55.3 |
| Middle [10, 14) | 1.142 | 1.472 | 27.723 | 69.4 | 0.904 | 70.8 |
| Late (ours) [20, 24) | 1.281 | 1.574 | 28.935 | 75.2 | 0.915 | 78.1 |
CLIPScore, TIFA, and DINO are reported on their scaled presentation ranges described in Section 4. The pilot selects schedules for the formal three-seed study; it is not pooled with the 300-update results.
(a) Affect accuracy

(b) Prompt alignment
(c) Semantic stability
Figure 3: Pilot trends as the SDE window moves from high-noise to low-noise steps. Affect error rises, but three complementary semantic measures improve. The monotonicity across metrics is more informative than any single endpoint.
these participant-level method means across the 30 participants. Table 6 reports the resulting cross-participant mean and the standard deviation of the participant-level method means.
5. Results
5.1. RQ1: Window position and the affect-semantic trade-off
Table 1 and Figure 3 report the 200-update pilot. Moving the four-step SDE window from early to late raises V-Error from 0.978 to 1.281 and A-Error from 1.261 to 1.574, deteriorations of and . At the same time, CLIPScore rises by , TIFA by , and DINO consistency by . The middle window lies between these endpoints on every listed metric. This consistent ordering is the main empirical evidence for temporal specialization: high-noise randomness is effective for affect exploration but dangerous for content identity, while low-noise randomness acts in a narrower semantic basin.
Table 2: Main results. RL methods are mean sample standard deviation over seeds 42, 123, and 3407.
| Method | V-Error ↓ | A-Error ↓ | CLIPScore ↑ | DINO ↑ | CLIP-IQA ↑ |
|---|---|---|---|---|---|
| EmotiCrafter (reprod.) | 1.510 | 1.828 | 27.742 | 77.3 | 0.917 |
| FLUX+VA-EIT (no RL) | 1.398 ± 0.026 | 1.706 ± 0.020 | 29.320 ± 0.196 | 81.8 ± 0.4 | 0.925 ± 0.020 |
| Flow-GRPO | 0.944 ± 0.027 | 1.190 ± 0.017 | 27.213 ± 0.097 | 63.7 ± 5.2 | 0.909 ± 0.016 |
| Progressive | 1.091 ± 0.014 | 1.386 ± 0.014 | 28.219 ± 0.197 | 74.4 ± 0.7 | 0.912 ± 0.005 |
| Semantic-first (ours) | 1.043 ± 0.017 | 1.324 ± 0.017 | 29.662 ± 0.276 | 80.1 ± 0.9 | 0.916 ± 0.016 |
Bold indicates the best result and underline the second-best result in each column. The yellow row highlights our method; blue is reserved for the column headers. EmotiCrafter is a reproduced fixed checkpoint rather than a three-seed RL run, so no seed deviation is shown. Deviations are recalculated directly from the per-seed values reported in Appendix A.
5.2. RQ2-RQ3: Main comparison
Table 2 and Figure 4 show the affect-semantic operating points. Full-path Flow-GRPO achieves the lowest V-Error and A-Error, with DINO consistency of 63.7. Relative to this baseline, semantic-first increases mean V-A error from 1.067 to 1.183 (10.9%) while improving CLIPScore by 9.0%, DINO consistency by 25.7%, and image quality slightly. The late window therefore provides substantially stronger semantic reliability at a bounded affect penalty.
Against progressive MixGRPO, the conclusion is stronger: semantic-first reduces V-Error by 4.4% and A-Error by 4.5%, while increasing CLIPScore by 5.1%, DINO by 7.7%, and CLIP-IQA by 0.4%. It therefore dominates the generic progressive schedule on the measured outcome axes. Against the no-RL FLUX+VA-EIT base, semantic-first reduces V-Error and A-Error by 25.4% and 22.4%, maintains CLIPScore (+1.2%), and gives up only 2.1% DINO consistency and 1.0% CLIP-IQA. This is the most direct evidence that the late window provides useful affect learning without broadly destabilizing the backbone.
5.3. Order, drift, and the meaning of “semantic-first”
Table 3 compares the fixed temporal orders with progressive and full-path schedules. Emotion-first obtains affect errors close to full-path Flow-GRPO but has a semantic drift rate and DINO consistency of 58.1. Semantic-first lowers drift to , a relative reduction of versus emotion-first and versus full-path Flow-GRPO. Middle and progressive schedules occupy intermediate positions. This ranking supports a temporal, rather than merely architectural, explanation: the same rewards and window size produce different failure modes depending on when stochastic actions are permitted.

Figure 4: Affect-semantic operating points for all five methods in Table 2. Full-path Flow-GRPO is affect-accurate but semantically unstable. Semantic-first lies much closer to the no-RL backbone's semantic consistency while retaining a large affect-error improvement. Leftward movement indicates lower affect error; upward movement indicates higher consistency. The yellow halo marks our method.
Table 3: Formal order and schedule comparison across three seeds.
| Schedule | SDE sampling (optimized) | V-Error ↓ | A-Error ↓ | CLIPScore ↑ | DINO ↑ | Drift ↓ |
|---|---|---|---|---|---|---|
| Emotion-first | 0-3 | 0.968 ± 0.012 | 1.250 ± 0.015 | 26.295 ± 0.089 | 58.1 ± 0.8 | 17.2% |
| Middle | 10-13 | 1.122 ± 0.014 | 1.452 ± 0.016 | 27.902 ± 0.105 | 72.2 ± 0.6 | 7.9% |
| Semantic-first MixGRPO | 20-23 | 1.043 ± 0.017 | 1.324 ± 0.017 | 29.662 ± 0.276 | 80.1 ± 0.9 | 2.9% |
| Progressive | moving | 1.091 ± 0.014 | 1.386 ± 0.014 | 28.219 ± 0.197 | 74.4 ± 0.7 | 6.4% |
| Flow-GRPO | 0-24 (opt. 0-23) | 0.944 ± 0.027 | 1.190 ± 0.017 | 27.213 ± 0.097 | 63.7 ± 5.2 | 13.8% |
5.4. RQ4: Extreme V-A targets
Table 4 and Figure 5 compare the two temporal orders at the four V-A corners and the neutral point. Averaged over these five targets, semantic-first raises CLIPScore from 24.838 to 29.303 (+18.0%), DINO consistency from 51.88 to 77.80 (+50.0%), and subject retention from 72.94% to 95.98% (+23.04 percentage points). V-Error increases by 10.6%, and A-Error changes by only 0.9%. The benefit is therefore not restricted to mild affect settings: late stochasticity largely prevents categorical subject replacement even at the corners of the control space.
Figure 6 makes the forms of semantic drift behind the aggregate scores visually explicit at three representative V-A targets: low valence and low
Table 4: Representative extreme and neutral V-A points.
| Method | Target (V, A) | V-Error ↓ | A-Error ↓ | CLIPScore ↑ | DINO ↑ | Subject retention ↑ |
|---|---|---|---|---|---|---|
| Emotion-first | (3, 3) | 0.918 | 1.371 | 23.914 | 49.1 | 69.8% |
| (-3, -3) | 1.003 | 0.982 | 24.408 | 50.3 | 72.9% | |
| (3, -3) | 0.884 | 1.268 | 24.739 | 51.6 | 73.6% | |
| (-3, 3) | 1.025 | 1.105 | 23.885 | 49.7 | 71.2% | |
| (0, 0) | 0.822 | 1.082 | 27.243 | 58.7 | 77.2% | |
| Semantic-first | (3, 3) | 0.996 | 1.381 | 28.831 | 76.4 | 94.7% |
| (-3, -3) | 1.124 | 0.994 | 29.246 | 77.5 | 95.9% | |
| (3, -3) | 0.974 | 1.279 | 29.517 | 78.0 | 96.5% | |
| (-3, 3) | 1.138 | 1.113 | 28.684 | 76.9 | 95.2% | |
| (0, 0) | 0.912 | 1.094 | 30.238 | 80.2 | 97.6% |
Emotion-first Semantic-first (ours)
(a) Subject retention (%)

(b) CLIPScore
(c) DINO consistency
Figure 5: Semantic preservation at the four corners and center of the V–A grid. Semantic-first consistently improves principal-subject retention, prompt alignment, and DINO consistency. Each pair compares the two temporal orders at the same target; the yellow halos mark our method.
arousal (-3, -3), high valence and high arousal (3, 3), and high valence with low arousal (3, -3). At (-3, -3), Emotion-first changes the mountain landscape into a character-centered scene by inserting a foreground traveler and suppressing most of the starry sky; Semantic-first retains the mountain range and night-sky composition. At (3, 3), the astronaut pair shows a milder but still visible shift: Emotion-first turns the request into a close-up, child-centered portrait and weakens the oil-painting appearance, whereas Semantic-first produces an unambiguous astronaut while retaining the painterly rendering. At (3, -3), Emotion-first replaces the requested single boy reading under a tree with a two-person scene and makes the reading action unclear, while Semantic-first preserves the boy, book, tree, and comic-book style simultaneously. Across all three targets, early high-noise stochasticity
Table 5: Training efficiency for 300 updates.
| Method | Steps | NFE | s/update | GPU h | Time saved |
|---|---|---|---|---|---|
| Flow-GRPO | 24 | 288 | 14.31 | 1.20 | – |
| Progressive | 4 | 48 | 10.22 | 0.86 | 28.6% |
| Semantic-first | 4 | 48 | 9.52 | 0.80 | 33.5% |
can change subject count, identity, action, or global composition, whereas late stochasticity more often preserves these semantic anchors while altering appearance. These examples illustrate, rather than define, the quantitative drift and retention measurements in Tables 3 and 4.
5.5. Efficiency
The fixed four-step schedules require 48 train-forward NFE per rank and update, versus 288 for full-path Flow-GRPO (Table 5). On the measured system, semantic-first reduces per-update time from 14.31 to 9.52 seconds and 300-update cost from 1.20 to 0.80 GPU-hours, corresponding to a 33.5% reduction in end-to-end training time. Progressive uses the same train NFE but takes 10.22 seconds per update and 0.86 GPU-hours for 300 updates, reflecting schedule-management and trajectory differences. The fixed late schedule therefore reduces measured cost relative to both alternatives. Figure 7 also makes clear why the observed speedup is below the 83.3% train-NFE reduction: only one component of the pipeline scales with the number of optimized transitions.
5.6. User study
Table 6 and Figure 8 show participant-level results. Flow-GRPO receives the highest affect-match rating (4.24), consistent with its automatic V–A errors, but the lowest semantic-preservation rating (2.98) and a low overall score (3.16). Semantic-first is close on affect match (4.14) and obtains the highest semantic-preservation (4.32) and overall-preference (4.26) ratings. This rating pattern agrees with the automatic metrics: full-path optimization emphasizes affect accuracy, whereas semantic-first combines a close affect match with stronger semantic preservation and the highest overall preference.
Emotion-first
(a) A mountain range under a starry night sky

(b) An oil painting showing an astronaut

(c) A boy reading a comic book under a tree

Semantic-first (ours)



Figure 6: Qualitative comparison at three V–A targets. Each row uses the same prompt, target, initial noise, and sampling configuration. Emotion-first changes the requested subject or composition, whereas Semantic-first preserves the mountain landscape, astronaut, and boy-book-tree relations.

Figure 7: Training cost in optimized-transition NFE, seconds per update, and GPU hours for 300 updates. The fixed late window reduces optimized-transition NFE by 83.3% and end-to-end training time by 33.5%. Yellow bands identify our method.
Table 6: User study (N = 30 participants, one shared 20-image set, 1–5 scale). Each entry is the cross-participant mean ± standard deviation of participant-level method means.
| Method | Affect match | Semantic preservation | Overall preference |
|---|---|---|---|
| EmotiCrafter | 3.18 ± 0.87 | 3.82 ± 0.74 | 3.38 ± 0.80 |
| Flow-GRPO | 4.24 ± 0.64 | 2.98 ± 0.90 | 3.16 ± 0.84 |
| Progressive | 4.02 ± 0.79 | 3.64 ± 0.78 | 3.80 ± 0.75 |
| Semantic-first | 4.14 ± 0.60 | 4.32 ± 0.54 | 4.26 ± 0.56 |

Figure 8: User ratings. All 30 participants independently viewed the same 20-image set. Error bars show the standard deviation of participant-level method means. Semantic-first provides the most balanced subjective profile.
6. Discussion
6.1. Stochasticity is an attribute-control resource
The data indicate that stochasticity should not be treated as uniformly beneficial exploration. At low SNR, the current state admits many globally different futures; perturbations can change category and layout. At high SNR, the trajectory is already inside a narrower semantic basin, so perturbations more often alter appearance. The fixed SDE window therefore functions as a coarse attribute router within a single policy, using the joint terminal affect and semantic feedback. This interpretation is compatible with MixGRPO's observation that early and late steps receive different optimization signals [5], but our objective differs: we deliberately select the late window because semantic preservation is a system requirement.
6.2. Choosing an operating point for graphics applications
If the application is unconstrained affect maximization and semantic substitutions are tolerable, full-path Flow-GRPO or emotion-first may be appropriate. If object identity, product layout, interface elements, or educational content must remain stable, semantic-first is preferable. Progressive scheduling is a reasonable generic baseline but is not optimal here because it repeatedly exposes high-noise structure to a reward that includes affect. Equation (1) suggests reporting an operating frontier instead of a single composite score whose weights may not transfer across applications.
6.3. Semantic preservation through temporal allocation
The late schedule achieves strong semantic retention without an extra anchoring loss, showing that controlling where exploration occurs provides substantial semantic protection. The core study isolates this temporal variable. Semantic anchoring losses remain complementary, with additional reward computation, hyperparameters, and potential gradient conflict; anchor regularization is an orthogonal direction for future work.
7. Limitations
First, the study uses one flow-matching backbone and one continuous affect representation. The optimal window may shift with the solver, sampling-step count, backbone, or conditioning architecture. Second, V-A regression rewards are imperfect and may encode dataset bias; training and final evaluation should use independent regressors whenever possible. Third, the fixed width w = 4 was chosen for a minimal controlled study rather than exhaustively optimized. Fourth, DINO consistency can reward images that are too invariant, so it must be interpreted with affect error, CLIPScore, and human judgments. Fifth, the 30-participant, 20-image user study supports the central trend but is modest in scale. Finally, the high-noise/global and low-noise/local interpretation is an empirical engineering explanation, not a proof that denoising time cleanly factorizes semantic and affective variables.
8. Conclusion
We studied the temporal allocation of semantic formation and affective exploration in a flow-matching image generator. Under a controlled four-step mixed-sampling budget, early stochasticity improves target V-A accuracy but frequently destabilizes content, whereas late stochasticity preserves the principal subject and prompt alignment. The proposed semantic-first schedule—ODE sampling at high noise followed by SDE sampling and GRPO optimization at steps 20–23—dominates progressive scheduling on reported affect and semantic metrics and reduces training cost by 33.5% relative to full-path Flow-GRPO. Together, the schedule comparisons characterize a controllable affect-semantic trade-off: full-path SDE achieves the lowest affect error, while semantic-first provides the stronger semantic operating point. More broadly, the results suggest that probability-flow time is a practical control dimension for assigning generation attributes to different phases of inference and learning.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Data and code availability
The implementation, experiment configurations, plotting code, complete list of 132 evaluation prompts, and per-seed and aggregate result tables are available in our anonymous project repository. Model weights and third-party datasets remain subject to their original licenses.
Appendix A. Per-seed main results
Table A.1: Detailed main results used to calculate Table 2.
| Method | Seed | V-Error | A-Error | CLIPScore | DINO | CLIP-IQA |
|---|---|---|---|---|---|---|
| EmotiCrafter | – | 1.510 | 1.828 | 27.742 | 77.3 | 0.917 |
| FLUX+VA-EIT | 42 | 1.424 | 1.728 | 29.094 | 81.5 | 0.941 |
| FLUX+VA-EIT | 123 | 1.398 | 1.689 | 29.438 | 82.2 | 0.931 |
| FLUX+VA-EIT | 3407 | 1.372 | 1.701 | 29.427 | 81.7 | 0.902 |
| Flow-GRPO | 42 | 0.936 | 1.188 | 27.312 | 61.1 | 0.925 |
| Flow-GRPO | 123 | 0.974 | 1.208 | 27.118 | 69.7 | 0.894 |
| Flow-GRPO | 3407 | 0.921 | 1.175 | 27.210 | 60.4 | 0.908 |
| Progressive | 42 | 1.105 | 1.401 | 27.995 | 73.6 | 0.917 |
| Progressive | 123 | 1.091 | 1.374 | 28.364 | 75.0 | 0.911 |
| Progressive | 3407 | 1.078 | 1.383 | 28.299 | 74.5 | 0.908 |
| Semantic-first | 42 | 1.027 | 1.320 | 29.974 | 80.2 | 0.933 |
| Semantic-first | 123 | 1.042 | 1.342 | 29.448 | 79.2 | 0.901 |
| Semantic-first | 3407 | 1.060 | 1.309 | 29.564 | 80.9 | 0.913 |
Table A.2: Descriptive directions of the aggregate metric differences reported in Tables 2 and 3.
| Comparison | Metric | Direction |
|---|---|---|
| Ours vs Flow-GRPO | mean VA error | Ours worse |
| Ours vs Flow-GRPO | CLIPScore | Ours better |
| Ours vs Flow-GRPO | DINO | Ours better |
| Ours vs Progressive | mean VA error | Ours better |
| Ours vs Progressive | CLIPScore | Ours better |
| Ours vs Emotion-first | mean VA error | Ours worse |
| Ours vs Emotion-first | CLIPScore | Ours better |
Appendix B. Reproducibility details
The FLUX-compatible VA-EIT has hidden width 768, 12 attention heads, four blocks, and maximum sequence length 128.
The reported configuration uses 25 sampling transitions, a four-transition policy window, 12 generations per prompt, equal normalized affect and semantic advantages, resolution , SDE , timestep shift 3, and GRPO clipping range . Formal checkpoints are trained for 300 updates with seeds 42, 123, and 3407. Terminal transition 24 is omitted from policy optimization, giving optimized indices 0–23. All variants of a prompt share initial noise during evaluation.
Declaration of generative AI and AI-assisted technologies in the writing process
During the preparation of this work, the authors used ChatGPT and Codex to assist with language editing and manuscript organization. After using these tools, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication.
References
[1] J. A. Russell, A circumplex model of affect, Journal of Personality and Social Psychology 39 (6) (1980) 1161–1178. doi:10.1037/h0077714.
[2] H. Gunes, B. Schuller, M. Pantic, R. Cowie, Emotion representation, analysis and synthesis in continuous space: A survey, in: IEEE International Conference on Automatic Face & Gesture Recognition, 2011, pp. 827–834. doi:10.1109/FG.2011.5771357.
[3] S. Dang, Y. He, L. Ling, Z. Qian, N. Zhao, N. Cao, Emoticrafter: Text-to-emotional-image generation based on valence-arousal model, Proceedings of the IEEE/CVF International Conference on Computer Vision (2025). arXiv:2501.05710.
[4] J. Liu, G. Liu, J. Liang, Y. Li, J. Liu, X. Wang, P. Wan, D. Zhang, W. Ouyang, Flow-grpo: Training flow matching models via online rl, in: Advances in Neural Information Processing Systems, Vol. 38, 2025. arXiv:2505.05470, doi:10.52202/085713-1362.
[5] J. Li, Y. Cui, T. Huang, W. Kong, Y. Cheng, C. Zeng, Y. Ma, C. Fan, M. Yang, Z. Zhong, L. Bo, Mixgrpo: Unlocking flow-based grpo efficiency with mixed ode-sde, in: European Conference on Computer Vision, 2026, accepted. arXiv:2507.21802.
[6] P. Esser, S. Kulal, A. Blattmann, R. Entezari, J. Müller, H. Saini, Y. Levi, D. Lorenz, A. Sauer, F. Boesel, et al., Scaling rectified flow transformers for high-resolution image synthesis, in: Proceedings of the 41st International Conference on Machine Learning, 2024.
[7] D. Liu, Y. Jiang, M. Pei, S. Liu, Emotional image color transfer via deep learning, Pattern Recognition Letters 110 (2018) 16–22. doi:10.1016/j.patrec.2018.03.023.
[8] J. Yang, J. Feng, H. Huang, Emogen: Emotional image content generation with text-to-image diffusion models, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024, pp. 6358–6368.
[9] J. Yang, J. Feng, W. Luo, D. Lischinski, D. Cohen-Or, H. Huang, Emoedit: Evoking emotions through image manipulation, arXiv preprint arXiv:2405.12661 (2024). arXiv:2405.12661.
[10] J. Dang, Z. Wang, B. Li, R. Lin, B. Hu, T.-S. Chua, Balancing emotional alignment and semantic consistency in image generation via reinforcement learning with valence-arousal anchoring, arXiv preprint arXiv:2609.12830 (2026). arXiv:2609.12830.
[11] Y. Song, J. Sohl-Dickstein, D. P. Kingma, A. Kumar, S. Ermon, B. Poole, Score-based generative modeling through stochastic differential equations, International Conference on Learning Representations (2021). arXiv:2011.13456.
[12] Y. Lipman, R. T. Q. Chen, H. Ben-Hamu, M. Nickel, M. Le, Flow matching for generative modeling, in: International Conference on Learning Representations, 2023.
[13] M. S. Albergo, N. M. Boffi, E. Vanden-Eijnden, Stochastic interpolants: A unifying framework for flows and diffusions, arXiv preprint arXiv:2303.08797 (2023). arXiv:2303.08797.
[14] X. Liu, C. Gong, Q. Liu, Flow straight and fast: Learning to generate and transfer data with rectified flow, in: International Conference on Learning Representations, 2023.
[15] J. Song, C. Meng, S. Ermon, Denoising diffusion implicit models, in: International Conference on Learning Representations, 2021.
[16] C. Lu, Y. Zhou, F. Bao, J. Chen, C. Li, J. Zhu, Dpm-solver: A fast ode solver for diffusion probabilistic model sampling in around 10 steps, in:
Advances in Neural Information Processing Systems, Vol. 35, 2022, pp. 5775–5787.
[17] X. He, S. Fu, Y. Zhao, W. Li, J. Yang, D. Yin, F. Rao, B. Zhang, Tempflow-grpo: When timing matters for grpo in flow models, in: International Conference on Learning Representations, 2026. arXiv:2508.04324.
[18] Y. Savani, B. Kveton, Y. Liu, Y. Wang, J. Shi, S. Mukherjee, N. Vlassis, K. K. Singh, Stepwise credit assignment for grpo on flow-matching models, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2026. arXiv:2603.28718.
[19] Y. Li, Y. Wang, Y. Zhu, Z. Zhao, M. Lu, Q. She, S. Zhang, Branchgrpo: Stable and efficient grpo with structured branching in diffusion models, in: International Conference on Learning Representations, 2026. arXiv:2509.06040.
[20] D. He, G. Feng, X. Ge, Y. Niu, Y. Zhang, B. Ma, G. Song, Y. Liu, H. Li, Neighbor grpo: Contrastive ode policy optimization aligns flow models, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2026. arXiv:2511.16955.
[21] K. Black, M. Janner, Y. Du, I. Kostrikov, S. Levine, Training diffusion models with reinforcement learning, arXiv preprint arXiv:2305.13301 (2023). arXiv:2305.13301.
[22] Y. Fan, O. Watkins, Y. Du, H. Liu, M. Ryu, C. Boutilier, P. Abbeel, M. Ghavamzadeh, K. Lee, K. Lee, Dpok: Reinforcement learning for fine-tuning text-to-image diffusion models, in: Advances in Neural Information Processing Systems, Vol. 36, 2023, pp. 79858–79885.
[23] B. Wallace, M. Dang, R. Rafailov, L. Zhou, A. Lou, S. Purushwalkam, S. Ermon, C. Xiong, S. Joty, N. Naik, Diffusion model alignment using direct preference optimization, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024, pp. 8228–8238.
[24] Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. K. Li, Y. Wu, et al., Deepseekmath: Pushing the limits of mathematical reasoning in open language models, arXiv preprint arXiv:2402.03300 (2024). arXiv:2402.03300.
[25] Z. Xue, J. Wu, Y. Gao, F. Kong, L. Zhu, M. Chen, Z. Liu, W. Liu, Q. Guo, W. Huang, et al., Dancegrpo: Unleashing grpo on visual generation, arXiv preprint arXiv:2505.07818 (2025). arXiv:2505.07818.
[26] Z. Wang, J. Dang, R. Lin, B. Wang, J. Zhao, W. Ma, B. Hu, Q. Tian, T.-S. Chua, PACE-MoE: Adaptive domain sampling and domain-specific LoRA for medical visual grounding, arXiv preprint arXiv:2610.27656 (2026). arXiv:2610.27656.
[27] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, et al., Learning transferable visual models from natural language supervision, in: Proceedings of the 38th International Conference on Machine Learning, Vol. 139, 2021, pp. 8748–8763.
[28] J. Hessel, A. Holtzman, M. Forbes, R. Le Bras, Y. Choi, Clipscore: A reference-free evaluation metric for image captioning, in: Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, 2021, pp. 7514–7528. doi:10.18653/v1/2021.emnlp-main.595.
[29] Black Forest Labs, FLUX, https://github.com/black-forest-labs/flux, accessed: 2026-08-20 (2024).
[30] Y. Hu, B. Liu, J. Kasai, Y. Wang, M. Ostendorf, R. Krishna, N. A. Smith, Tifa: Accurate and interpretable text-to-image faithfulness evaluation with question answering, in: Proceedings of the IEEE/CVF International Conference on Computer Vision, 2023, pp. 20406–20417.
[31] J. Wang, K. C. K. Chan, C. C. Loy, Exploring clip for assessing the look and feel of images, in: Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 37, 2023, pp. 2555–2563. doi:10.1609/aaai.v37i2.25353.
[32] M. Oquab, T. Darcet, T. Moutakanni, H. Vo, M. Szafraniec, V. Khalidov, P. Fernandez, D. Haziza, F. Massa, A. El-Nouby, et al., Dinov2: Learning robust visual features without supervision, Transactions on Machine Learning Research (2024).