Neighboring Autoregressive Modeling for Efficient Visual Generation

Yefei He, Yuanyu He, Shaoxuan He, Feng Chen, Hong Zhou +2 more
3/12/2025
34 citations
cs.CVeess.IV

Official code: ThisisBillhe/NAR (62 stars, Python, last commit 2025-04-05). 1 more implementation below.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
ThisisBillhe/NAROfficial62Python–2025-04-05
Yuanyu0/narCommunity2––2025-03-18
ThisisBillhe/NAROfficial100%

[ICCV 2025] The official implementation of "Neighboring Autoregressive Modeling for Efficient Visual Generation"

621Python, ShellMar 12, 20251 years ago
Yuanyu0/narCommunity58%

NAR: Neighboring Autoregressive Modeling for Efficient Visual Generation

20Mar 13, 20251 years ago

Similar Papers

Cite this paper

@article{he2025neighboring,
  title  = {Neighboring Autoregressive Modeling for Efficient Visual Generation},
  author = {Yefei He and Yuanyu He and Shaoxuan He and Feng Chen and Hong Zhou and Kaipeng Zhang and Bohan Zhuang},
  year   = {2025},
  eprint = {2503.10696},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.10696v1},
  journal = {ICCV 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.10696.svg)](https://codeofpaper.com/paper/2503.10696)

Discussion