intermediate
7 min read
Friday, August 21, 2026

Scaling AI Image Generation: From Single Faces to Dynamic Group Scenes

Developers building AI-powered content often hit a wall with identity consistency when generating images with multiple specific people. This new research introduces 'WithEveryone,' a groundbreaking framework that finally enables stable, identity-preserving generation for groups of up to ten individuals, opening up a world of possibilities for personalized and dynamic visual content.

Original paper: 2608.20336v1
Authors:Hengyuan XuQixun WangYiji ChengMiles YangZhao Zhong+3 more

Key Takeaways

  • 1. WithEveryone enables identity-preserving image generation for groups of up to ten specific individuals, a significant leap from previous limitations.
  • 2. The framework uses a unified planning approach, predicting a structured identity-layout plan and rendering it as a visual condition for the diffusion model.
  • 3. A key innovation is the Layout-Grounded ID Loss, which directly supervises identities using annotated face regions, avoiding unstable embedding-based face matching.
  • 4. The model dramatically improves face similarity, reduces 'copy-paste' artifacts, and ensures high identity coverage with low duplication rates.
  • 5. This research unlocks new possibilities for personalized content, virtual worlds, educational tools, and advanced AI agent orchestration requiring complex multi-character visual output.

Why This Matters for Developers and AI Builders

Imagine building a personalized marketing campaign where you need to show a diverse group of specific individuals interacting with a product. Or perhaps you're developing a virtual world where players can generate custom group photos with their friends and NPCs, all with consistent identities. Until now, this has been a major headache for AI developers.

Generative AI models, while incredible at creating novel images, notoriously struggle with identity preservation, especially when multiple people are involved. Asking a model to include 'Sarah, John, and Emily' in a single scene often results in blurry faces, swapped identities, or generic figures that bear no resemblance to the requested individuals. This limitation severely restricts the complexity and personalization of AI-generated visual content.

The paper, "WithEveryone: Unified Planning and Identity Grounding for Group Image Generation," directly tackles this challenge. It presents a novel approach that allows AI models to reliably generate images with up to ten distinct, identity-preserved individuals in a single scene. For developers, this isn't just an incremental improvement; it's a leap forward that unlocks a new tier of sophisticated, multi-character content generation, enabling applications previously deemed too complex or unreliable.

The Paper in 60 Seconds

The Problem: Existing AI image generation models fail to consistently maintain multiple specific identities within a single image. They struggle with binding references to distinct people and locations, leading to identity confusion, 'copy-paste' artifacts, and poor scalability beyond 1-2 individuals.

The Solution: WithEveryone introduces a unified framework that injects each desired identity as an addressed token. It then *predicts a structured identity-layout plan* for the scene, effectively mapping who goes where. This plan is rendered as a visual condition to guide the image synthesis. Crucially, it uses a Layout-Grounded ID Loss that directly supervises intended identities using annotated face regions (ground truth), avoiding unstable embedding-based face matching. An additional ID Representation Forcing step ensures each identity is well-predicted before generation.

The Outcome: WithEveryone significantly improves target-context identity similarity, reduces artifacts, and covers nearly all requested identities with minimal duplicates, proving that explicit identity-layout grounding is key to scaling identity-preserving generation for larger groups.

A Deeper Dive: How WithEveryone Achieves Group Identity Mastery

Generative AI, particularly diffusion models, has made incredible strides. However, the 'group photo problem' remained a significant hurdle. Previous attempts often relied on embedding-based face matching, which can be noisy and unstable, especially when trying to differentiate between several similar faces in a crowded scene. Moreover, these methods often lacked a robust mechanism to ensure each identity was not only present but also distinct and placed correctly.

WithEveryone's brilliance lies in its unified planning and identity grounding approach. Instead of simply throwing a few reference images or embeddings at the model and hoping for the best, it introduces a structured, multi-step process:

1.Identity Injection as Addressed Tokens: Each specific person you want in the image (e.g., 'person A', 'person B') is treated as a unique, addressable token. This is fundamental to preventing identity confusion.
2.Structured Identity-Layout Plan Prediction: This is where the 'planning' comes in. The model doesn't just generate; it *strategizes*. It predicts a layout that assigns specific identities to specific regions or positions within the image. Think of it as generating a blueprint before constructing the building.
3.Rendering the Plan as a Visual Condition: This predicted layout isn't just an internal thought process; it's materialized into a visual guide that the diffusion model can directly use. This 'visual condition' acts as a strong, explicit signal, telling the model exactly *who* should be *where*.
4.Layout-Grounded ID Loss: The Game Changer: This is perhaps the most critical innovation. Instead of relying on the notoriously unreliable process of comparing high-dimensional face embeddings, WithEveryone uses annotated face regions (ground truth data) to directly supervise identity. If you know exactly where 'Sarah's' face *should* be in the generated image, you can provide much more precise feedback during training. This direct, pixel-level, layout-aware supervision drastically improves stability and accuracy, sidestepping the issues of unstable embedding-based face matching.
5.ID Representation Forcing: To further ensure robustness, the model is trained to predict each identity's representation *before* the final image synthesis. This pre-training step ensures that the model has a strong, distinct understanding of each identity from the outset, making the subsequent generation more reliable.

The Results Speak for Themselves: On an identity-disjoint benchmark, WithEveryone achieved significantly higher target-context identity similarity (improving face similarity from 0.462 for GPT-Image-2 to 0.499). It also drastically reduced undesirable 'copy-paste' artifacts (from 0.169 to 0.055). Furthermore, it successfully covered 97.3% of requested identities with a duplicate rate of only 2.8%. These metrics are not just numbers; they represent a fundamental shift in the capability of AI to handle complex, multi-identity scenes.

What Can You BUILD with WithEveryone?

This research opens up a vast array of possibilities for developers across various industries. Here are just a few ideas:

Personalized Content Generation at Scale: Imagine generating dynamic marketing materials where specific customer personas (or even actual customers, with consent!) are shown interacting with products or services in various group settings. This moves beyond generic stock photos to hyper-personalized visual storytelling.
Advanced Virtual Worlds and Gaming: Developers can create more immersive virtual experiences where NPCs (Non-Player Characters) and player avatars can be reliably placed into group scenes, custom cutscenes, or social interactions. Think dynamic quest givers, personalized team photos, or even historical reenactments within a game world.
Interactive Educational Content: Visualize historical events with specific figures accurately depicted in their historical context. Create interactive storybooks where children can insert themselves and their friends into the narrative, fostering engagement and learning.
Enhanced Developer Tools and AI Agent Orchestration: This technology can be integrated into multi-modal AI agent pipelines. An AI agent could take a complex natural language prompt like, "Generate a team photo of the Soshilabs marketing team (Sarah, David, Emily, and John) celebrating a successful launch, with a city skyline in the background," and reliably produce the desired image. This elevates the 'tool use' capabilities of AI agents, allowing them to handle visual generation tasks with unprecedented specificity.
Creative Prototyping and Design: For fields like film, animation, or even architectural visualization, rapid prototyping of scenes with specific characters or client representatives becomes incredibly efficient. Iterate on scene compositions, character placements, and interactions without the need for extensive manual rendering or reshoots.

WithEveryone is more than just an academic achievement; it's a powerful new primitive for AI image generation. It empowers developers to move beyond single-subject portraits and generic crowd scenes, enabling the creation of rich, complex, and deeply personalized visual narratives that maintain identity with remarkable accuracy.

Conclusion

The ability to reliably generate images with multiple, identity-preserved individuals marks a significant milestone in generative AI. WithEveryone's innovative approach, particularly its Layout-Grounded ID Loss and unified planning, addresses a core limitation that has hindered complex content creation. For developers, this means a powerful new tool to build more engaging, personalized, and visually consistent AI applications. The future of AI-generated content just got a lot more crowded – in a good way!

Cross-Industry Applications

GA

Gaming & Metaverse

Dynamically generate custom group scenes, cutscenes, or social interactions featuring specific player avatars and NPCs with consistent identities.

Enhances immersion and personalization in virtual worlds, allowing for richer narrative and social experiences.

E-

E-commerce & Marketing

Create highly personalized marketing visuals showing diverse groups of specific customer personas interacting with products or services in various scenarios.

Boosts engagement and conversion rates by generating hyper-relevant and relatable ad content at scale.

ED

Education & Training

Generate interactive educational content, such as historical reenactments with specific figures or social training scenarios with diverse groups of characters.

Makes learning more engaging and effective by providing dynamic, context-rich visual examples and simulations.

DE

DevTools & AI Agent Orchestration

Integrate as a 'tool' within multi-modal AI agent pipelines, allowing agents to reliably fulfill complex natural language requests for group image generation.

Empowers AI agents to handle sophisticated visual content creation tasks with high fidelity and specificity, enhancing developer productivity and automation.