arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.00638cs.CLcs.AI
收藏

基于ODE的潜在空间可组合文本控制

Composable Text Controls in Latent Space with ODEs

CUHK-Shenzhen(香港中文大学(深圳));FNii, CUHK-Shenzhen(香港中文大学(深圳)未来智联网络研究院);UC San Diego(加州大学圣迭戈分校);MBZUAI(穆罕默德·本·扎耶德人工智能大学);Carnegie Mellon University(卡内基梅隆大学);DarkMatter AI Research(DarkMatter AI研究院);JD AI Research(京东人工智能研究院)

Guangyi Liu, Zeyu Feng, Yuan Gao, Zichao Yang, Xiaodan Liang, Junwei Bao, Xiaodong He, Shuguang Cui, Zhen Li, Zhiting Hu

AI总结:

针对文本控制操作组合成本高的问题,提出在文本潜在空间结合ODE与预训练LM实现可组合文本控制的高效方法,支持多种算子,在生成质量和效率上均优于现有方法。

摘要:

现实世界的文本应用通常涉及组合多种文本控制操作,例如针对某一属性编辑文本、操控关键词与结构,以及生成具备期望属性的新文本。现有工作通常学习或微调语言模型(LM)以执行单个或特定子集的操作。近期研究探索了以即插即用方式组合操作,但往往需要在复杂的序列空间中进行高成本的搜索或优化。本文提出了一种新的高效方法,在紧凑的文本潜在空间中实现可组合文本操作。文本潜在向量的低维性与可微性,使我们能够基于常微分方程(ODEs)开发高效采样器,适配任意插件算子(如属性分类器)。通过高效适配将预训练语言模型(如GPT2)连接到潜在空间,我们随后将采样得到的向量解码为期望的文本序列。这种灵活的方法支持多种控制算子(情感、时态、正式度、关键词等),这些算子可利用不同领域的任意相关数据习得。实验表明,在我们的方法中组合这些算子能够生成或编辑高质量文本,在生成质量和效率方面均大幅优于先前方法。

英文摘要:

Real-world text applications often involve composing a wide range of text control operations, such as editing the text w.r.t. an attribute, manipulating keywords and structure, and generating new text of desired properties. Prior work typically learns/finetunes a language model (LM) to perform individual or specific subsets of operations. Recent research has studied combining operations in a plug-and-play manner, often with costly search or optimization in the complex sequence space. This paper proposes a new efficient approach for composable text operations in the compact latent space of text. The low-dimensionality and differentiability of the text latent vector allow us to develop an efficient sampler based on ordinary differential equations (ODEs) given arbitrary plug-in operators (e.g., attribute classifiers). By connecting pretrained LMs (e.g., GPT2) to the latent space through efficient adaption, we then decode the sampled vectors into desired text sequences. The flexible approach permits diverse control operators (sentiment, tense, formality, keywords, etc.) acquired using any relevant data from different domains. Experiments show that composing those operators within our approach manages to generate or edit high-quality text, substantially improving over previous methods in terms of generation quality and efficiency.

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

↑