WithEveryone: Unified Planning and Identity Grounding for Group Image Generation
Before drawing a group photo, this AI first plans who goes where, and that cuts down face mix-ups
AI models that generate group photos from multiple reference faces tend to mix up identities or produce obvious copy-paste artifacts once the group grows to five to ten people. WithEveryone fixes this by first planning who appears, where, and in what pose before rendering the image, and by supervising each person's identity directly using the planned face location instead of relying on shaky face-matching during training. As a result, it reached a face similarity of 0.499 versus GPT-Image 2's 0.462, while slashing copy-paste artifacts from 0.169 to 0.055.
METAL MEDIA explanatory visual
Before drawing a group photo, this AI first plans who goes where, and that cuts down face mix-ups
- 01Prior methods struggle to keep track of which generated face belongs to which reference once several people are in one scene, causing identities to blend together during training
- 02WithEveryone gives each person a dedicated identity token and, before generating the image, autoregressively predicts a structured plan (Layout CoT) covering positions, poses, and identity-to-person bindings, then renders that plan as a visual condition
- 03Its core technique, the Layout-Grounded ID Loss, supervises each identity using the annotated face region from the plan instead of unstable embedding-based face matching, avoiding the confusion that occurs when many faces look similar during noisy training steps
- 04On a five-to-ten-person benchmark, it achieved the highest identity similarity in the target image (0.499), covered 97.3% of requested identities, and kept the duplicate-face rate to just 2.8%
- 05It also had the lowest copy-paste artifact score (0.055) among compared systems, showing the similarity comes from genuine likeness rather than pasting reference faces directly
What they did
- Prior methods struggle to keep track of which generated face belongs to which reference once several people are in one scene, causing identities to blend together during training
- WithEveryone gives each person a dedicated identity token and, before generating the image, autoregressively predicts a structured plan (Layout CoT) covering positions, poses, and identity-to-person bindings, then renders that plan as a visual condition
- Its core technique, the Layout-Grounded ID Loss, supervises each identity using the annotated face region from the plan instead of unstable embedding-based face matching, avoiding the confusion that occurs when many faces look similar during noisy training steps
- On a five-to-ten-person benchmark, it achieved the highest identity similarity in the target image (0.499), covered 97.3% of requested identities, and kept the duplicate-face rate to just 2.8%
- It also had the lowest copy-paste artifact score (0.055) among compared systems, showing the similarity comes from genuine likeness rather than pasting reference faces directly


| Method | Identity Similarity | Identity Coverage | Generation Quality | |||||
|---|---|---|---|---|---|---|---|---|
| Sim(Tgt) ↑ | Sim(Ref) ↑ | Copy-Paste ↓ | Coverage ↑ | Dup ↓ | CLIP-I ↑ | DINO-I ↑ | CLIP-T ↑ | |
| Academic identity-preserving methods | ||||||||
| WithAnyone | 0.405 | 0.483 | 0.096 | 0.957 | 0.045 | 0.807 | 0.695 | 0.281 |
| UMO | 0.371 | 0.484 | 0.112 | 0.630 | 0.258 | 0.780 | 0.663 | 0.286 |
| UniPortrait | 0.339 | 0.464 | 0.115 | 0.635 | 0.187 | 0.679 | 0.415 | 0.301 |
| DreamO | 0.297 | 0.331 | 0.027 | 0.298 | 0.299 | 0.724 | 0.611 | 0.282 |
| ID-Patch | 0.225 | 0.259 | 0.032 | 0.247 | 0.224 | 0.609 | 0.320 | 0.331 |
| Open-source general-purpose models | ||||||||
| FLUX.2 Klein | 0.264 | 0.265 | 0.002 | 0.314 | 0.265 | 0.787 | 0.685 | 0.291 |
| Qwen-Image-Edit | 0.253 | 0.289 | 0.018 | 0.176 | 0.291 | 0.614 | 0.312 | 0.227 |
| LongCat-Image-Edit | 0.287 | 0.288 | −0.001 | 0.381 | 0.264 | 0.802 | 0.657 | 0.288 |
| OmniGen2 | 0.267 | 0.275 | −0.002 | 0.418 | 0.267 | 0.774 | 0.633 | 0.288 |
| SenseNova U1 | 0.253 | 0.243 | −0.009 | 0.213 | 0.256 | 0.797 | 0.686 | 0.289 |
| BAGEL | 0.223 | 0.225 | 0.003 | 0.136 | 0.276 | 0.752 | 0.635 | 0.282 |
| HiDream-O1 | 0.353 | 0.376 | 0.026 | 0.780 | 0.190 | 0.806 | 0.692 | 0.286 |
| Proprietary systems | ||||||||
| Nano Banana Pro | 0.453 | 0.478 | 0.041 | 0.674 | 0.148 | 0.839 | 0.712 | 0.275 |
| Nano Banana 2 | 0.451 | 0.480 | 0.045 | 0.884 | 0.099 | 0.860 | 0.731 | 0.276 |
| GPT-Image 2 | 0.462 | 0.583 | 0.169 | 0.905 | 0.075 | 0.853 | 0.719 | 0.270 |
| Seedream 4.5 | 0.407 | 0.495 | 0.114 | 0.859 | 0.175 | 0.829 | 0.698 | 0.286 |
| Seedream 5.0 Pro | 0.436 | 0.522 | 0.114 | 0.913 | 0.065 | 0.850 | 0.715 | 0.275 |
| WithEveryone | 0.499 | 0.540 | 0.055 | 0.973 | 0.028 | 0.861 | 0.716 | 0.273 |


| Method | Sim(Tgt) ↑ | Sim(Ref) ↑ | CLIP-I ↑ | ArcFace Sim(Ref) ↑ |
|---|---|---|---|---|
| WithEveryone | 0.499±0.004 | 0.540±0.004 | 0.861±0.004 | 0.614±0.005 |
| GPT-Image 2 | 0.462±0.004 | 0.583±0.008 | 0.853±0.004 | 0.566±0.009 |
| Nano Banana 2 | 0.451±0.005 | 0.480±0.007 | 0.860±0.004 | 0.471±0.008 |
| Seedream 5.0 Pro | 0.436±0.005 | 0.522±0.008 | 0.850±0.004 | 0.506±0.009 |

| Train / test | Sim(Ref) ↑ | Sim(Tgt) ↑ | Layout∗ ↑ | Plan IoU ↑ |
|---|---|---|---|---|
| 1K / 1K | 0.546 | 0.460 | 0.740 | 0.773 |
| 2K / 1K | 0.555 | 0.461 | 0.759 | 0.814 |
| 2K / 2K† | 0.614 | 0.511 | – | – |

| Variant | Sim(Ref) ↑ | Sim(Tgt) ↑ | Layout ↑ | Count ↑ | Coverage ↑ |
|---|---|---|---|---|---|
| Default | 0.339 | 0.304 | 0.690 | 0.771 | 0.741 |
| + ID Loss | 0.506 | 0.435 | 0.700 | 0.845 | 0.947 |
| Full | 0.555 | 0.461 | 0.759 | 0.869 | 0.960 |

Why it matters
Demand is growing for AI-generated group photos, posters, and collages featuring many real people, but existing tools degrade sharply as the group size increases. This work shows that planning composition before rendering can genuinely solve the identity-preservation problem at larger group sizes rather than just patching it.
Terms in this paper
- Identity-preserving generation · Generating a new image of a specific person using their reference photo so the output still looks like them
- Copy-Paste artifact · A visual glitch where a generated face looks pasted from the reference photo without matching the scene's lighting, pose, or angle
- Layout CoT · A step-by-step textual plan predicted before image generation that specifies each person's position, pose, and identity assignment
- ArcFace · A face-recognition model that converts a face photo into a numeric vector used to measure similarity between two faces
- ID token · A compact signal representing one person's identity information that the model can attend to during generation
Original abstract (English)
Identity-preserving image generation becomes increasingly unreliable when a scene must contain many specified people. Beyond retaining each identity, the model must bind every reference to a distinct person and location, while training-time identity losses must establish correspondence among several noisy predicted faces. We introduce WithEveryone, a unified framework for generating group images up to ten reference identities. WithEveryone injects each selected identity as an addressed token, predicts a structured identity--layout plan, and renders the plan as a visual condition. Its key objective, Layout-Grounded ID Loss, uses annotated face regions to supervise the intended identities directly, avoiding unstable embedding-based face matching; ID Representation Forcing additionally trains a prediction for each identity before image synthesis. On an identity-disjoint benchmark, WithEveryone achieves the highest target-context identity similarity, improving face similarity from 0.462 for GPT-Image-2 to 0.499, while reducing copy-paste artifacts from 0.169 to 0.055. It further covers 97.3\% of the requested identities with a duplicate rate of only 2.8\%. These results show that explicit identity--layout grounding enables identity-preserving generation to scale to larger groups without relying on direct reference-face copying.
Read on arXivLatest papers
- SWE-bench Science: Can Coding Agents Resolve Engineering Tasks in Science?AI coding agents were tested on fixing real scientific software, and even the best one failed more than half the time
- FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM ServingMaking sparse attention fast enough and accurate enough for real LLM serving, not just papers
- PolicyGuide: From Guarding One Action to Guiding the Whole Workflow for Policy-Compliant LLM AgentsMaking customer-service AI agents follow the whole procedure, not just avoid one bad action
- EXIMO: VLM Guided Exploration of VLA PoliciesTeaching a robot new chores without human teleoperation, by letting a chatty AI supervise it
- EnvHarness: Awakening Static Worlds for Agent LearningInstead of building new training worlds from scratch, this work adds a plug-in layer that reshapes existing ones around each agent's actual weaknesses
- Bounded Sovereignty and the Control Tax: Pricing AI Oversight When the Deployer Does Not Own the ModelCompanies that rent AI instead of owning it can only do half of AI safety oversight
- PersonalBench: Measuring the Authorship Gap in LLM PersonalizationAI can be prompted to write 'like someone,' but its own voice never fully disappears
- Automated Summarization of Financial News Using Large Language Models and Retrieval-Augmented Generation: An Early Empirical Study (Fall 2023)Testing AI summaries of stock news, the simple approach beat the trendy retrieval-based one
Latest from METAL MEDIA
Figures: Hengyuan Xu et al., arXiv:2608.20336, cc-by-nc-sa-4.0