PortraitGen: Exemplar-Driven GRPO with Dual-Reward Guidance for Photorealistic Portrait Generation

TL;DR

PortraitGen injects real exemplars into GRPO and combines OmniReward with AI-Portrait, reaching 96.35% artifact-detection accuracy.

cs.CV 🔴 Advanced 2026-06-25 26 views
Xiaomin Li Qian Liang Yinan Li Ying Zhang Chen Li Jing Lyu Huchuan Lu Xu Jia
text-to-image GRPO portrait generation reward models photorealism

Key Findings

Methodology

PortraitGen inserts a real portrait into each GRPO sampling group. BELM (Bidirectional Explicit Linear Multistep) inversion recovers the exemplar’s latent states, transition trajectory, and stepwise probabilities, making it differentiable within policy optimization. OmniReward scores content, clarity, color/lighting, and composition, while AI-Portrait performs pairwise comparisons of AI artifacts and skin oiliness, converting group win rates into an additional reward.

Key Results

  • On a 1,000-image test set, OmniReward achieved 86.20% content, 95.20% clarity, 95.80% color, and 85.70% composition accuracy, averaging 90.73%. This greatly exceeded vanilla Qwen3-VL-8B-Instruct at 6.73% average and zero-shot Qwen3-VL-235B-A22B-Instruct at 12.61%.
  • AI-Portrait reached 96.2% accuracy for AI-feel and 96.5% for oiliness, averaging 96.35%. Vanilla 8B and 235B models scored only 51.03% and 53.97%, effectively near random guessing on these subtle portrait defects.
  • Training used roughly 10,000 real portraits, group size 12, and 16 sampling steps. Inference used 1024-pixel resolution, 28 steps, and CFG 3.5. PortraitBench contains 1,000 samples spanning genders, ages, subject counts, and portrait scenarios.

Significance

The paper identifies a structural weakness in post-training: conventional GRPO samples only from the model’s own distribution, so it can reinforce oversaturation without learning genuine photographic realism. Real exemplars provide an external quality anchor, while dedicated portrait rewards target fingers, skin texture, oiliness, and biological plausibility. The result is a broader post-training principle: external, high-quality examples can be made optimization-compatible rather than used only for evaluation.

Technical Contribution

PortraitGen combines reward evaluation with differentiable flow-matching trajectories. BELM uses consistent linear multistep formulas for forward sampling and inversion, making it better suited than standard DDIM inversion to flow matching and enabling near-lossless reconstruction. OmniReward is an interpretable Qwen3-VL-8B-Instruct SFT model. AI-Portrait is trained on 30,000 real-versus-synthetic pairs generated with FLUX.1-dev, Z-Image, and Qwen-Image, then incorporated through pairwise group win rates.

Novelty

The fundamental novelty is distributional, not merely architectural: one member of each GRPO group is a BELM-reconstructed real photograph, while the other G−1 members are stochastic model samples. Compared with FlowGRPO, DanceGRPO, and RealGen, PortraitGen jointly addresses the absence of real references and the lack of fine-grained human-centric rewards.

Limitations

  • Experiments focus on FLUX.1-dev with the backbone frozen and only LoRA trained. Exemplar-prompt alignment, BELM inversion, and stepwise probability recording increase memory, compute, and engineering requirements.
  • The supplied paper text emphasizes reward-model accuracy and qualitative comparisons rather than a complete human-preference, FID, or percentage improvement table for final generation quality; cross-model generalization therefore remains open.
  • AI-Portrait uses negatives generated by three specific models, so it may learn generator-specific signatures rather than all forms of photographic unreality.

Future Work

Future work should test exemplar injection across foundation models, resolutions, cultures, and photographic styles. AI-Portrait could be extended to teeth, eyes, fingers, limb geometry, and physical interactions. More efficient reversible samplers, online human feedback, adaptive multi-objective weighting, and fairness-aware evaluation could reduce cost and improve generalization.

AI Executive Summary

Text-to-image systems can now produce attractive portraits, yet attractiveness is not the same as photographic realism. FlowGRPO and DanceGRPO improve preference scores with signals such as HPSv2.1 and CLIP, but often leave oversaturation, oily skin, excessive smoothing, and malformed hands untouched. Their deeper limitation is distributional: standard GRPO samples only from the model’s own policy, so the optimization loop never directly observes an authentic photograph.

PortraitGen changes that loop. It places a real portrait inside each GRPO group and uses BELM inversion to recover the exemplar’s flow-matching latents and transition probabilities. The photograph therefore becomes an optimizable trajectory rather than a static reference. Two complementary judges provide feedback: OmniReward scores content, clarity, color/lighting, and composition on a 0–2 scale; AI-Portrait compares images pairwise for AI artifacts and skin oiliness, transforming its group win rate into a relative reward.

The reward models are highly discriminative. OmniReward reaches 90.73% average accuracy across four dimensions, versus 6.73% for vanilla Qwen3-VL-8B and 12.61% for zero-shot Qwen3-VL-235B. AI-Portrait achieves 96.2% AI-feel and 96.5% oiliness accuracy, while vanilla models remain near 50%. Trained with about 10,000 portraits and evaluated on 1,000-sample PortraitBench, PortraitGen offers a promising route to suppressing synthetic signatures. Its computational cost, FLUX.1-dev dependence, and possible generator-specific bias remain important caveats.

Deep Analysis

Background

Diffusion and flow-matching models map a Gaussian prior p(z)=N(0,I) to complex image manifolds. FlowGRPO and DanceGRPO adapt GRPO to FLUX-like models using HPSv2.1 and CLIP, while PickScore and UnifiedReward model human or MLLM preferences. Yet generic preference scores are weak at detecting malformed fingers, oily skin, waxy texture, and biological implausibility, allowing systems to optimize attractiveness without realism.

Core Problem

Standard GRPO samples every group member from one policy distribution. The samples are therefore correlated and never include photographic-quality evidence outside the generator’s capability boundary. General aesthetic rewards also miss localized portrait failures, and can even reward images with severe hand distortions or synthetic skin because their global composition and color are appealing.

Innovation

  • ��Real-exemplar injection: one authentic portrait joins every GRPO group. •BELM inversion: a unified linear multistep solver recovers its latent trajectory and probabilities. •Dual rewards: OmniReward measures broad visual quality; AI-Portrait explicitly ranks AI artifacts and oiliness. •PortraitBench: a 1,000-sample benchmark covers single and multi-person portraits, children, elders, and diverse demographics.

Methodology

  • ��Data: about 10,000 real portraits; Qwen3-VL-235B-A22B-Instruct supplies keywords, short captions, and long descriptions sampled at 0.1:0.8:0.1. •Sampling: FLUX.1-dev generates G−1 images through a stochastic reverse SDE, with G=12. •Exemplar trajectory: BELM follows the flow-matching ODE dx_t/dt=vθ(x_t,t) in both directions. •Rewards: OmniReward outputs four 0–2 scores; AI-Portrait compares all image pairs. •Optimization: group-normalized advantage Â_i=(r_i−mean(r))/std(r) feeds the clipped GRPO objective with importance ratios and a KL penalty; only LoRA parameters are updated.

Experiments

The baseline is FLUX.1-dev, with comparisons to GRPO-style and reward-model methods. The backbone is frozen; training uses float32, learning rate 5e−5, batch size 1, 12 accumulation steps, 16 sampling steps, and 16 NVIDIA H20 GPUs. Inference uses 1024 resolution, 28 steps, and CFG 3.5. Reward models are tested on 1,000 annotated images and 1,000 randomized real/synthetic pairs; UnifiedReward, PickScore, OmniReward, and AI-Portrait provide evaluation signals.

Results

OmniReward averages 90.73% accuracy, compared with 6.73% for vanilla Qwen3-VL-8B and 12.61% for zero-shot 235B. AI-Portrait averages 96.35%, versus 51.03% and 53.97% for the two vanilla baselines. Figure 2 further shows that HPSv2.1 and ImageReward can prefer a synthetic image containing hand distortions, whereas the proposed rewards identify content degradation and synthetic signatures.

Applications

The method is relevant to advertising, social avatars, fashion editorials, virtual try-on, games, and digital humans, especially where natural skin, correct hands, and coherent multi-person composition matter. Production use should retain safety filtering, copyright checks, human review, and domain-specific validation across demographic groups and photographic styles.

Limitations & Outlook

The approach depends on high-quality, prompt-compatible exemplars and accurate BELM reconstruction. Float32 execution, trajectory recording, and 12-image groups raise compute and memory costs. Negative examples come from FLUX.1-dev, Z-Image, and Qwen-Image, creating potential generator fingerprints. Future work should report broader human-preference and fairness evaluations, test multiple base models, and develop cheaper inversion and adaptive reward weighting.

Plain Language Accessible to non-experts

Imagine a factory that makes portrait products. Ordinary GRPO is a quality inspector who sees only the factory’s own products. It keeps the best-looking item in each batch of twelve, but if every product has plastic skin or six fingers, the inspector may not notice because no genuine photograph is present.

PortraitGen places a real photograph in every batch. BELM acts like a machine manual that reconstructs how that photograph could have been assembled step by step, so the factory can learn from it rather than merely admire it. The real image becomes a usable production route.

Two inspectors then work together. OmniReward checks the overall subject, sharpness, color and lighting, and composition. AI-Portrait focuses on suspicious details: greasy highlights, melted textures, strange fingers, and unnatural anatomy. The factory adjusts its process according to both the absolute quality scores and the pairwise comparison results. The system therefore learns that vivid color is not enough; realistic texture and physical plausibility matter too. The trade-off is a slower, more expensive factory, and inspectors may still overfit to the kinds of products used during training.

ELI14 Explained like you're 14

Picture yourself designing a super-realistic game character. The usual training method makes the character compete against other AI characters. Whoever looks prettier wins. But what if every contestant has six fingers? Since nobody is compared with a normal human, the bug can survive!

PortraitGen invites a real photograph into every round as the professional player. BELM works backward from the photo to recover a route showing how the image could have been produced. The model can then learn not only that the photo is good, but also which sequence of changes gets closer to it.

There are two judges. OmniReward is the all-round teacher checking content, sharpness, colors, lighting, and layout. AI-Portrait is the bug hunter looking for oily skin, melted textures, weird hands, and other AI clues. Their scores guide the model toward portraits that look less like shiny game graphics and more like real camera photos. The results are impressive: 90.73% average accuracy for OmniReward and 96.2% and 96.5% for AI-feel and oiliness detection.

Still, this is not a magic cheat code. Training needs about 10,000 portraits, large compute, and mainly tests FLUX.1-dev. The next challenge is checking other models, cultures, and body details. In gaming terms, PortraitGen clears the “looks cool” level and starts tackling the harder final boss: looks like reality!

Glossary

GRPO (Group Relative Policy Optimization)

A reinforcement-learning method that estimates advantage from relative rewards within a sampled group rather than using a separate value network. Rewards are commonly normalized by the group mean and standard deviation.

PortraitGen uses GRPO to optimize FLUX.1-dev LoRA parameters.

BELM (Bidirectional Explicit Linear Multistep)

A numerical solver that uses the same explicit linear multistep formulation for forward sampling and inversion. This supports near-lossless recovery of flow-matching trajectories.

It recovers the real exemplar’s latent states and stepwise probabilities.

OmniReward

A pointwise reward model for general visual quality. It predicts 0–2 scores for content, clarity, color/lighting, and composition.

It serves as both an optimization reward and an evaluation metric.

AI-Portrait Reward

A pairwise human-centric ranker that identifies which of two portraits has stronger AI artifacts or skin oiliness. Its relative judgments are converted into group win rates.

The win rate supplies a specialized GRPO signal.

PortraitBench

A 1,000-sample portrait benchmark covering demographic attributes, subject counts, ages, genders, and scenarios.

It evaluates photorealistic portrait generation.

Open Questions Unanswered questions from this research

  • 1 How many exemplars are required, and how precisely must they match prompts, for distribution breaking to transfer across base models? The paper does not provide a systematic cross-model or cross-domain answer.
  • 2 AI-Portrait is trained using negatives from three generators. Whether it detects artifacts from future, unseen generators rather than model fingerprints requires open-generator and real-user evaluation.
  • 3 Photorealism rewards may conflict with diversity, aesthetics, and identity fairness. A principled, interpretable method for balancing these objectives remains unresolved.

Applications

Immediate Applications

Commercial portraits and advertising

Advertising teams can generate more natural models, avatars, and editorial images while reducing oily skin, malformed hands, and oversaturation. Deployment still requires safety review, copyright verification, and human approval.

Social avatars and virtual characters

Platforms and game studios can use the method for avatars, NPCs, and virtual performers. They should validate performance across ages, skin tones, genders, and multi-person compositions before release.

Long-term Vision

Verifiable realism post-training

Combining real exemplars, localized anatomy detectors, and human feedback could create model-independent realism standards. This may shift image generation from visual appeal alone toward physical, biological, and socially responsible plausibility.

Abstract

Reinforcement Learning like Group Relative Policy Optimization (GRPO) has significantly advanced text-to-image post-training. However, current methods often favor superficial aesthetics, such as over-saturated colors, leaving critical flaws like AI artifacts and biological implausibilities unresolved. We attribute these limitations to two primary factors: (1) The absence of real images during post-training confines GRPO sampling to the original distribution, failing to break inherent generative boundaries; (2) the optimization process lacks specific rewards targeting fine-grained artifacts like overly oily skin and other AI artifacts. To address this, we propose PortraitGen, a novel framework tailored for photorealistic portrait generation. First, we break inherent generative boundaries by directly introducing real images into the GRPO sampling groups, where image inversion is employed to obtain their transition probabilities and latents. Second, to explicitly steer the model toward photorealism, we introduce a complementary dual-reward mechanism: OmniReward for general quality and AI-Portrait for human-centric fidelity. Furthermore, we curate PortraitBench, a comprehensive portrait-centric benchmark. Extensive experiments demonstrate that PortraitGen significantly outperforms existing baselines, effectively suppressing AI artifacts and achieving unprecedented photorealism.

cs.CV