Infinity
RepositoryFree[CVPR 2025 Oral]Infinity ∞ : Scaling Bitwise AutoRegressive Modeling for High-Resolution Image Synthesis
Capabilities13 decomposed
bitwise autoregressive image token prediction with infinite vocabulary scaling
Medium confidencePredicts image tokens bit-by-bit rather than from a fixed vocabulary, enabling effective vocabulary scaling from 2^16 to 2^64 through sequential binary predictions. The Infinity Transformer autoregressively generates each bit position across the entire image sequentially, allowing the model to scale token representation without discrete vocabulary limits. This approach replaces traditional discrete token prediction with continuous bitwise decomposition, fundamentally changing how visual information is encoded and generated.
Replaces fixed-vocabulary token prediction with bitwise decomposition, enabling vocabulary scaling to 2^64 without discrete bottlenecks. Unlike diffusion models that denoise from noise, Infinity builds images token-by-token through sequential bit prediction, fundamentally different from both traditional autoregressive (GPT-style) and diffusion approaches.
Avoids vocabulary ceiling limitations of discrete-token autoregressive models and eliminates the iterative denoising steps of diffusion models, achieving competitive quality at 1024×1024 with a single forward pass per token.
text-conditioned image generation with t5 text encoder integration
Medium confidenceEncodes natural language text prompts using Flan-T5 embeddings and conditions the Infinity Transformer on these embeddings to guide image generation. The text encoder processes prompts into high-dimensional embeddings that are injected into the transformer's cross-attention layers, allowing semantic alignment between text descriptions and generated visual content. This conditioning mechanism enables fine-grained control over image content through natural language descriptions.
Uses Flan-T5 as the text encoder rather than CLIP or custom encoders, providing strong semantic understanding through instruction-tuned embeddings. This choice prioritizes semantic fidelity over vision-language alignment, enabling more precise text-to-image correspondence.
Flan-T5 instruction-tuning provides better semantic understanding of complex prompts compared to CLIP's vision-language alignment, resulting in more accurate image generation for descriptive or compositional prompts.
dataset preparation and image-text pair loading with flexible format support
Medium confidenceProvides utilities for loading and preprocessing image-text datasets in multiple formats (directory-based, JSON metadata, COCO format) and converting them to the format required by Infinity's training pipeline. The data loading pipeline handles image resizing, normalization, text tokenization, and batching with configurable preprocessing options. Support for multiple dataset formats enables training on diverse publicly available datasets.
Implements dataset loading with automatic image tokenization using the Infinity VAE, eliminating separate preprocessing steps. Supports multiple metadata formats without requiring format conversion.
Integrated tokenization reduces preprocessing overhead compared to separate tokenization pipelines, and support for multiple formats eliminates format conversion steps.
bitwise self-correction mechanism for iterative quality improvement
Medium confidenceImplements a self-correction mechanism that refines generated images by iteratively predicting and correcting individual bits based on previous predictions and quality feedback. The mechanism allows the model to revise earlier predictions when inconsistencies are detected, improving overall image coherence and quality. This approach leverages the bitwise prediction structure to enable fine-grained refinement without full image regeneration.
Leverages bitwise prediction structure to enable fine-grained self-correction at the bit level, allowing targeted refinement of specific image regions without full regeneration. This is unique to bitwise autoregressive approaches and not feasible in token-level or diffusion models.
Enables iterative quality improvement without full image regeneration, reducing latency overhead compared to regenerating entire images. Bitwise granularity provides finer control than token-level refinement.
model architecture configuration and hyperparameter management
Medium confidenceProvides a configuration system for specifying Infinity Transformer architecture parameters (depth, embedding dimension, number of attention heads, feed-forward dimension) and training hyperparameters (learning rate, batch size, warmup steps, weight decay). Configuration can be specified via JSON files, command-line arguments, or Python dicts, enabling reproducible model instantiation and training. The configuration system validates parameters and provides sensible defaults.
Provides unified configuration for bitwise autoregressive transformer architecture, including vocabulary size and bit-depth parameters not present in standard transformers. Configuration system includes validation for bitwise-specific constraints.
Centralized configuration management eliminates scattered hyperparameters across code, improving reproducibility compared to hardcoded values.
visual tokenization with variable-resolution vae supporting 2^16 to 2^64 vocabulary sizes
Medium confidenceConverts images to discrete tokens and reconstructs images from tokens using a visual autoencoder (VAE) that supports configurable vocabulary sizes from 2^16 to 2^64. The VAE encodes images into a latent space with adjustable quantization levels, enabling trade-offs between reconstruction fidelity and token sequence length. Different vocabulary sizes (16-bit, 32-bit, 64-bit) allow users to balance image quality against computational cost and sequence length.
Supports variable vocabulary sizes (2^16 to 2^64) through configurable quantization, enabling dynamic quality-latency trade-offs. Unlike fixed-vocabulary tokenizers (e.g., VQ-VAE with 8192 tokens), Infinity's VAE can scale vocabulary exponentially without retraining, adapting to different deployment constraints.
Provides 4-8× more vocabulary flexibility than fixed-vocabulary tokenizers, enabling fine-grained control over reconstruction quality and sequence length without model retraining.
autoregressive image generation with configurable sampling strategies and temperature control
Medium confidenceGenerates images token-by-token using the Infinity Transformer with configurable sampling strategies (greedy, top-k, top-p) and temperature parameters to control output diversity and quality. The generation process iteratively predicts the next token conditioned on previously generated tokens and text embeddings, allowing fine-grained control over the generation process through hyperparameters. Temperature scaling adjusts the probability distribution over predicted tokens, enabling trade-offs between deterministic high-quality outputs and diverse creative variations.
Implements bitwise token prediction with configurable sampling, allowing fine-grained control over generation diversity at the bit level rather than token level. This enables more granular quality-diversity trade-offs than traditional token-level sampling in discrete autoregressive models.
Bitwise sampling provides finer-grained control over output diversity compared to token-level sampling in GPT-style models, and avoids the stochasticity of diffusion model sampling schedules.
batch image generation with parallel processing and memory optimization
Medium confidenceGenerates multiple images in parallel using batch processing with optimized memory allocation and GPU utilization. The inference pipeline supports configurable batch sizes and implements gradient checkpointing and mixed-precision computation to reduce memory footprint while maintaining generation quality. Batch processing enables efficient throughput for applications requiring multiple image generations.
Implements gradient checkpointing and mixed-precision (FP16) computation specifically for bitwise token prediction, reducing memory overhead compared to full-precision inference while maintaining numerical stability in bit-level predictions.
Achieves 2-4× better memory efficiency than naive batching through gradient checkpointing, enabling larger batch sizes on constrained hardware compared to standard transformer inference.
model checkpoint loading and weight management with multiple model sizes
Medium confidenceLoads pre-trained Infinity Transformer weights from checkpoint files and manages model initialization for different model sizes (2B, 8B, 20B). The checkpoint system stores model architecture configuration, weights, and optimizer state, enabling reproducible model loading and fine-tuning. Support for multiple model sizes allows users to select appropriate model capacity based on quality requirements and computational constraints.
Manages checkpoints for bitwise autoregressive models with configurable vocabulary sizes, requiring specialized serialization for bit-level prediction weights. Unlike standard transformer checkpoints, Infinity checkpoints include VAE and text encoder weights as a unified package.
Unified checkpoint format includes all three components (transformer, VAE, text encoder) in a single file, simplifying deployment compared to managing separate model files.
fid score calculation and image quality evaluation metrics
Medium confidenceComputes Fréchet Inception Distance (FID) scores and other quality metrics to evaluate generated image quality against reference datasets. The evaluation pipeline extracts features from generated and reference images using a pre-trained Inception network, computes statistical distances, and generates quality reports. FID scoring enables quantitative comparison of model performance across different configurations and training iterations.
Implements FID scoring specifically for bitwise autoregressive image generation, with support for evaluating images at variable resolutions and vocabulary sizes. Includes utilities for comparing quality across different model configurations.
Provides integrated FID evaluation pipeline within the Infinity framework, eliminating need for external evaluation tools and ensuring consistent evaluation methodology.
interactive notebook-based image generation with parameter exploration
Medium confidenceProvides Jupyter notebook interfaces (interactive_infer_8b.ipynb, interactive_infer.ipynb) for interactive image generation with real-time parameter adjustment and visualization. The notebooks enable users to modify prompts, temperature, sampling strategy, and other hyperparameters and immediately observe results without command-line usage. This interface supports iterative refinement and exploration of the model's capabilities.
Provides pre-configured notebooks with integrated visualization and parameter controls, eliminating setup overhead for users unfamiliar with the codebase. Notebooks include helper functions for batch generation and quality visualization.
Lower barrier to entry compared to command-line tools; enables non-technical users to explore model capabilities without scripting knowledge.
command-line inference interface with customizable generation parameters
Medium confidenceProvides a command-line tool (run_infinity.py) for image generation with customizable parameters including prompt, model path, batch size, sampling strategy, and output directory. The CLI interface enables scripted image generation, batch processing, and integration with external workflows without notebook dependencies. Command-line arguments allow fine-grained control over all generation parameters.
Implements a minimal but complete CLI interface supporting all core generation parameters, with sensible defaults enabling single-command image generation. Designed for integration into shell scripts and automation workflows.
Simpler and more portable than notebook-based interfaces for production use; enables easy integration into existing shell-based workflows and CI/CD pipelines.
training pipeline with distributed data loading and gradient accumulation
Medium confidenceImplements a complete training pipeline for fine-tuning or training Infinity models from scratch, including distributed data loading, gradient accumulation, mixed-precision training, and checkpoint saving. The training loop coordinates text encoding, image tokenization, and transformer training with configurable learning rates, batch sizes, and optimization strategies. Support for gradient accumulation enables effective training with larger effective batch sizes on memory-constrained hardware.
Implements training specifically for bitwise autoregressive models, with custom loss functions for bit-level prediction and specialized data loading for variable-resolution images. Gradient accumulation enables effective batch sizes larger than GPU memory allows.
Gradient accumulation support enables training on consumer GPUs (24GB) that would otherwise require enterprise hardware, reducing training cost by 50-70% compared to naive batching.
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with Infinity, ranked by overlap. Discovered automatically through the match graph.
Imagen
Imagen by Google is a text-to-image diffusion model with an unprecedented degree of photorealism and a deep level of language understanding.
CogView
Text-to-Image generation. The repo for NeurIPS 2021 paper "CogView: Mastering Text-to-Image Generation via Transformers".
Scaling Autoregressive Multi-Modal Models: Pretraining and Instruction Tuning (CM3Leon)
* ⏫ 07/2023: [Meta-Transformer: A Unified Framework for Multimodal Learning (Meta-Transformer)](https://arxiv.org/abs/2307.10802)
stable-diffusion-3.5-large
stable-diffusion-3.5-large — AI demo on HuggingFace
trocr-large-handwritten
image-to-text model by undefined. 2,15,807 downloads.
DALLE-pytorch
Implementation / replication of DALL-E, OpenAI's Text to Image Transformer, in Pytorch
Best For
- ✓researchers building next-generation image synthesis models
- ✓teams implementing high-resolution text-to-image systems
- ✓developers exploring alternatives to diffusion-based image generation
- ✓product teams building user-facing image generation interfaces
- ✓content creators needing semantic control over generated visuals
- ✓applications requiring text-image alignment validation
- ✓teams preparing datasets for model training
- ✓researchers working with public datasets (COCO, Conceptual Captions, etc.)
Known Limitations
- ⚠Bitwise prediction requires sequential generation of multiple bits per token, increasing inference latency compared to single-token prediction approaches
- ⚠No built-in support for conditional image editing or inpainting — designed primarily for unconditional generation from text
- ⚠Requires substantial GPU memory for 8B+ model inference; 2B model needs minimum 16GB VRAM for batch generation
- ⚠T5 encoder adds ~500ms latency per prompt encoding on CPU; GPU acceleration recommended
- ⚠Prompt quality directly impacts output quality — vague or contradictory descriptions produce inconsistent results
- ⚠No multi-modal input support — only text prompts, no image-to-image conditioning or style transfer
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Repository Details
Last commit: Apr 16, 2026
About
[CVPR 2025 Oral]Infinity ∞ : Scaling Bitwise AutoRegressive Modeling for High-Resolution Image Synthesis
Categories
Alternatives to Infinity
Are you the builder of Infinity?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →