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

CharPoet:基于无token LLM的中文古典诗歌生成系统

CharPoet: A Chinese Classical Poetry Generation System Based on Token-free LLM

Ant Group(蚂蚁集团)

Chengyue Yu, Lei Zang, Jiaotuan Wang, Chenyi Zhuang, Jinjie Gu

AI总结:

提出基于无token LLM的中文古典诗歌生成系统CharPoet,通过逐字符生成实现格式与内容精确控制,格式准确率超0.96,优于现有系统。

摘要:

自动中文古典诗歌生成引起了广泛的研究兴趣,但同时实现对格式和内容的有效控制仍然具有挑战性。传统系统通常接受关键词作为用户输入,导致对内容的控制有限。大型语言模型(LLM)通过允许不受限制的用户指令来改善内容控制,但逐token生成过程经常出现格式错误。受此启发,我们提出了CharPoet,一个基于无token LLM的中文古典诗歌生成系统,它提供了对格式和内容的有效控制。我们的无token架构以逐字符的方式生成,能够精确控制字符数量。CharPoet从现有的基于token的LLM中剪枝而来,继承了它们的预训练能力,并且可以按照诸如“为我母亲的生日写一首诗”这样的指令生成诗歌。CharPoet的格式准确率高于0.96,优于Jiuge-GPT-2(0.91)和GPT-4(0.38)。在内容质量方面,CharPoet超越了包括Jiuge在内的传统系统,并与其他LLM相当。我们的系统是开源的,可在https://modelscope.cn/models/CharPoet/CharPoet获取。CharPoet的视频演示可在https://youtu.be/voZ25qEp3Dc观看。

英文摘要:

Automatic Chinese classical poetry generation has attracted much research interest, but achieving effective control over format and content simultaneously remains challenging. Traditional systems usually accept keywords as user inputs, resulting in limited control over content. Large language models (LLMs) improve content control by allowing unrestricted user instructions, but the token-by-token generation process frequently makes format errors. Motivated by this, we propose CharPoet, a Chinese classical poetry generation system based on token-free LLM, which provides effective control over both format and content. Our token-free architecture generates in a character-by-character manner, enabling precise control over the number of characters. Pruned from existing token-based LLMs, CharPoet inherits their pretrained capabilities and can generate poetry following instructions like "Write me a poem for my mother's birthday." CharPoet achieves format accuracy above 0.96, outperforming Jiuge-GPT-2 (0.91) and GPT-4 (0.38). In terms of content quality, CharPoet surpasses traditional systems including Jiuge, and is comparable to other LLMs. Our system is open source and available at https://modelscope.cn/models/CharPoet/CharPoet. A video demonstration of CharPoet is available at https://youtu.be/voZ25qEp3Dc.

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

↑