arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.15723cs.CLcs.AIcs.LG
收藏

SP-GPT2:越南诗歌生成中的语义学改进

SP-GPT2: Semantics Improvement in Vietnamese Poetry Generation

National Economics University(国民经济大学);The University of Tokyo(东京大学);Hanoi University of Science and Technology(河内科技大学)

Tuan Nguyen, Hanh Pham, Truong Bui, Tan Nguyen, Duc Luong, Phong Nguyen

摘要:

近年来,自动文本生成作为计算机创造力的重要一步越来越受到关注。生成式预训练Transformer 2(GPT 2)是最先进的方法之一,取得了很大的成功。在本文中,我们采取了第一步,以调查GPT 2在越南传统诗歌生成的力量。在早期,我们使用基本GPT 2的实验在正确的模板中生成诗歌方面做得很好。虽然它可以从训练数据中学习模式,包括押韵和音调规则,但与几乎所有其他文本生成方法一样,生成的诗歌仍然存在主题漂移和语义不一致。为了提高诗歌内部的衔接,我们提出了一个新的模型SP-GPT 2(语义诗GPT 2),它是建立在顶部的GPT 2模型和一个额外的损失,以约束整个诗歌的上下文。为了更好的评价,我们研究了自动定量评价和人工评价的方法。自动和人工评估都表明,我们的方法可以生成具有更好的内聚性的诗歌,而不会由于额外的损失而失去质量。同时,我们也是这一课题的先行者。我们发布了第一个计算评分模块,用于在包含风格规则字典的模板中生成的诗歌。此外,我们还率先发布了Luc-Bat数据集,其中包括87609首Luc Bat诗歌,相当于约260万个句子,另外还发布了约83579首其他风格的诗歌,以供进一步探索。代码可在https://github.com/fsoft-ailab/Poem-Generator上获得

英文摘要:

Automatic text generation has garnered growing attention in recent years as an essential step towards computer creativity. Generative Pretraining Transformer 2 (GPT2) is one of the state of the art approaches that have excellent successes. In this paper, we took the first step to investigate the power of GPT2 in traditional Vietnamese poetry generation. In the earlier time, our experiment with base GPT2 was quite good at generating the poem in the proper template. Though it can learn the patterns, including rhyme and tone rules, from the training data, like almost all other text generation approaches, the poems generated still has a topic drift and semantic inconsistency. To improve the cohesion within the poems, we proposed a new model SP-GPT2 (semantic poem GPT2) which was built on the top GPT2 model and an additional loss to constrain context throughout the entire poem. For better evaluation, we examined the methods by both automatic quantitative evaluation and human evaluation. Both automatic and human evaluation demonstrated that our approach can generate poems that have better cohesion without losing the quality due to additional loss. At the same time, we are the pioneers of this topic. We released the first computational scoring module for poems generated in the template containing the style rule dictionary. Additionally, we are the first to publish a Luc-Bat dataset, including 87609 Luc Bat poems, which is equivalent to about 2.6 million sentences, combined with about 83579 poems in other styles was also published for further exploration. The code is available at https://github.com/fsoft-ailab/Poem-Generator

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

↑