JPEG-LM: LLMs as Image Generators with Canonical Codec Representations
Not on the map. Why?
Abstract (arXiv)
Recent work in image and video generation has been adopting the autoregressive LLM architecture due to its generality and potentially easy integration into multi-modal systems. The crux of applying autoregressive training in language generation to visual generation is discretization -- representing continuous data like images and videos as discrete tokens. Common methods of discretizing images and videos include modeling raw pixel values, which are prohibitively lengthy, or vector quantization, which requires convoluted pre-hoc training. In this work, we propose to directly model images and videos as compressed files saved on computers via canonical codecs (e.g., JPEG, AVC/H.264). Using the default Llama architecture without any vision-specific modifications, we pretrain JPEG-LM from scratch to generate images (and AVC-LM to generate videos as a proof of concept), by directly outputting compressed file bytes in JPEG and AVC formats. Evaluation of image generation shows that this simple and straightforward approach is more effective than pixel-based modeling and sophisticated vector quantization baselines (on which our method yields a 31% reduction in FID). Our analysis shows that JPEG-LM has an especial advantage over vector quantization models in generating long-tail visual elements. Overall, we show that using canonical codec representations can help lower the barriers between language generation and visual generation, facilitating future research on multi-modal language/image/video LLMs.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 31 of its 53 references that are in the map. First posted on arXiv 15 Aug 2024.
Builds on
31 of 53 references.
References · 31
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Visual Instruction Tuningcited by 7,792
- 2017Neural Discrete Representation Learningcited by 4,650
- 2021Zero-Shot Text-to-Image Generationcited by 4,276
- 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,067
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2022Video Diffusion Modelscited by 2,280
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 702
- 2023A Watermark for Large Language Modelscited by 667
19 more
- 2021Vector-quantized Image Modeling with Improved VQGANcited by 656
- 2021VideoGPT: Video Generation using VQ-VAE and Transformerscited by 651
- 2023Language Model Beats Diffusion -- Tokenizer is Key to Visual Generationcited by 633
- 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 466
- 2023Finite Scalar Quantization: VQ-VAE Made Simplecited by 425
- 2023Unified-IO 2: Scaling Autoregressive Multimodal Models with Vision, Language, Audio, and Actioncited by 301
- 2017GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibriumcited by 208
- 2024World Model on Million-Length Video And Language With Blockwise RingAttentioncited by 196
- 2023Small-scale proxies for large-scale Transformer training instabilitiescited by 182
- 2024Scalable High-Resolution Pixel-Space Image Synthesis with Hourglass Diffusion Transformerscited by 116
- 2024Scalable Pre-training of Large Autoregressive Image Modelscited by 115
- 2023Matryoshka Diffusion Modelscited by 70
- 2022Improved Vector Quantized Diffusion Modelscited by 62
- 2022JPEG Artifact Correction using Denoising Diffusion Restoration Modelscited by 45
- 2024Beyond Language Models: Byte Models are Digital World Simulatorscited by 21
- 2023Bytes Are All You Need: Transformers Operating Directly On File Bytescited by 16
- 2024Training LLMs over Neurally Compressed Textcited by 16
- 2019Toward Joint Image Generation and Compression using Generative Adversarial Networkscited by 4
- 2024Compressed-Language Models for Understanding Compressed File Formats: a JPEG Explorationcited by 4
Built on by
Citing papers per year: 2024: 1; 2025: 0; 2026: 2.
3 papers.