Collocation2Text:俄语引导短语的可控文本生成
Collocation2Text: Controllable Text Generation from Guide Phrases in Russian
摘要:
大型预训练的语言模型能够生成各种流畅的文本。从提示开始,这些模型产生了一种可以不可预测地发展的叙事。现有的可控文本生成方法,即引导文本中的叙事在用户指定的方向,需要创建一个训练语料库和一个额外的耗时的训练过程。本文提出并研究了Collocation 2 Text,即插即用的自动可控文本生成方法在俄罗斯,它不需要微调。该方法是基于两个相互作用的模型:自回归语言ruGPT-3模型和自动编码语言ruRoBERTa模型。该方法的思想是根据自编码模型的输出分布来移动自回归模型的输出分布,以确保文本中的叙述向引导短语的连贯过渡,引导短语可以包含单个单词或搭配。自动编码模型能够考虑令牌的左上下文和右上下文,“告诉”自回归模型哪些令牌在当前生成步骤中是最合乎逻辑的和最不合乎逻辑的,从而增加或减少相应令牌的概率。使用该方法生成新闻文章的实验表明,它的有效性自动生成流畅的文本,其中包含用户指定的短语之间的连贯过渡。
英文摘要:
Large pre-trained language models are capable of generating varied and fluent texts. Starting from the prompt, these models generate a narrative that can develop unpredictably. The existing methods of controllable text generation, which guide the narrative in the text in the user-specified direction, require creating a training corpus and an additional time-consuming training procedure. The paper proposes and investigates Collocation2Text, a plug-and-play method for automatic controllable text generation in Russian, which does not require fine-tuning. The method is based on two interacting models: the autoregressive language ruGPT-3 model and the autoencoding language ruRoBERTa model. The idea of the method is to shift the output distribution of the autoregressive model according to the output distribution of the autoencoding model in order to ensure a coherent transition of the narrative in the text towards the guide phrase, which can contain single words or collocations. The autoencoding model, which is able to take into account the left and right contexts of the token, "tells" the autoregressive model which tokens are the most and least logical at the current generation step, increasing or decreasing the probabilities of the corresponding tokens. The experiments on generating news articles using the proposed method showed its effectiveness for automatically generated fluent texts which contain coherent transitions between user-specified phrases.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。