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

从标记到数字:用于SVG生成的连续数字建模

From Tokens to Numbers: Continuous Number Modeling for SVG Generation

Cheriton School of Computer Science, University of Waterloo, Waterloo, ON, Canada(滑铁卢大学计算机科学学院);Vector Institute(向量研究所)

Michael Ogezi, Martin Bell, Freda Shi, Ethan Smith

AI总结:

本文提出连续数字建模(CNM)方法,通过直接建模连续数值提升SVG生成的效率与质量,实现训练速度提升30%及更高的视觉保真度。

摘要:

对于某些图像生成任务,矢量图形如可缩放矢量图形(SVGs)提供了清晰的优势,例如增加的灵活性、尺寸效率和编辑便利性,但相较于基于光栅的方法仍较少被探索。核心挑战是构成SVGs大部分的数值几何参数以长序列的标记形式进行编码效率低下。这会减慢训练速度,降低准确性,并损害泛化能力。为了解决这些问题,我们提出了连续数字建模(CNM),一种直接将数字作为第一类连续值进行建模的方法,而不是离散的标记。这种形式通过将模型的输入与数据的连续性质对齐,恢复了表示的数学优雅性,消除了由基于标记的编码引入的离散化伪影。然后我们训练了一个多模态Transformer模型,在200万张光栅到SVG样本上进行训练,接着通过使用感知反馈进行微调以进一步提高视觉质量。我们的方法将训练速度提高了超过30%,同时在感知保真度方面优于其他方法。这项工作将CNM确立为一种实用且高效的高质量矢量生成方法,具有更广泛的应用潜力。我们提供了代码 http://github.com/mikeogezi/CNM。

英文摘要:

For certain image generation tasks, vector graphics such as Scalable Vector Graphics (SVGs) offer clear benefits such as increased flexibility, size efficiency, and editing ease, but remain less explored than raster-based approaches. A core challenge is that the numerical, geometric parameters, which make up a large proportion of SVGs, are inefficiently encoded as long sequences of tokens. This slows training, reduces accuracy, and hurts generalization. To address these problems, we propose Continuous Number Modeling (CNM), an approach that directly models numbers as first-class, continuous values rather than discrete tokens. This formulation restores the mathematical elegance of the representation by aligning the model's inputs with the data's continuous nature, removing discretization artifacts introduced by token-based encoding. We then train a multimodal transformer on 2 million raster-to-SVG samples, followed by fine-tuning via reinforcement learning using perceptual feedback to further improve visual quality. Our approach improves training speed by over 30% while maintaining higher perceptual fidelity compared to alternative approaches. This work establishes CNM as a practical and efficient approach for high-quality vector generation, with potential for broader applications. We make our code available http://github.com/mikeogezi/CNM.

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

↑