MAGPIE: Agentic Multi-Reference Image Generation via Executable Scene Construction
Yifan Dai, Daili Hua, Bohan Zeng, Yuran Wang, Jialing Liu, Bozhou Li, Chengzhuo Tong, Yang Shi and 10 others
Shanghai Jiao Tong University · Peking University · KlingAI Research · Renmin University of China · HKUST · HKU
Published November 24, 2026 · on the feed November 25, 2026 · ▲ 15 · arXiv 2611.32462
The abstract
Multi-reference image generation requires a model to preserve the appearance of selected subjects while arranging them according to an instruction. Despite recent progress in reference-based generation and compositional control, reliably organizing selected subjects into the intended scene remains challenging. Although existing methods provide various forms of compositional guidance, the planned relationships are not always explicitly instantiated for inspection and refinement before image synthesis. To address this limitation, we introduce MAGPIE, which represents the intended composition as a simplified 3D scene defined by an executable Blender program. A coding agent links each scene instance to its reference, checks the geometry and rendered view against the instruction, and revises the program to correct discrepancies. The final proxy rendering serves as a visual plan for the image generator. Using MAGPIE-Instruct-3K, we train the generator to follow this plan while drawing each subject's appearance from its reference. MAGPIE improves both Qwen and FLUX on DreamOmni2 and SconeEval. With FLUX, it improves overall success on DreamOmni2 by 28.21 percentage points over the original backbone and achieves the highest overall score among the models evaluated on SconeEval.
The Brief
2:08A short podcast summary of the paper. Written and voiced by AI.
Transcript
MAGPIE. Agentic Multi-Reference Image Generation via Executable Scene Construction. By Yifan Dai and seventeen others, from Shanghai Jiao Tong University, Peking University, and six other institutions. Published on the twenty-fourth of November.
Multi-reference image generation asks a model to do two things at once: preserve the appearance of selected subjects, and arrange them the way an instruction says. Reference-based generation and compositional control have both made progress, yet reliably organising the chosen subjects into the intended scene remains hard. Existing methods offer various forms of compositional guidance, but the relationships they plan are not always made explicit, in a form that can be inspected and refined before the image is synthesised.
MAGPIE makes the plan explicit. It represents the intended composition as a simplified 3D scene, and that scene is defined by an executable Blender program. A layout written as a program can be run, rendered, checked and edited, which is precisely the inspection and refinement the earlier guidance did not offer.
A coding agent does the construction. It links each instance in the scene to its reference, checks both the geometry and the rendered view against the instruction, and revises the program to correct any discrepancies it finds. When that loop is finished, the final proxy rendering serves as a visual plan for the image generator. The generator is then trained, using a dataset called MAGPIE-Instruct-3K, to follow this plan while drawing each subject's appearance from its own reference.
MAGPIE is applied to two backbones, Qwen and FLUX, and improves both on two evaluations, DreamOmni2 and SconeEval. The largest figure comes with FLUX: on DreamOmni2, overall success rises by twenty-eight point two one percentage points over the original backbone. On SconeEval, the FLUX version achieves the highest overall score among the models evaluated there.
What changes is where the arrangement gets decided. Instead of leaving a generator to work out the layout from an instruction alone, MAGPIE settles it first, in a small 3D scene that an agent can look at and fix, and only then asks the generator to paint the subjects into it. Composition becomes something checked before synthesis begins, and appearance stays the job of the references.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free