arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.07359cs.CL
收藏

基于On-the-Fly表示优化的文本修正

Text Revision by On-the-Fly Representation Optimization

The Chinese University of Hong Kong(香港中文大学);Mila;McGill University(麦吉尔大学);Microsoft Research Asia(微软亚洲研究院)

Jingjing Li, Zichao Li, Tao Ge, Irwin King, Michael R. Lyu

摘要:

文本修改是指一类自然语言生成任务,其中源序列和目标序列在表面形式上具有适度的相似性,但在属性上存在差异,例如文本的正式性和简单性。目前最先进的方法将这些任务表述为序列到序列的学习问题,这依赖于大规模的并行训练语料库。在本文中,我们提出了一个迭代的就地编辑方法的文本修订,它不需要并行数据。在这种方法中,我们简单地使用掩码语言建模和属性分类来微调预训练的Transformer。在推理过程中,每次迭代的编辑都是通过两步跨度替换来实现的。在第一步,文本的分布式表示朝着属性函数动态优化。在第二步,一个文本跨度被掩盖,并提出另一个新的条件下的优化表示。对文本形式化和文本简化这两个典型的文本修改任务的实验表明了该方法的有效性。它在文本简化方面比最先进的监督方法具有竞争力甚至更好的性能,并且在文本形式化\footnote{Code and model are available at \url{https://github.com/jingjingli01/OREO}}方面比强无监督方法具有更好的性能。

英文摘要:

Text revision refers to a family of natural language generation tasks, where the source and target sequences share moderate resemblance in surface form but differentiate in attributes, such as text formality and simplicity. Current state-of-the-art methods formulate these tasks as sequence-to-sequence learning problems, which rely on large-scale parallel training corpus. In this paper, we present an iterative in-place editing approach for text revision, which requires no parallel data. In this approach, we simply fine-tune a pre-trained Transformer with masked language modeling and attribute classification. During inference, the editing at each iteration is realized by two-step span replacement. At the first step, the distributed representation of the text optimizes on the fly towards an attribute function. At the second step, a text span is masked and another new one is proposed conditioned on the optimized representation. The empirical experiments on two typical and important text revision tasks, text formalization and text simplification, show the effectiveness of our approach. It achieves competitive and even better performance than state-of-the-art supervised methods on text simplification, and gains better performance than strong unsupervised methods on text formalization \footnote{Code and model are available at \url{https://github.com/jingjingli01/OREO}}.

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

↑