arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.24499cs.CV
收藏

Reason-SVG:通过强化学习增强向量图形生成的结构化推理

Reason-SVG: Enhancing Structured Reasoning for Vector Graphics Generation with Reinforcement Learning

Beihang University(北京航空航天大学);The University of Hong Kong(香港大学)

Ximing Xing, Ziteng Xue, Yandong Guan, Jing Zhang, Dong Xu, Qian Yu

AI总结:

Reason-SVG通过引入Drawing-with-Thought范式和混合奖励机制,提升大语言模型生成高质量SVG的能力,实现结构化推理与视觉一致性。

摘要:

生成高质量的可缩放矢量图形(SVG)对大语言模型(LLMs)来说具有挑战性,因为它需要高级的结构有效性、语义准确性和视觉一致性推理能力,而当前LLMs在这些领域往往表现不佳。本文介绍了Reason-SVG,一种新的框架,具备增强的结构化推理能力用于SVG生成。Reason-SVG开创了“思考中绘制”(DwT)范式,其中模型生成SVG代码和显式的设计理由。Reason-SVG采用两阶段训练策略:首先,监督微调(SFT)训练LLM以掌握DwT范式,发展基础推理能力;其次,利用群体相对策略优化(GRPO)的强化学习(RL),使模型能够通过精细化、奖励驱动的推理生成DwT和SVG理由。为了实现推理驱动的SVG生成,我们设计了混合奖励函数,评估DwT推理的存在和有效性,以及结构有效性、语义对齐和视觉质量。我们还引入了SVGX-DwT-10k数据集,一个高质量的10000个SVG-DwT配对语料库,其中每个SVG代码均基于显式的DwT推理生成。通过整合DwT、SFT和混合奖励引导的RL,Reason-SVG显著提高了LLMs和VLMs在生成准确且视觉一致的SVGs方面的性能。

英文摘要:

Generating high-quality Scalable Vector Graphics (SVGs) is challenging for Large Language Models (LLMs), as it requires advanced reasoning for structural validity, semantic accuracy, and visual coherence -- areas where current LLMs often struggle. In this work, we introduce Reason-SVG, a novel framework equipped with enhanced structured reasoning for SVG generation. Reason-SVG pioneers the ``Drawing-with-Thought'' (DwT) paradigm, in which models generate both SVG code and explicit design rationales. Reason-SVG follows a two-stage training strategy: First, Supervised Fine-Tuning (SFT) trains the LLM on the DwT paradigm to develop foundational reasoning abilities. Second, Reinforcement Learning (RL), utilizing Group Relative Policy Optimization (GRPO), empowers the model to generate both DwT and SVG rationales through refined, reward-driven reasoning. To enable reasoning-driven SVG generation, we design a Hybrid Reward function that evaluates the presence and effectiveness of DwT reasoning, along with structural validity, semantic alignment, and visual quality. We also introduce the SVGX-DwT-10k dataset, a high-quality corpus of 10k SVG-DwT pairs, where each SVG code is generated based on explicit DwT reasoning. By integrating DwT, SFT, and Hybrid Reward-guided RL, Reason-SVG significantly improves the performance of LLMs and VLMs in generating accurate and visually coherent SVGs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑