Introduction
Generating high-quality images with multiple humans remains a significant challenge for state-of-the-art text-to-image (T2I) models. Common failures include "identity merging," where distinct reference identities blend into a single hybrid person, and miscounting, where the model fails to render the requested number of individuals. Ar2Can addresses these issues through a novel two-stage framework that separates spatial reasoning from identity-preserving rendering.
The Problem of Entanglement
Current T2I models often suffer from an "identity crisis" because they attempt to determine spatial layout and individual appearance simultaneously. This entanglement leads to systematic errors such as identity duplication or the generation of anatomical anomalies. By conflating the "where" with the "who," models struggle to maintain the integrity of multiple unique identities within a single scene.
The Ar2Can Framework
Ar2Can introduces a modular approach consisting of three core components: the Architect, the Canvas, and the Artist.
1. The Architect (Spatial Planning)
The Architect is responsible for the layout of the scene, predicting bounding boxes and poses for each person. Two variants were developed:
- Architect-A: An LLM-based model (Qwen-2.5) optimized for linguistic reasoning and precise counting.
- Architect-B: A T2I-based model (Flux-Schnell) that generates more diverse and natural spatial arrangements.
2. The Artist (Identity Rendering)
The Artist, based on Flux-Kontext, synthesizes the final image by populating the Architect's layout with specific reference identities. To ensure high fidelity, the researchers employed Group Relative Policy Optimization (GRPO). A "spatially-grounded face matching reward" uses the Hungarian algorithm to match generated faces with predicted locations, allowing for natural adjustments in pose and scale without the rigid "copy-paste" look of previous methods.
Efficiency and Occlusion Handling
To optimize performance, Ar2Can utilizes a "token sharing and dropping" strategy. By ignoring empty canvas regions and assigning identical positional encodings to overlapping areas, the model naturally learns to handle occlusions and depth, while reducing rendering time by 2x.
Experimental Results
Ar2Can was evaluated on the MultiHuman-Testbench (MHTB) and the Multi-ID-Test, demonstrating superior performance across several metrics.
- Counting Accuracy: Architect-A achieved a 90.2% accuracy rate, surpassing proprietary systems like GPT-Image-1.
- Identity Preservation: Ar2Can (Arch-B) reached a Multi-ID score of 68.2, a 13.7-point improvement over the previous state-of-the-art open-source model, MH-OmniGen.
- Speed: Architect-A generates layouts in approximately 0.5 seconds, contributing to a significantly faster overall inference pipeline.
Conclusion
Ar2Can demonstrates that disentangling spatial planning from identity rendering is a highly effective strategy for multi-human image generation. By leveraging reinforcement learning with soft spatial constraints, the framework achieves unprecedented levels of identity consistency and counting precision. Future work will focus on enhancing fine-grained control over individual expressions and scaling the system to handle even larger crowds.
Summary updated