Manuscript Offprint

arXiv:2608.20336

WithEveryone: Unified Planning and Identity Grounding for Group Image Generation

Hengyuan Xu, Qixun Wang, Yiji Cheng, Miles Yang, Zhao Zhong, Wei Cheng, Xingjun Ma, Yu-gang Jiang

Abstract

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 of 5–10 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. WithEveryone leads in identity similarity (0.538 versus GPT-Image-2.5’s 0.472), with lower Copy-Paste (0.149 versus 0.197), 94.5% identity coverage, and 9.6% identity collisions. These results show that explicit identity–layout grounding enables identity-preserving generation to scale to larger groups without relying on direct reference-face copying.

Figure

Figure 1: Overview of WithEveryone. WithEveryone generates coherent group images from five to ten reference identities. A single model reasons about which references participate, plans identity–layout bindings, person regions, and poses, and generates the image conditioned on that plan, so identity and composition are decided in one context rather than by separate modules.

Figure

Figure 2: Group images generated by WithEveryone. The samples cover different group sizes, scene types, and visual styles.

1 Introduction

Figure

Figure 3: Overview of WithEveryone. The model loads selected reference identities as ID tokens, predicts structured Layout CoT, renders a visual layout condition, and predicts identity representations before generating the target group image. Modality-boundary tokens such as “BOI” are omitted, and the actual CoT order follows the text.

Recent image generation models, especially unified multimodal models (UMMs), have advanced rapidly in visual fidelity, text understanding, and controllability, and identity-preserving generation further lets users specify a person through one or more reference images [34, 60]. However, existing open academic methods and benchmarks primarily address one or a small number of people, typically covering one to five reference identities (IDs) [68, 9, 2]; even strong proprietary systems such as Nano Banana Pro support at most five people [19]. Real group-image creation requires jointly generating more specified people rather than repeatedly generating independent single-person images. We study group-image generation from five to ten reference IDs in one semantically and visually coherent image.

As the number of reference IDs increases, identity similarity is widely reported to decrease [68, 29, 76, 24], and models tend to duplicate faces or merge IDs in multi-person scenes [3]. When more reference images, visual tokens, and identity conditions share one generation context, each identity signal is more easily diluted, and cross-identity interference and incorrect binding become more likely. Supplying reference images or identity embeddings as conditions therefore does not guarantee that the model keeps reading every identity during generation: large-group generation needs a mechanism that both provides each reference identity and constrains the context to retain its representation.

Prior work also shows that conditioning alone is not enough, and that supervising the generated face directly with an identity loss is necessary for strong identity preservation [21, 68]. Such losses, however, are formulated for a single person or at most two. Extending them to a large group is not a matter of running the same loss more times, because the loss must first decide which generated face belongs to which reference, and existing formulations recover that correspondence by matching face embeddings in the generated image. Early in training or at high noise levels, however, the predicted faces are nearly identical, so this matching becomes unreliable and the identity loss fails or even becomes counterproductive.

More references also complicate spatial and bodily relationships. Identity similarity answers who is generated, but not where people appear, what poses they take, or how they are organized. As the group grows, pairwise relations multiply and one misplaced person propagates errors through the surrounding composition, making overlaps, limb errors, and crowded layouts especially likely. We therefore offload this planning burden to the understanding side of a unified model before image generation.

To address these challenges, we propose WithEveryone, a UMM framework shown in Figure 1. On the identity side, we extract an identity embedding for each reference person, project it into an ID token, and bind that token to the planned person it should control, so that references form an addressed set rather than an unordered pool. Because ID tokens are easily ignored in long multi-ID sequences, ID Representation Forcing adapts representation forcing [61] to identities, requiring the model to predict a representation aligned with each target person before synthesis. At the output level, we introduce a flow-compatible Layout-Grounded ID Loss (LG-ID Loss), which removes the matching problem described above rather than approximating it: the correspondence is read off the layout annotation, so each identity is supervised in its own annotated region no matter how many people share the image.

On the understanding side, the model autoregressively predicts a structured Layout Chain of Thought (Layout CoT) containing person indices, bounding boxes, identity–layout bindings, and pose keypoints, extending ATLAS-style planning [38] to an identity-aware setting in which every planned person is tied to a reference identity; a deterministic renderer then converts the plan into a visual condition. ID tokens and Representation Forcing determine who to generate, Layout CoT determines where and how each person appears, and identity–layout binding joins the two in a single plan.

We evaluate WithEveryone against academic, open-source, and proprietary systems, including GPT-Image-2 and GPT-Image-2.5. Ours reaches the highest Sim(Tgt)/Sim(Ref), at 0.538/0.641, compared with 0.472/0.615 for GPT-Image-2.5, while lowering Copy-Paste [68] from 0.197 to 0.149. This identity advantage comes with competitive scene similarity, but does not extend to every quality or coverage metric. Our contributions are threefold:

  • We propose interleaved identity and layout reasoning inside a single unified model: each selected reference is loaded as an ID token, a structured Layout CoT extends ATLAS-style planning with identity–layout binding and joint prediction of face regions, body extents, and poses, and a deterministic renderer turns the plan into a visual condition. ID Representation Forcing adapts representation forcing by adding supervised per-identity predictions before image synthesis, encouraging the selected identities to remain addressable in the shared context.
  • We propose the LG-ID Loss, which grounds output-side identity supervision in the layout annotation instead of in embedding-based face matching. This removes the failure mode that prevents existing identity losses from being applied beyond two people, and it is the single largest source of identity gain in our system.
  • We build and systematically evaluate a group-image generation system for five to ten people. On an identity-disjoint benchmark it achieves higher target-context identity similarity than GPT-Image-2.5 (Sim(Tgt) 0.538 versus 0.472) at a lower copy-paste artifact score (0.149 versus 0.197), and our analysis separates plan prediction from plan execution as distinct sources of the remaining error.

References (58)