Abstract
We present Infinity, a Bitwise Visual AutoRegressive Modeling capable of generating high-resolution, photorealistic images following language instruction. Infinity refactors visual autoregressive model under a bitwise token prediction framework with an infinite-vocabulary classifier and bitwise self-correction mechanism. By theoretically expanding the tokenizer vocabulary size to infinity in Transformer, our method significantly unleashes powerful scaling capabilities to infinity compared to vanilla VAR. Extensive experiments indicate Infinity outperforms AutoRegressive Text-to-Image models by large margins, matches or surpasses leading diffusion models. Without extra optimization, Infinity generates a 1024x1024 image in 0.8s, 2.6x faster than SD3-Medium, making it the fastest Text-to-Image model.
1. Introduction
Autoregressive (AR) models, while successful in Large Language Models, face significant hurdles when applied to high-resolution image synthesis. Traditional approaches rely on discrete integer-index tokens from a fixed-size codebook. This leads to three major issues: quantization bottlenecks where fine details are lost, fuzzy supervision where small feature perturbations cause drastic label changes, and error accumulation where early mistakes propagate through the generation process.
Infinity addresses these challenges by shifting from an index-based system to a bitwise framework, enabling an "infinite" vocabulary and superior scaling properties.
2. Methodology
Infinity refactors the Visual AutoRegressive (VAR) framework into a bitwise pipeline through several key innovations:
- Bitwise Multi-scale Residual Quantizer: Instead of mapping patches to a single integer, Infinity uses Binary Spherical Quantization (BSQ) to map them to a sequence of binary bits. This allows the model to handle massive vocabularies (e.g., $2^{64}$) without the memory overhead of a physical codebook.
- Infinite-Vocabulary Classifier (IVC): Rather than a massive softmax layer, the IVC uses parallel binary classifiers to predict bits. This approach is 99.95% more parameter-efficient than conventional classifiers for large vocabularies.
- Bitwise Self-Correction: To mitigate error accumulation, the model is trained by intentionally injecting noise (flipping bits). The model then learns to "re-quantize" and correct these errors in subsequent scales, as shown in the architecture diagram below.
3. Experimental Results
Infinity was trained on a curated dataset of over 100 million images, filtered for aesthetic quality and low text density.
3.1 Performance and Speed
Infinity-2B generates a 1024x1024 image in just 0.8 seconds, making it 2.6x faster than SD3-Medium and 7x faster than SD3.5 (8B). Despite this speed, it maintains high quality, achieving a GenEval score of 0.73, which surpasses SDXL (0.55) and matches DALL-E 3 (0.67).
3.2 Qualitative Synthesis
The model demonstrates exceptional photorealism, complex spatial reasoning, and text rendering capabilities. The bitwise supervision signal provides a clearer learning path, allowing the model to capture fine details that traditional index-based AR models often miss.
4. Conclusion and Future Work
By adopting a bitwise paradigm, Infinity overcomes the resolution and speed bottlenecks of traditional autoregressive modeling. The strong correlation between validation loss and downstream performance suggests that Infinity is highly scalable. Future research will focus on extending this bitwise framework to video generation, where efficient, self-correcting modeling is even more critical.
Summary updated