GEAR:引导式端到端自回归图像合成
GEAR: Guided End-to-End AutoRegression for Image Synthesis
June 30, 2026
作者: Bin Lin, Zheyuan Liu, Chenguo Lin, Sixiang Chen, Yunyang Ge, Yunlong Lin, Jianwei Zhang, Miles Yang, Zhao Zhong, Liefeng Bo, Li Yuan
cs.AI
摘要
视觉生成模型通常分两阶段训练:先训练一个分词器用于重建并冻结,随后在其离散索引或连续潜变量上训练生成器。这种解耦导致分词器不了解生成器容易建模的内容。我们提出GEAR(引导式端到端自回归),通过表征对齐引导,联合端到端训练向量量化(VQ)分词器和自回归(AR)生成器。关键障碍在于,输入AR模型的VQ索引不可微,梯度无法传递至分词器,且直通估计器会崩溃。GEAR通过码本分配的双重读出机制解决此问题:硬独热分支训练AR进行下一词元预测,而可微的软分支携带表征对齐损失,反向传播仅引导分词器。由此,AR模型引导其分词器朝向更易预测的索引分布。这将对齐负担从分词器转移至AR:分词器自身的特征变得不那么像DINOv2,而AR的特征则变得更像,这与扩散型方案(使潜变量本身语义化)相反。相比强大的LlamaGen-REPA基线,GEAR将ImageNet gFID收敛速度提升多达10倍,学习到显著更优的块级和空间一致特征,并泛化至多种量化器(VQVAE、LFQ、IBQ)及文本到图像生成任务。
English
Visual generative models are typically trained in two stages. A tokenizer is first trained for reconstruction and then frozen, after which a generator is trained on its discrete indices or continuous latents. This decoupling leaves the tokenizer unaware of what the generator finds easy to model. We present GEAR (Guided End-to-end AutoRegression), which trains a vector-quantized (VQ) tokenizer and an autoregressive (AR) generator jointly and end-to-end, guided by representation alignment. The key obstacle is that the VQ index fed to the AR model is non-differentiable, so gradients cannot reach the tokenizer, and a straight-through estimator collapses. GEAR resolves this with a dual read-out of the codebook assignment. A hard, one-hot branch trains the AR with next-token prediction, while a differentiable soft branch carries a representation-alignment loss that flows back to guide only the tokenizer. The AR model thereby steers its tokenizer toward an index distribution it can predict more easily. This shifts the alignment burden from the tokenizer to the AR: the tokenizer's own features become less DINOv2-like while the AR's become more so, the opposite of diffusion-side recipes that make the latent itself semantic. GEAR speeds up ImageNet gFID convergence by up to 10x relative to the strong LlamaGen-REPA baseline, learns markedly better patch-level and spatially-coherent features, and generalizes across quantizers (VQVAE, LFQ, IBQ) and to text-to-image generation.