基于外部知识筛选的主题文本生成技术研究OA北大核心CSTPCD
Research on topic text generation technology based on external knowledge filtering
在自然语言生成任务中,主题文本生成是一项富有挑战性的工作,其主要难点在于:源信息量远小于目标生成的信息量.为了解决该问题,本文提出一个基于外部知识筛选的主题文本生成模型Trans-K,通过引入与主题词相关的外部知识来丰富源信息,进而提高生成文本的质量.本文为了解决引入外部知识的"一词多义"问题,提出一种基于线性变换的主题向量计算方法,用于筛选和主题词语义一致的外部知识;提出一种基于注意力机制的外部权重计算方法,为每个外部词设定一个主题权重,使其更贴合文本语义;为了解决主题词(含候选词)在生成文本中反复出现的问题,提出一种基于多头注意力机制的内部权重计算方法.在EASSY数据集上的实验表明,与基线相比,Trans-K生成文本质量的各项指标更优.此外,人类评估表明,该模型可生成与主题更相关、语言更连贯、且符合语义逻辑的文本.
In the natural language generation task,topic text generation is a challenging task,the main difficulty is that the amount of source information is much smaller than the amount of information gener-ated by the target.To solve this problem,this paper proposes a topic text generation model called Trans-K based on external knowledge filtering,which enriches the source information by introducing ex-ternal knowledge related to topic words,thereby improving the quality of the generated text.In this pa-per,in order to solve the"polysemy"problem of introducing external knowledge,a topic vector calcula-tion method based on linear transformation is proposed to filter external knowledge consistent with the semantics of the topic words.An external weight calculation method based on attention mechanism is proposed,which sets a topic weight for each external word to make it more suitable for text semantics.In order to solve the problem that topic words including candidate words,appear repeatedly in the gener-ated text,an internal weight calculation method based on the multi-head attention mechanism is pro-posed.Experiments on the EASSY dataset show that Trans-K is superior to various indicators of the quality of generated text compared to the baseline.In addition,human evaluations show that the model can generate more topic-relevant,linguistically coherent,and semantically logical's text.
王沛;杨频;程芃森;代金鞘;贾鹏
四川大学网络空间安全学院,成都 610065
计算机与自动化
自然语言生成主题文本生成TransformerHowNet知识增强
Natural language generationTopic text generationTransformerHowNetKnowledge en-hancement
《四川大学学报(自然科学版)》 2024 (001)
69-77 / 9
四川省科技厅重点研发项目(2021YFG0156)
评论