LLM-based multi-agent poetry generation in non-cooperative environments

Ran Zhang, Steffen Eger
9/5/2024
cs.CL

No official code found. Best implementation: zhangr2021/Multiagent_poetry (1 star, last commit 2025-07-10).

Abstract

Despite substantial progress of large language models (LLMs) for automatic poetry generation, the generated poetry lacks diversity while the training process differs greatly from human learning. Under the rationale that the learning process of the poetry generation systems should be more human-like and their output more diverse and novel, we introduce a framework based on social learning where we emphasize non-cooperative interactions besides cooperative interactions to encourage diversity. Our experiments are the first attempt at LLM-based multi-agent systems in non-cooperative environments for poetry generation employing both TRAINING-BASED agents (GPT-2) and PROMPTING-BASED agents (GPT-3 and GPT-4). Our evaluation based on 96k generated poems shows that our framework benefits the poetry generation process for TRAINING-BASED agents resulting in 1) a 3.0-3.7 percentage point (pp) increase in diversity and a 5.6-11.3 pp increase in novelty according to distinct and novel n-grams. The generated poetry from TRAINING-BASED agents also exhibits group divergence in terms of lexicons, styles and semantics. PROMPTING-BASED agents in our framework also benefit from non-cooperative environments and a more diverse ensemble of models with non-homogeneous agents has the potential to further enhance diversity, with an increase of 7.0-17.5 pp according to our experiments. However, PROMPTING-BASED agents show a decrease in lexical diversity over time and do not exhibit the group-based divergence intended in the social network. Our paper argues for a paradigm shift in creative tasks such as automatic poetry generation to include social learning processes (via LLM-based agent modeling) similar to human interaction.

View on arXivView PDF

Code Implementations(1)

10PythonJan 2, 20241 years ago

Similar Papers

Cite this paper

@article{zhang2024llmbased,
  title  = {LLM-based multi-agent poetry generation in non-cooperative environments},
  author = {Ran Zhang and Steffen Eger},
  year   = {2024},
  eprint = {2409.03659},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.03659v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.03659.svg)](https://codeofpaper.com/paper/2409.03659)

Discussion