Saved in:
Bibliographic Details
Main Authors: Belouadi, Jonas, Eger, Steffen
Format: Preprint
Published: 2022
Subjects:
Online Access:https://arxiv.org/abs/2212.10474
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913251046981632
author Belouadi, Jonas
Eger, Steffen
author_facet Belouadi, Jonas
Eger, Steffen
contents State-of-the-art poetry generation systems are often complex. They either consist of task-specific model pipelines, incorporate prior knowledge in the form of manually created constraints, or both. In contrast, end-to-end models would not suffer from the overhead of having to model prior knowledge and could learn the nuances of poetry from data alone, reducing the degree of human supervision required. In this work, we investigate end-to-end poetry generation conditioned on styles such as rhyme, meter, and alliteration. We identify and address lack of training data and mismatching tokenization algorithms as possible limitations of past attempts. In particular, we successfully pre-train ByGPT5, a new token-free decoder-only language model, and fine-tune it on a large custom corpus of English and German quatrains annotated with our styles. We show that ByGPT5 outperforms other models such as mT5, ByT5, GPT-2 and ChatGPT, while also being more parameter efficient and performing favorably compared to humans. In addition, we analyze its runtime performance and demonstrate that it is not prone to memorization. We make our code, models, and datasets publicly available.
format Preprint
id arxiv_https___arxiv_org_abs_2212_10474
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle ByGPT5: End-to-End Style-conditioned Poetry Generation with Token-free Language Models
Belouadi, Jonas
Eger, Steffen
Computation and Language
State-of-the-art poetry generation systems are often complex. They either consist of task-specific model pipelines, incorporate prior knowledge in the form of manually created constraints, or both. In contrast, end-to-end models would not suffer from the overhead of having to model prior knowledge and could learn the nuances of poetry from data alone, reducing the degree of human supervision required. In this work, we investigate end-to-end poetry generation conditioned on styles such as rhyme, meter, and alliteration. We identify and address lack of training data and mismatching tokenization algorithms as possible limitations of past attempts. In particular, we successfully pre-train ByGPT5, a new token-free decoder-only language model, and fine-tune it on a large custom corpus of English and German quatrains annotated with our styles. We show that ByGPT5 outperforms other models such as mT5, ByT5, GPT-2 and ChatGPT, while also being more parameter efficient and performing favorably compared to humans. In addition, we analyze its runtime performance and demonstrate that it is not prone to memorization. We make our code, models, and datasets publicly available.
title ByGPT5: End-to-End Style-conditioned Poetry Generation with Token-free Language Models
topic Computation and Language
url https://arxiv.org/abs/2212.10474