QuadTok:用于自回归图像生成的四叉树视觉分词器
研究论文 · 2026/10/08
我们提出了QuadTok,一种用于视觉标记化和自回归图像生成的新框架。与使用2D网格或1D标记序列的传统方法相比,我们提出了一种分层四叉树结构,弥合了2D空间绑定与1D序列级灵活性之间的差距。QuadTok标记器动态地将表示能力分配给视觉上复杂的区域,同时将均匀区域保持在粗分辨率。与固定的256标记网格相比,我们在ImageNet上训练的标记器在ImageNet上节省了约10%的标记,在零样本迁移到COCO数据集时节省了9%,同时保持了相当的重建保真度。此外,树结构引入的自然因果关系无缝地实现了自回归图像生成。在生成前提供四叉树拓扑的条件下,我们的947M GPT风格生成模型在ImageNet 256×256基准上达到了2.08 gFID。此外,利用四叉树结构保留的强空间相关性,QuadTok生成器实现了零样本空间控制的图像生成能力。代码:https://github.com/myc634/QuadTok。
QuadTok通过四叉树结构在保持重建质量的同时显著减少标记数量,并实现了高效的自回归图像生成与零样本空间控制,为视觉标记化提供了新思路。
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.