Abstract
GEAR trains a vector-quantized tokenizer and autoregressive generator jointly end-to-end using representation alignment, overcoming non-differentiability issues through a dual read-out approach that improves convergence speed and feature quality.
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.
Community
๐ Paper: https://arxiv.org/abs/2606.32039
๐ป Code: https://github.com/Tencent-Hunyuan/GEAR
๐ค Models: https://huggingface.co/collections/BinLin203
๐ Homepage: https://linb203.github.io/gear
[1/6] ๐จ Stop freezing your tokenizers! Visual Autoregressive (AR) models are stuck in the 2-stage era. We present GEAR โ๏ธ (Guided End-to-End AutoRegression). By jointly training the VQ tokenizer & AR generator, we achieve up to 10x faster convergence than strong baselines like LlamaGen-REPA! ๐งต๐
[2/6] ๐ง The Bottleneck & The Solution Why is end-to-end discrete AR so hard? The non-differentiable argmax! Naive Straight-Through Estimator (STE) causes the codebook to collapse. ๐ฅ GEAR solves this with a brilliant Dual Read-out mechanism: 1๏ธโฃ Hard branch: Trains AR with next-token prediction. 2๏ธโฃ Soft branch: A differentiable path carrying alignment loss back to guide only the tokenizer.
[3/6] ๐คฏ The Mind-Blowing Finding (Representation Shift) Here is the most surprising part: Unlike diffusion models (where end-to-end training makes latents more semantic), GEAR does the exact OPPOSITE! The tokenizer becomes less DINOv2-like, reorganizing for pure predictability (lower entropy). The semantic alignment burden shifts entirely to the AR model's hidden states!
[6/6] ๐ฎ The Future of Visual AR Despite the reconstruction ceiling of discrete tokens, end-to-end VQ-AR is the key to unified, long-context generation. GEAR paves the way for applying LLM-style alignment (RLHF, DPO) directly to visual tokens! Dive into the paper and code below: ๐
๐ Paper: https://arxiv.org/abs/2606.32039
๐ป Code: https://github.com/Tencent-Hunyuan/GEAR
๐ค Models: https://huggingface.co/collections/BinLin203
Visual generative models typically suffer from decoupled two-stage training. GEAR solves this by enabling end-to-end joint training of a tokenizer and an AR generator. It overcomes the non-differentiability of discrete tokens via a dual read-out mechanism: a hard branch for AR prediction and a soft branch to pass gradients back to the tokenizer. This shifts the semantic alignment burden to the AR model, guiding the tokenizer to produce easily predictable indices. Consequently, GEAR accelerates convergence by up to 10x, improves spatial feature coherence, and demonstrates strong generalization across different quantizers (VQVAE, LFQ, IBQ) and text-to-image (T2I) generation.
Get this paper in your agent:
hf papers read 2606.32039 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 6
BinLin203/Warmup-IBQ
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper





