arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.08459cs.CLcs.CVcs.LG
收藏

JPEG-LM:基于标准编解码器表示的LLM图像生成器

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

University of Washington(华盛顿大学);FAIR at Meta(Meta FAIR)

Xiaochuang Han, Marjan Ghazvininejad, Pang Wei Koh, Yulia Tsvetkov

AI总结:

提出JPEG-LM,利用标准编解码器(如JPEG)将图像表示为压缩文件字节,直接以自回归方式生成,无需像素建模或向量量化,在FID上比基线降低31%,并擅长长尾视觉元素,降低语言与视觉生成间的壁垒。

摘要:

近期在图像和视频生成领域的工作开始采用自回归LLM架构,因其通用性及可能易于集成到多模态系统中。将语言生成中的自回归训练应用于视觉生成的关键在于离散化——将图像和视频等连续数据表示为离散标记。常见的图像和视频离散化方法包括对原始像素值建模(这种方法长度过长)或向量量化(需要复杂的预训练)。在这项工作中,我们提出直接通过标准编解码器(如JPEG、AVC/H.264)将图像和视频建模为计算机上保存的压缩文件。使用默认的Llama架构,不做任何针对视觉的修改,我们从零开始预训练JPEG-LM以生成图像(以及AVC-LM作为概念验证生成视频),直接输出JPEG和AVC格式的压缩文件字节。图像生成的评估表明,这种简单直接的方法比基于像素的建模和复杂的向量量化基线更有效(我们的方法在FID上实现了31%的降低)。我们的分析表明,JPEG-LM在生成长尾视觉元素方面比向量量化模型具有特别优势。总体而言,我们展示了使用标准编解码器表示有助于降低语言生成与视觉生成之间的障碍,促进未来多模态语言/图像/视频LLM的研究。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑