arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.10696cs.CVeess.IV
收藏

用于高效视觉生成的邻近自回归建模

Neighboring Autoregressive Modeling for Efficient Visual Generation

Zhejiang University(浙江大学);Shanghai AI Laboratory(上海人工智能实验室);The University of Adelaide(阿德莱德大学)

Yefei He, Yuanyu He, Shaoxuan He, Feng Chen, Hong Zhou, Kaipeng Zhang, Bohan Zhuang

AI总结:

提出 NAR 邻近自回归建模范式,通过曼哈顿距离由近到远扩展并利用面向维度的解码头并行预测相邻 token,显著提升图像与视频生成效率和质量。

摘要:

视觉自回归模型通常遵循光栅顺序的“下一 token 预测”范式,这忽视了视觉内容中固有的空间与时间局部性。具体而言,与相距较远的 token 相比,视觉 token 与其在空间或时间上相邻的 token 表现出显著更强的相关性。本文提出 Neighboring Autoregressive Modeling(NAR,邻近自回归建模),这是一种新颖范式,将自回归视觉生成表述为一个渐进式外扩绘制过程,遵循由近到远的“下一邻居预测”机制。从一个初始 token 开始,其余 token 按照其在时空空间中与初始 token 的曼哈顿距离升序进行解码,逐步扩展已解码区域的边界。为了能够并行预测时空空间中的多个相邻 token,我们引入了一组面向维度的解码头,每个解码头沿一个相互正交的维度预测下一个 token。在推理过程中,与已解码 token 相邻的所有 token 都会被并行处理,从而大幅减少生成所需的模型前向步数。在 ImageNet 256×256 和 UCF101 上的实验表明,NAR 分别实现了 2.4 倍和 8.6 倍的更高吞吐量,同时在图像和视频生成任务上相较 PAR-4X 方法获得更优的 FID/FVD 分数。在文本到图像生成基准 GenEval 上评估时,具有 0.8B 参数的 NAR 优于 Chameleon-7B,而仅使用其 0.4 的训练数据。代码可在 https://github.com/ThisisBillhe/NAR 获取。

英文摘要:

Visual autoregressive models typically adhere to a raster-order ``next-token prediction" paradigm, which overlooks the spatial and temporal locality inherent in visual content. Specifically, visual tokens exhibit significantly stronger correlations with their spatially or temporally adjacent tokens compared to those that are distant. In this paper, we propose Neighboring Autoregressive Modeling (NAR), a novel paradigm that formulates autoregressive visual generation as a progressive outpainting procedure, following a near-to-far ``next-neighbor prediction" mechanism. Starting from an initial token, the remaining tokens are decoded in ascending order of their Manhattan distance from the initial token in the spatial-temporal space, progressively expanding the boundary of the decoded region. To enable parallel prediction of multiple adjacent tokens in the spatial-temporal space, we introduce a set of dimension-oriented decoding heads, each predicting the next token along a mutually orthogonal dimension. During inference, all tokens adjacent to the decoded tokens are processed in parallel, substantially reducing the model forward steps for generation. Experiments on ImageNet$256\times 256$ and UCF101 demonstrate that NAR achieves 2.4$\times$ and 8.6$\times$ higher throughput respectively, while obtaining superior FID/FVD scores for both image and video generation tasks compared to the PAR-4X approach. When evaluating on text-to-image generation benchmark GenEval, NAR with 0.8B parameters outperforms Chameleon-7B while using merely 0.4 of the training data. Code is available at https://github.com/ThisisBillhe/NAR.

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

↑