CLCVLGAug 15, 2024

JPEG-LM: LLMs as Image Generators with Canonical Codec Representations

arXiv:2408.08459v26 citationsh-index: 30
AI Analysis

This work addresses the challenge of integrating visual generation into multi-modal LLM systems, offering a simpler alternative to existing discretization methods, though it appears incremental by building on autoregressive architectures with a new representation.

The paper tackled the problem of applying autoregressive LLM architectures to image and video generation by discretizing continuous visual data, proposing to model images and videos directly as compressed files in formats like JPEG and AVC. The result showed that this approach is more effective than pixel-based and vector quantization baselines, yielding a 31% reduction in FID and better generation of long-tail visual elements.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes