paper-with-me

홈 › Papers

Language Models Can See: Plugging Visual Controls in Text Generation

2022-05-05 · Yixuan Su, Tian Lan, Yahui Liu, Fangyu Liu, Dani Yogatama, Yan Wang, Lingpeng Kong, Nigel Collier

Generative language models (LMs) such as GPT-2/3 can be prompted to generate text with remarkable quality. While they are designed for text-prompted generation, it remains an open question how the generation process could be guided by modalities beyond text such as images. In this work, we propose a training-free framework, called MAGIC (iMAge-Guided text generatIon with CLIP), for plugging in visual controls in the generation process and enabling LMs to perform multimodal tasks (e.g., image captioning) in a zero-shot manner. MAGIC is a simple yet efficient plug-and-play framework, which directly combines an off-the-shelf LM (i.e., GPT-2) and an image-text matching model (i.e., CLIP) for image-grounded text generation. During decoding, MAGIC influences the generation of the LM by introducing a CLIP-induced score, called magic score, which regularizes the generated result to be semantically related to a given image while being coherent to the previously generated context. Notably, the proposed decoding scheme does not involve any gradient update operation, therefore being computationally efficient. On the challenging task of zero-shot image captioning, MAGIC outperforms the state-of-the-art method by notable margins with a nearly 27 times decoding speedup. MAGIC is a flexible framework and is theoretically compatible with any text generation tasks that incorporate image grounding. In the experiments, we showcase that it is also capable of performing visually grounded story generation given both an image and a text prompt.

📄 PDF Abstract BibTeX arXiv:2205.02655

Code (1)

yxuansu/magic 공식 구현 pytorch

Tasks

Image CaptioningImage-text matchingOpen-Ended Question AnsweringStory GenerationText GenerationText Matching

Similar Papers 제목 키워드 기반

Designing streetscapes from street-view imagery using diffusion models

2026-05-17 · Yuzhou Chen, Yuebing Liang, Lingqian Hu, Kailai Sun 외 arxiv

Street-view imagery (SVI) is widely used to quantify key indicators of urban environment, such as green- ery, sky, or road view indices. However, existing studies largely focus on measuring current streetscapes and rarel…

Scene Generation

UniControl: A Unified Diffusion Model for Controllable Visual Generation In the Wild

2023-05-18 · NeurIPS 2023 11 · Can Qin, Shu Zhang, Ning Yu, Yihao Feng 외

Achieving machine autonomy and human control often represent divergent objectives in the design of interactive AI systems. Visual generative foundation models such as Stable Diffusion show promise in navigating these goa…

Image Generation

A Data-Centric Framework for Composable NLP Workflows

2021-03-02 · EMNLP 2020 11 · Zhengzhong Liu, Guanxiong Ding, Avinash Bukkittu, Mansi Gupta 외

Empirical natural language processing (NLP) systems in application domains (e.g., healthcare, finance, education) involve interoperation among multiple components, ranging from data ingestion, human annotation, to text r…

RetrievalText Retrieval

DeFLOCNet: Deep Image Editing via Flexible Low-level Controls

2021-03-23 · CVPR 2021 1 · Hongyu Liu, Ziyu Wan, Wei Huang, Yibing Song 외

User-intended visual content fills the hole regions of an input image in the image editing scenario. The coarse low-level inputs, which typically consist of sparse sketch lines and color dots, convey user intentions for …

DecoderTexture Synthesis

ControlStyle: Text-Driven Stylized Image Generation Using Diffusion Priors

2023-11-09 · Jingwen Chen, Yingwei Pan, Ting Yao, Tao Mei

Recently, the multimedia community has witnessed the rise of diffusion models trained on large-scale multi-modal data for visual content creation, particularly in the field of text-to-image generation. In this paper, we …

Image GenerationStyle TransferText to Image GenerationText-to-Image Generation