arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.05072cs.LG
收藏

分层SVG标记化:为可扩展矢量图形建模学习紧凑的视觉程序

Hierarchical SVG Tokenization: Learning Compact Visual Programs for Scalable Vector Graphics Modeling

Tencent(腾讯);Visual Computing Group, Beijing(北京视觉计算组)

Ximing Xing, Ziteng Xue, Zhenxi Li, Weicong Liang, Linqing Wang, Zhantao Yang, Tiankai Hang, Zijin Yin, Qinglin Lu, Chunyu Wang, Qian Yu

AI总结:

本文提出HiVG框架,通过分层标记化提升矢量图形生成的序列效率与空间一致性,解决传统标记化方法在几何结构表达上的不足。

摘要:

近期大型语言模型将SVG生成从可微渲染优化转向自回归程序合成,但现有方法仍依赖自然语言处理中的通用字节级标记化,无法有效反映矢量图形的几何结构。数值坐标被分割为离散符号,破坏空间关系并引入严重标记冗余,常导致坐标幻觉和低效长序列生成。为此,我们提出HiVG,一种针对自回归矢量图形生成的分层SVG标记化框架。HiVG将原始SVG字符串分解为结构化的原子标记,并进一步将可执行命令-参数组压缩为几何约束的段落标记,显著提升序列效率同时保持语法有效性。为进一步缓解空间不匹配,我们引入分层均值-噪声(HMN)初始化策略,将数值顺序信号和语义先验注入新标记嵌入。结合课程训练范式逐步增加程序复杂度,HiVG使可执行SVG程序的学习更加稳定。在文本到SVG和图像到SVG任务上的大量实验表明,与传统标记化方案相比,HiVG在生成保真度、空间一致性和序列效率方面均有显著提升。我们的代码在https://github.com/ximinng/HiVG公开发布。

英文摘要:

Recent large language models have shifted SVG generation from differentiable rendering optimization to autoregressive program synthesis. However, existing approaches still rely on generic byte-level tokenization inherited from natural language processing, which poorly reflects the geometric structure of vector graphics. Numerical coordinates are fragmented into discrete symbols, destroying spatial relationships and introducing severe token redundancy, often leading to coordinate hallucination and inefficient long-sequence generation. To address these challenges, we propose HiVG, a hierarchical SVG tokenization framework tailored for autoregressive vector graphics generation. HiVG decomposes raw SVG strings into structured \textit{atomic tokens} and further compresses executable command--parameter groups into geometry-constrained \textit{segment tokens}, substantially improving sequence efficiency while preserving syntactic validity. To further mitigate spatial mismatch, we introduce a Hierarchical Mean--Noise (HMN) initialization strategy that injects numerical ordering signals and semantic priors into new token embeddings. Combined with a curriculum training paradigm that progressively increases program complexity, HiVG enables more stable learning of executable SVG programs. Extensive experiments on both text-to-SVG and image-to-SVG tasks demonstrate improved generation fidelity, spatial consistency, and sequence efficiency compared with conventional tokenization schemes. Our code is publicly available at https://github.com/ximinng/HiVG

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

↑