用彩色3D框提示实现精准可控的图像几何编辑
BoxCtrl: 3D-Aware Visual Prompting for Geometric Image Editing

- 用三色3D边界框作为视觉提示,分离几何与外观控制
- 在合成数据上微调+真实数据强化学习,提升几何精度
- 适合需要精确空间操作的图像编辑任务
随着基于指令的编辑模型和多模态大语言模型的发展,多样化的图像编辑任务已成可能。然而,实现精确且一致的几何图像编辑(如三维空间中的平移、缩放、旋转)仍是重大挑战。本文提出BoxCtrl,一种3D感知的视觉提示框架。不同于仅依赖文本或粗略2D引导的方法,我们的方法将信息丰富的RGB 3D边界框投影到2D图像上作为视觉提示。每个盒子的三个正交面涂以不同颜色,同时编码位置、尺寸和方向,提供紧凑直观的上下文视觉示例。BoxCtrl成功的关键在于精心设计的边界框,实现了几何控制与外观控制的解耦。这使模型能在潜在空间中学习同色面间的稳定对应关系,从而精确理解几何意图并生成准确的编辑结果。我们采用两阶段训练范式:监督微调(SFT)后接强化学习(RL)。为解决配对数据稀缺问题,构建大规模合成数据集用于SFT,赋予模型基础编辑能力;为弥合合成到真实的数据域差距,引入在线强化学习阶段,利用无配对真实数据。通过评估几何准确性与视觉保真度的奖励函数指导,SFT-RL策略显著提升几何精度,同时保持逼真画质。大量实验表明,BoxCtrl在平移、旋转、缩放及复合编辑任务中均达到当前最优表现。
原文摘要 · Abstract (English)
As instruction-based editing models and multimodal large language models advance, diverse image editing tasks have become feasible. However, achieving precise and consistent geometric image editing, such as translating, scaling, and rotating in 3D space, remains a major challenge. In this work, we introduce BoxCtrl, a 3D-aware visual prompting framework. Unlike text-only or coarse 2D-guided approaches, our method introduces informative RGB 3D bounding boxes projected onto 2D images as visual prompts. The three orthogonal faces of each box are painted with distinct RGB colors, simultaneously encoding position, size, and orientation to provide a compact, intuitive in-context visual example. The key to BoxCtrl's success lies in these well-designed bounding boxes, which decouple geometric control from appearance control. This enables the model to learn consistent correspondences between faces of the same color in the latent space, leading to a precise understanding of geometric intentions and accurate editing results. We introduce a two-stage training paradigm: Supervised Fine-Tuning (SFT) followed by Reinforcement Learning (RL). To address paired data scarcity, we construct a large-scale synthetic dataset for SFT, equipping the model with fundamental editing capabilities. To bridge the synthetic-to-real domain gap, we incorporate an online RL stage leveraging unpaired real-world data. Guided by a reward function evaluating geometric accuracy and visual fidelity, our SFT-RL strategy significantly enhances geometric precision while maintaining photorealistic quality. Extensive experiments demonstrate that BoxCtrl achieves state-of-the-art performance across translation, rotation, scaling, and composite editing tasks.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。