QuadTok: Quadtree Visual Tokenizer for Autoregressive Image Generation
cs.CV
Submitted: 2026-10-07
Updated: 2026-10-07
Code: https://github.com/myc634/QuadTok
License: http://creativecommons.org/licenses/by/4.0/
The gist: We introduce QuadTok, a novel framework for visual tokenization and autoregressive image generation.
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 the 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 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.
Sources
- FlexTok: Resampling Images into 1D Token Sequences of Flexible Length
- Qwen3-VL Technical Report
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Query-Key Normalization for Transformers
- Rotary Position Embedding for Vision Transformer
- Classifier-Free Diffusion Guidance
- Adam: A Method for Stochastic Optimization
- Microsoft COCO: Common Objects in Context
- One-D-Piece: Image Tokenizer Meets Quality-Controllable Compression
- Vision Transformers with Mixed-Resolution Tokenization
- ImageNet Large Scale Visual Recognition Challenge
- Improved Techniques for Training GANs
- CyCLeGen: Cycle-Consistent Layout Prediction and Image Generation in Vision Foundation Models
- GLU Variants Improve Transformer
- CAT: Content-Adaptive Image Tokenization
- DPAR: Dynamic Patchification for Efficient Autoregressive Visual Generation
- RoFormer: Enhanced Transformer with Rotary Position Embedding
- Autoregressive Model Beats Diffusion: Llama for Scalable Image Generation
- QuadTree Attention for Vision Transformers
- LLaMA: Open and Efficient Foundation Language Models
Related papers
- Loss Knows Best: Detecting Annotation Errors in Videos via Loss Trajectories
- AnchorWeave: World-Consistent Video Generation with Retrieved Local Spatial Memories
- Benchmarking the Robustness of Foundation Models for Mammography under Domain Shift
- MambaX-Net: Dual-Input Mamba-Enhanced Cross-Attention Network for Longitudinal MRI Segmentation
- TeleOCR: Navigating Document Parsing Across Digital and Camera-Captured Documents
- A Survey on Efficient Vision-Language-Action Models