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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Yu, Chengyue, Zang, Lei, Wang, Jiaotuan, Zhuang, Chenyi, Gu, Jinjie
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913272863653888
author Yu, Chengyue
Zang, Lei
Wang, Jiaotuan
Zhuang, Chenyi
Gu, Jinjie
author_facet Yu, Chengyue
Zang, Lei
Wang, Jiaotuan
Zhuang, Chenyi
Gu, Jinjie
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2401_03512
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle CharPoet: A Chinese Classical Poetry Generation System Based on Token-free LLM
Yu, Chengyue
Zang, Lei
Wang, Jiaotuan
Zhuang, Chenyi
Gu, Jinjie
Computation and Language
Artificial Intelligence
Machine Learning
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.
title CharPoet: A Chinese Classical Poetry Generation System Based on Token-free LLM
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2401.03512