Instruction-Guided Poetry Generation in Arabic and Its Dialects

Abdelrahman Sadallah, Kareem Elozeiri, Mervat Abassy, Rania Elbadry, Mohamed Anwar +3 more
4/30/2026
1 citation
cs.CLcs.AI

Official code: mbzuai-nlp/instructpoet-ar (3 stars, Jupyter Notebook, last commit 2026-04-19).

Abstract

Poetry has long been a central art form for Arabic speakers, serving as a powerful medium of expression and cultural identity. While modern Arabic speakers continue to value poetry, existing research on Arabic poetry within Large Language Models (LLMs) has primarily focused on analysis tasks such as interpretation or metadata prediction, e.g., rhyme schemes and titles.

Show full abstract

In contrast, our work addresses the practical aspect of poetry creation in Arabic by introducing controllable generation capabilities to assist users in writing poetry. Specifically, we present a large-scale, carefully curated instruction-based dataset in Modern Standard Arabic (MSA) and various Arabic dialects. This dataset enables tasks such as writing, revising, and continuing poems based on predefined criteria, including style and rhyme, as well as performing poetry analysis. Our experiments show that fine-tuning LLMs on this dataset yields models that can effectively generate poetry that is aligned with user requirements, based on both automated metrics and human evaluation with native Arabic speakers. The data and the code are available at https://github.com/mbzuai-nlp/instructpoet-ar

View on arXivView PDF

Code Implementations(1)

Instruction-Guided Poetry Generation in Arabic and Its Dialects

30Jupyter Notebook, PythonApr 19, 20267 months ago

Similar Papers

Cite this paper

@article{sadallah2026instructionguided,
  title  = {Instruction-Guided Poetry Generation in Arabic and Its Dialects},
  author = {Abdelrahman Sadallah and Kareem Elozeiri and Mervat Abassy and Rania Elbadry and Mohamed Anwar and Abed Alhakim Freihat and Preslav Nakov and Fajri Koto},
  year   = {2026},
  eprint = {2604.27766},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.27766v1}
}

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/2604.27766.svg)](https://codeofpaper.com/paper/2604.27766)

Discussion