Re-Align: Structured Reasoning-guided Alignment for In-Context Image Generation and Editing
Runze He, Yiji Cheng, Tiankai Hang, Zhimin Li, Yu Xu, Zijin Yin, Shiyi Zhang, Wenxun Dai, Penghui Du, Ao Ma, Chunyu Wang, Qinglin Lu, Jizhong Han, Jiao Dai
TL;DR
Re-Align tackles in-context image generation and editing by bridging understanding and generation through a structured IC-CoT that decouples semantic guidance from reference association. The framework combines a surrogate CLIP-based alignment reward and a reasoning-induced diversity strategy within a GRPO training loop, backed by the Re-Align-410K dataset. Empirical results on ICGE benchmarks demonstrate state-of-the-art performance among models of comparable resources and scales, validating improved reasoning–generation alignment for complex interleaved prompts. This approach offers a scalable path to more faithful and controllable ICGE in practical applications.
Abstract
In-context image generation and editing (ICGE) enables users to specify visual concepts through interleaved image-text prompts, demanding precise understanding and faithful execution of user intent. Although recent unified multimodal models exhibit promising understanding capabilities, these strengths often fail to transfer effectively to image generation. We introduce Re-Align, a unified framework that bridges the gap between understanding and generation through structured reasoning-guided alignment. At its core lies the In-Context Chain-of-Thought (IC-CoT), a structured reasoning paradigm that decouples semantic guidance and reference association, providing clear textual target and mitigating confusion among reference images. Furthermore, Re-Align introduces an effective RL training scheme that leverages a surrogate reward to measure the alignment between structured reasoning text and the generated image, thereby improving the model's overall performance on ICGE tasks. Extensive experiments verify that Re-Align outperforms competitive methods of comparable model scale and resources on both in-context image generation and editing tasks.
