arXiv(opens in a new tab)cs.CVOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.10497

QuadTok: Quadtree Visual Tokenizer for Autoregressive Image Generation

Yucheng Mao, Zeyuan Chen, Xiaojun Shan, Xiang Zhang, Divyansh Srivastava, Bingnan Li, Zhuowen Tu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yucheng Mao ∗^{*}, Zeyuan Chen ∗^{*}, Xiaojun Shan, Xiang Zhang

Divyansh Srivastava, Bingnan Li, Zhuowen Tu

University of California, San Diego

∗^{*}Equal Contribution.

Figure

Input Image

Token Activation & Reconstruction

Figure

64 Tokens

Figure

81 Tokens

Figure

112 Tokens

Figure

164 Tokens

Activated Token

Figure

192 Tokens

(a) Adaptive Token Allocation and Reconstruction

Figure

(b) Autoregressive Generation

Input Quadtree

Figure

Class ID: 127

Figure

(c) Zero-Shot Layout Control

Figure 1: Adaptive token allocation with QuadTok: (a) Progressive reconstruction using the QuadTok tokenizer: starting from a coarse reconstruction with 64 tokens, additional tokens progressively improve reconstruction quality. (b) Autoregressive image generation with the QuadTok generator: tokens are generated following the quadtree topology, enabling coarse-to-fine synthesis. (c) Zero-shot spatial layout controlled generation: a user or LLM-specified spatial layout is translated into a quadtree, and the QuadTok generator predicts visual codes conditioned on this topology.

ABSTRACT

We introduce QuadTok, a novel framework for visual tokenization and autoregressive image generation. Compared to traditional approaches using 2D grids or 1D token sequences, we propose a hierarchical quadtree structure, bridging the gap between 2D spatial binding and 1D sequence-level flexibility. The QuadTok tokenizer dynamically allocates representational capacity to visually intricate areas while leaving homogeneous regions at a coarse resolution. Compared with a fixed 256-token grid, our ImageNet-trained tokenizer saves approximately 10% of tokens on ImageNet and 9% when transferred zero-shot to COCO dataset, while maintaining comparable reconstruction fidelity. Furthermore, the natural causality introduced by the tree structure seamlessly enables autoregressive image generation. Conditioned on a quadtree topology supplied before generation, our 947M GPT-style generative model achieves a 2.08 gFID on the ImageNet 256×256256 \times 256 benchmark. Additionally, leveraging the strong spatial correlation preserved by the quadtree structure, the QuadTok generator enables zero-shot spatially controlled image generation capabilities. Code: https://github.com/myc634/QuadTok.

1 INTRODUCTION

Natural images exhibit highly non-uniform spatial information density: regions containing intricate textures and high-frequency patterns carry significantly more information than smooth or homogeneous areas. Ideally, a visual tokenizer should allocate representational capacity according to this spatial variability. However, classic visual tokenizers (van den Oord et al., 2018; Sun et al., 2024) compress images into rigid 2D grids with a fixed token budget, distributing tokens uniformly across the image regardless of local complexity. As a result, complex regions are often under-represented while simple regions are over-allocated with redundant tokens.

To overcome the rigidity of grid-based tokenization, recent work has explored 1D visual tokenizers (Shen et al., 2025; Yu et al., 2024b; Duggal et al., 2024; Miwa et al., 2025b; Wang et al., 2026; Bachmann et al., 2025b; Chen et al., 2026). These methods model images as sequential token streams and allow for variable length, offering greater flexibility in adapting the token budget to image complexity. Nevertheless, this flexibility comes at the cost of spatial awareness. Because token allocation occurs along the sequence dimension rather than the image plane, these approaches remain largely spatially agnostic. Consequently, they often lack explicit correspondence between tokens and image patches, which can degrade pixel-level fidelity and make them less suitable for downstream tasks that require spatially grounded representations and precise localization.

In this work, we propose QuadTok, a novel quadtree-based visual tokenizer that enables adaptive token allocation while preserving explicit spatial correspondence. Instead of relying on a rigid grid or a purely sequential representation, QuadTok represents images using a hierarchical quadtree structure that dynamically subdivides spatial regions based on local complexity. This design bridges the gap between existing paradigms: it retains the spatial grounding of traditional 2D tokenizers while introducing the sequence-level flexibility of 1D token representations. However, one key challenge remains: How can we select which regions to refine based on their reconstruction benefit? To tackle this, we propose Region-Wise Complexity Guidance, a data-driven strategy to select a content-adaptive tree for each image based on reconstruction benefit. Furthermore, we identify that maintaining the hierarchical causality and explicit spatial relationships between tree nodes is crucial during the tokenization process. To enforce this structural integrity, we introduce the Kinship Causal Mask. This mechanism dictates a strict coarse-to-fine information flow along the quadtree hierarchy, allowing the global image structure to be established before localized refinement occurs within spatially bounded regions.

Empowered by our Region-Wise Complexity Guidance, the QuadTok tokenizer achieves an rFID of 1.46 and a PSNR of 20.37 on ImageNet with 230 tokens on average, saving approximately 10% relative to a fixed 256-token grid. Transferred zero-shot to COCO, the same tokenizer uses 232 tokens on average, saving approximately 9%. Furthermore, leveraging the causality inherent in the quadtree structure, the QuadTok 947M autoregressive generator achieves a gFID of 2.08, compared with 2.15 for the 1.4B RandAR-XXL model (Pang et al., 2025). We also show a consistent scaling behavior on our generator across different model scales. Furthermore, guided by the explicit quadtree topology, QuadTok generator enables novel zero-shot capabilities such as spatially controllable generation. Our contributions are summarized as follows:

• We propose QuadTok, a quadtree-based visual tokenizer that replaces fixed-grid representations with spatially adaptive token allocation. Our approach preserves explicit spatial correspondence while enabling flexible token budgets driven by local visual complexity.

• We introduce two key mechanisms to support adaptive tokenization: (i) Region-Wise Complexity Guidance strategy selecting regional refinement from reconstruction benefit; (ii) a Kinship Causal Mask enforcing hierarchical dependencies among tree nodes during tokenization.

• Leveraging the hierarchical causality of quadtrees, QuadTok achieves competitive image generation quality while enabling zero-shot spatially controllable image synthesis conditioned on quadtree layouts supplied before generation.

References (65)