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

利用多模态语言模型生成图像

Generating Images with Multimodal Language Models

Carnegie Mellon University(卡内基梅隆大学)

Jing Yu Koh, Daniel Fried, Ruslan Salakhutdinov

AI总结:

我们提出一种融合冻结文本LLM与图像编解码器的方法,通过映射网络实现图像生成、检索及多模态对话,首个支持交错输入,性能优于基线模型。

摘要:

我们提出了一种方法,通过映射嵌入空间,将冻结的纯文本大型语言模型(LLMs)与预训练的图像编码器和解码器模型融合。我们的模型展示了广泛的多模态能力:图像检索、新颖图像生成和多模态对话。我们是首个能够基于任意交错的图像和文本输入,生成连贯图像(和文本)输出的方法。为了在图像生成上取得强性能,我们提出了一种高效的映射网络,将LLM接地到现成的文本到图像生成模型。该映射网络将文本的隐藏表示转换为视觉模型的嵌入空间,使我们能够利用LLM强大的文本表示来生成视觉输出。我们的方法在更长、更复杂的语言任务上优于基线生成模型。除了新颖图像生成,我们的模型还能从预指定数据集中进行图像检索,并在推理时决定是检索还是生成。这是通过一个学习到的决策模块实现的,该模块基于LLM的隐藏表示进行条件判断。与先前的多模态语言模型相比,我们的模型展现出更广泛的能力。它可以处理图像和文本输入,并产生检索到的图像、生成的图像和生成的文本——在多个衡量上下文依赖性的文本到图像任务上,优于非基于LLM的生成模型。

英文摘要:

We propose a method to fuse frozen text-only large language models (LLMs) with pre-trained image encoder and decoder models, by mapping between their embedding spaces. Our model demonstrates a wide suite of multimodal capabilities: image retrieval, novel image generation, and multimodal dialogue. Ours is the first approach capable of conditioning on arbitrarily interleaved image and text inputs to generate coherent image (and text) outputs. To achieve strong performance on image generation, we propose an efficient mapping network to ground the LLM to an off-the-shelf text-to-image generation model. This mapping network translates hidden representations of text into the embedding space of the visual models, enabling us to leverage the strong text representations of the LLM for visual outputs. Our approach outperforms baseline generation models on tasks with longer and more complex language. In addition to novel image generation, our model is also capable of image retrieval from a prespecified dataset, and decides whether to retrieve or generate at inference time. This is done with a learnt decision module which conditions on the hidden representations of the LLM. Our model exhibits a wider range of capabilities compared to prior multimodal language models. It can process image-and-text inputs, and produce retrieved images, generated images, and generated text -- outperforming non-LLM based generation models across several text-to-image tasks that measure context dependence.

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

↑