Shaer:基于格律子式与语义条件控制的古典阿拉伯诗歌生成
摘要
Shaer 是一个可控的古典阿拉伯诗歌生成框架,能够同时以自然语言描述、格律子式以及目标半句数量作为条件进行生成。该框架通过对 Yehia-7B 进行 QLoRA 微调构建,训练语料为包含 116,032 首诗歌的增强数据集,基础格律准确率达到 95.17%,并在长度与子式控制方面表现出色。
arXiv:2610.09756v1 Announce Type: new
Abstract: Classical Arabic poetry generation requires simultaneously satisfying semantic, linguistic, and fine-grained prosodic constraints. Existing systems typically control broad poetic attributes but do not jointly model semantic intent, meter subform, and poem length. We present Shaer, a controllable Classical Arabic poetry generation framework jointly conditioned on natural-language descriptions, meter subforms, and target hemistich counts. To support this task, we construct an enriched corpus of 116,032 classical Arabic poems derived from Ashaar, containing normalized meter-subform labels and automatically generated, validated semantic descriptions. We then adapt Yehia-7B using QLoRA-based supervised fine-tuning with a completion-only objective. Our evaluation combines automatic assessment of base-meter conformity, requested-subform adherence, and length control with three LLM judges, blinded human evaluation, and memorization analysis. Shaer achieves 95.17% base-meter accuracy, 91.75% poem-level meter-subform accuracy, and 83.40% exact count accuracy. Relative to its untuned foundation model, these results represent gains of 68.68, 57.77, and 38.93 percentage points, respectively; Shaer also attains the highest base-meter accuracy among all evaluated systems. Multi-LLM evaluation and a blinded human assessment of top-ranked outputs further indicate competitive semantic and literary quality. Finally, analysis of all 3,481 test generations finds no exact copies from the training corpus or paired source poems. Code, models, and datasets are publicly available.
查看缓存全文
缓存时间: 2026/10/08 12:45
# Shaer: Controlled Arabic Poetry Generation with Meter Subform and Semantic Conditioning Source: [https://arxiv.org/abs/2610.09756](https://arxiv.org/abs/2610.09756) [View PDF](https://arxiv.org/pdf/2610.09756) > Abstract:Classical Arabic poetry generation requires simultaneously satisfying semantic, linguistic, and fine\-grained prosodic constraints\. Existing systems typically control broad poetic attributes but do not jointly model semantic intent, meter subform, and poem length\. We present Shaer, a controllable Classical Arabic poetry generation framework jointly conditioned on natural\-language descriptions, meter subforms, and target hemistich counts\. To support this task, we construct an enriched corpus of 116,032 classical Arabic poems derived from Ashaar, containing normalized meter\-subform labels and automatically generated, validated semantic descriptions\. We then adapt Yehia\-7B using QLoRA\-based supervised fine\-tuning with a completion\-only objective\. Our evaluation combines automatic assessment of base\-meter conformity, requested\-subform adherence, and length control with three LLM judges, blinded human evaluation, and memorization analysis\. Shaer achieves 95\.17% base\-meter accuracy, 91\.75% poem\-level meter\-subform accuracy, and 83\.40% exact count accuracy\. Relative to its untuned foundation model, these results represent gains of 68\.68, 57\.77, and 38\.93 percentage points, respectively; Shaer also attains the highest base\-meter accuracy among all evaluated systems\. Multi\-LLM evaluation and a blinded human assessment of top\-ranked outputs further indicate competitive semantic and literary quality\. Finally, analysis of all 3,481 test generations finds no exact copies from the training corpus or paired source poems\. Code, models, and datasets are publicly available\. ## Submission history From: Ahmad Abbas \[[view email](https://arxiv.org/show-email/79a21def/2610.09756)\] **\[v1\]**Wed, 7 Oct 2026 09:44:21 UTC \(4,105 KB\)
相似文章
BARRAC:将英文基于方面的情感分析方法适配用于阿拉伯语方言分类任务
BARRAC 将英文基于方面的情感分析框架适配于阿拉伯语方言分类任务,用阿拉伯语中表达讽刺、方言和情感的语言手段替换原本的消费者评论属性池,在五个基准中的四个上取得优于 GPT-4o 的效果,平均宏 F1 值达到 63.93%。
Alkhder 在 AlexandriaX-2026:基于 QLoRA 微调 NileChat-3B 的上下文感知英语到阿拉伯语方言对话翻译
Team Alkhder 在 AlexandriaX-2026 共享任务中的提交方案采用 QLoRA 对 NileChat-3B-Base 进行微调,实现上下文感知的英语到 13 种阿拉伯语方言的对话翻译,spBLEU 达 20.36,chrF++ 达 36.64,在两个赛道中均排名第六。
基于大型语言模型的阿拉伯语文本自动评分:文献综述
一篇文献综述,审视了基于LLM的阿拉伯语文本自动评分方法,涵盖简答题评分和作文评分,并提出了一个分类体系和比较分析。
YallaMorph: 评估大型语言模型中阿拉伯语形态生成的基准测试
YallaMorph 是一个大规模基准测试,用于评估大型语言模型中受控的阿拉伯语形态生成,揭示了在粘着形式和形态罕见形式方面的重大挑战。
AraSSM:用于阿拉伯语掩码语言建模的双向状态空间编码器
介绍AraSSM,一种通过阿拉伯语语料库上的掩码语言建模进行预训练的双向Mamba状态空间编码器,在消费级GPU上从头训练,同时在阿拉伯语自然语言理解基准上取得了有竞争力的结果。