English

Learning to Imagine: Visually-Augmented Natural Language Generation

Computation and Language 2023-06-16 v3

Abstract

People often imagine relevant scenes to aid in the writing process. In this work, we aim to utilize visual information for composition in the same manner as humans. We propose a method, LIVE, that makes pre-trained language models (PLMs) Learn to Imagine for Visuallyaugmented natural language gEneration. First, we imagine the scene based on the text: we use a diffusion model to synthesize high-quality images conditioned on the input texts. Second, we use CLIP to determine whether the text can evoke the imagination in a posterior way. Finally, our imagination is dynamic, and we conduct synthesis for each sentence rather than generate only one image for an entire paragraph. Technically, we propose a novel plug-and-play fusion layer to obtain visually-augmented representations for each text. Our vision-text fusion layer is compatible with Transformerbased architecture. We have conducted extensive experiments on four generation tasks using BART and T5, and the automatic results and human evaluation demonstrate the effectiveness of our proposed method. We will release the code, model, and data at the link: https://github.com/RUCAIBox/LIVE.

Keywords

Cite

@article{arxiv.2305.16944,
  title  = {Learning to Imagine: Visually-Augmented Natural Language Generation},
  author = {Tianyi Tang and Yushuo Chen and Yifan Du and Junyi Li and Wayne Xin Zhao and Ji-Rong Wen},
  journal= {arXiv preprint arXiv:2305.16944},
  year   = {2023}
}

Comments

Accepted by ACL 2023

R2 v1 2026-06-28T10:47:34.399Z