arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2612.06314cs.CV
收藏

ScaleTok:扩散Transformer的潜在令牌预算应如何缩放?

ScaleTok: How Should Latent Token Budgets Scale for Diffusion Transformers?

Google(谷歌);Virginia Tech(弗吉尼亚理工大学)

Yusuf Dalva, Arpit Bansal, Ashwini Pokle, Peyman Milanfar, Mauricio Delbracio

AI总结:

该研究提出ScaleTok连续视觉分词器,对比固定、平方根、线性三种潜在令牌分配方案,发现视觉预算随图像面积平方根增长可兼顾保真度与成本,平方根方案在512×512分辨率下仅用一半视觉令牌即可达到线性方案的重建与生成效果。

摘要:

使用标准基于补丁的分词器在多种分辨率和纵横比下原生训练生成式视觉模型成本高昂,视觉令牌数量随图像面积线性增长,而扩散Transformer(DiT)中自注意力分数的计算成本随令牌数量二次增长。我们提出ScaleTok,一种连续视觉分词器,其将潜在序列长度与补丁网格解耦。它的连续纵横比感知位置嵌入(CAPE)会针对每个纵横比裁剪共享坐标网格后进行插值,使我们能比较固定、平方根和线性分配方案,同时为每种配置训练单个分词器,在四种ImageNet-1K几何结构上联合训练。为区分分词器内部可用容量与传递给生成器的视觉预算,我们在固定类别名称和视觉预算的同时,改变填充文本位置的数量。使用ViT-B/16骨干网络时,这些额外位置在固定和平方根分配的较大图像尺寸下提升了重建FID,但在线性分配下会降低FID,表明当视觉预算受限时,这些位置发挥类似寄存器的作用。我们证明视觉预算可随图像面积的平方根增长,同时保持重建保真度和生成质量。在512×512分辨率、256个文本令牌位置下,平方根分配方案的重建保真度接近线性分配方案,仅需一半数量的视觉令牌,且每次去噪步骤的DiT-XL估计成本约为线性分配的一半,生成FID相当。

英文摘要:

Training generative vision models natively across multiple resolutions and aspect ratios is costly with standard patch-based tokenizers. The visual token count grows linearly with image area, while the cost of computing self-attention scores in a diffusion transformer (DiT) grows quadratically with token count. We introduce ScaleTok, a continuous visual tokenizer that decouples latent sequence length from the patch grid. Its Continuous Aspect-Aware Positional Embeddings (CAPE) crop a shared coordinate grid to each aspect ratio before interpolation, enabling us to compare fixed, square-root, and linear allocation while training a single tokenizer per configuration jointly across four ImageNet-1K geometries. To distinguish the capacity available inside the tokenizer from the visual budget passed to the generator, we vary the number of padded text positions while holding the class name and visual budget fixed. With a ViT-B/16 backbone, these additional positions improve reconstruction FID under fixed and square-root allocation at larger image sizes but worsen it under linear allocation, suggesting a register-like role when the visual budget is constrained. We show that the visual budget can grow with the square root of image area while retaining both reconstruction fidelity and generation quality. At 512x512 with 256 text-token positions, square-root allocation approaches linear reconstruction fidelity with half as many visual tokens and yields comparable generation FID at roughly half the estimated DiT-XL cost per denoising step.

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

↑