From Context to Canvas: Benchmark Dataset and Verify-then-Route Framework for Multi‑Subject Reference-Based Image Generation

Long-Bao Nguyen1,2,†, Quang-Khai Le1,2,†, Tam V. Nguyen3, Minh-Triet Tran1,2, Trung-Nghia Le1,2,‡

1University of Science, Ho Chi Minh City, Vietnam 2Vietnam National University, Ho Chi Minh City, Vietnam 3University of Dayton, Ohio, USA †Equal contribution   ‡Corresponding author

Inputs

  • Background reference: Bien Ba Dong wind farm SceneBien Ba Dong
Stage 1 layout: three anonymous people with a book, a handbag, and two perfume bottles. Stage 2 input with each person's region marked. Final image: the three reference people holding their reference items at Bien Ba Dong.

Scene graph from the prompt

Bien Ba Dong touches holds P1 book holds carries P2 pink perfume handbag holds P3 amber perfume

7 / 7 entities verified

TL;DR: Multi-subject generators collapse as people are added. We release CogCanvas, a benchmark that measures it, and Context2Canvas, a training-free method that verifies the layout, then routes each reference to its own region.

Abstract

Personalized image generation should compose several people, each with the right objects and outfits, in a specified scene, yet current generators collapse as references are added and existing benchmarks do not capture this degradation. We introduce CogCanvas, a benchmark of 1,361 compositional prompts with 2–5 subjects, 1,952 curated references (100 people, 115 objects and fashion items, 29 scenes), and graphs specifying interactions and spatial relations. It adds two metrics: BG-Sim for background fidelity outside foreground regions, and Attr-VQA for person–item binding, with 76.5% agreement with human majority judgments.

We also propose Context2Canvas, a training-free multi-agent framework built on a verify-then-route principle: agents verify a layout against a hierarchical scene graph, and its masks then route each reference to its own region in a two-phase renderer that grounds references independently before refining them jointly. Context2Canvas achieves 2.5× the attribute-binding score of the strongest published baseline, with larger gains as the subject count increases.

CogCanvas benchmark

1,361 prompts with 2–5 people, built from 1,952 references: 100 identities, 115 objects and outfits, 29 real scenes.

Curation pipeline: reference pools, composition with interaction graphs, and the benchmark record with interaction and position graphs.

Six axes, two new

  • ID-SimFace identity, ArcFace
  • DINO-SimObject and outfit fidelity, DINOv2
  • CLIP-TGlobal text alignment
  • BG-SimScene fidelity outside the subjects
  • Aesth.Image quality
  • Attr-VQAWho holds what: one question per graph edge

Attr-VQA matches the human majority on 76.5% of 515 questions.

Compared with existing benchmarks Only CogCanvas tests interaction, background, and spatial layout together
BenchmarkVenuePromptsHuman refsObject refsInteractionBackgroundSpatial
T2I-CompBenchNeurIPS’236,00000––Partial
DreamBenchCVPR’23750030–––
DreamBench++ICLR’251,35020110–––
MultiHuman-TBNeurIPS’251,8005,5500Partial––
XVerseBenchNeurIPS’2530020119Partial––
CogCanvas–1,361100115YesYesYes

Context2Canvas: verify, then route

Training-free. Verify the layout against a scene graph, then route each reference into its own region.

Framework overview: Stage 1 builds and verifies a layout with a scene graph; Stage 2 renders identities in two phases using the verified masks.

Stage 1Verified layout

Agents compile the prompt into a scene graph, then repair the layout until every entity is found.

  • Object Parsing
  • Scene Graph
  • Prompt Enhancement
  • Localization
  • Prompt Refinement

Stage 2Two-phase identity refinement

Phase 1 · isolatedEach reference alone, in its own pass
Phase 2 · jointAll references together, routed by masks
  • FLUX.2-klein
  • Fixed routing mask
  • RoPE offset per reference

Verification in action

Crowded scenes and long prompts make the generator drop or add people. The check catches each error and tells Prompt Refinement what failed.

Iterations bar height = prompt length

      Full prompt

      Results

      First on all six axes. 2.5× the Attr-VQA and 1.7× the ID-Sim of the strongest published method.

      More people, less binding

      Attr-VQA, N = 2 → N = 5

        Weighted average over group sizes. Best underlined. Published baselines get the scene as text, so no BG-Sim.
        MethodID ↑DINO ↑CLIP-T ↑BG ↑Aesth. ↑Attr-VQA ↑
        OmniGen25.6114.4159.46–43.0715.89
        UNO19.3519.9161.17–54.7722.00
        DreamO1.402.9457.96–42.237.79
        XVerse25.5118.4059.89–38.405.04
        MOSAIC7.723.9757.36–41.556.90
        1-pass (FLUX.2)23.9423.9059.340.64956.1832.62
        SRI33.6827.2261.450.66755.4139.57
        Context2Canvas44.2232.4966.100.81962.6054.77

        Side by side

        N = 2Two-subject scene: references and outputs of OmniGen2, UNO, DreamO, XVerse, MOSAIC, and ours.
        N = 3Three-subject scene: references and outputs of all methods.
        N = 4Four-subject scene: references and outputs of all methods.
        N = 5Five-subject scene: references and outputs of all methods. OmniGen2's tile is blank.
        Human preference Ours preferred in 77–93% of blind pairwise votes
        Pairwise preference. Overall: ours preferred 82% vs UNO, 77% vs OmniGen2, 93% vs XVerse, 92% vs MOSAIC.
        12 raters, 972 blind judgments. Every head-to-head is significant at p < 0.01.
        Ablation Every component matters; routing rule is a trade-off
        One component removed or replaced per row. Weighted average. Best underlined.
        VariantID ↑DINO ↑CLIP-T ↑BG ↑Aesth. ↑Attr-VQA ↑
        Full44.2232.4966.100.81962.6054.77
        No verification37.0843.3962.740.75960.8644.78
        No verification, same attempts36.8732.5862.700.75761.6338.37
        No Phase 128.4221.4063.470.81737.8745.19
        No Phase 229.4214.8337.260.83236.8342.93
        No RoPE offset12.7031.3363.930.81563.5952.99
        Online winner-take-all routing38.2039.5364.260.83163.0856.72
        • Verification lifts ID-Sim and Attr-VQA. DINO-Sim rises without it.
        • Both phases are needed: Attr-VQA drops without either.
        • Fixed mask vs online routing: fixed favors identity and text, online favors binding.
        • Cost: 430 s per image on one A100, 5.46× one FLUX pass.

        BibTeX

        @article{nguyen2026context2canvas,
          title   = {From Context to Canvas: Benchmark Dataset and Verify-then-Route
                     Framework for Multi-Subject Reference-Based Image Generation},
          author  = {Nguyen, Long-Bao and Le, Quang-Khai and Nguyen, Tam V. and
                     Tran, Minh-Triet and Le, Trung-Nghia},
          journal = {arXiv preprint arXiv:2606.15867},
          year    = {2026}
        }