[论文解读] AraPoemBERT: A Pretrained Language Model for Arabic Poetry Analysis
AraPoemBERT 是一个仅在 209 万行阿拉伯诗歌中预训练的基于 BERT 的语言模型,可在特定领域 NLP 任务中实现最先进性能。它在诗人性别分类任务中达到 99.34% 的准确率,在子音步分类中达到 97.79%,在音步分类中达到 99.03%,在诗歌分析任务中优于通用阿拉伯语模型。
Arabic poetry, with its rich linguistic features and profound cultural significance, presents a unique challenge to the Natural Language Processing (NLP) field. The complexity of its structure and context necessitates advanced computational models for accurate analysis. In this paper, we introduce AraPoemBERT, an Arabic language model pretrained exclusively on Arabic poetry text. To demonstrate the effectiveness of the proposed model, we compared AraPoemBERT with 5 different Arabic language models on various NLP tasks related to Arabic poetry. The new model outperformed all other models and achieved state-of-the-art results in most of the downstream tasks. AraPoemBERT achieved unprecedented accuracy in two out of three novel tasks: poet's gender classification (99.34\% accuracy), and poetry sub-meter classification (97.79\% accuracy). In addition, the model achieved an accuracy score in poems' rhyme classification (97.73\% accuracy) which is almost equivalent to the best score reported in this study. Moreover, the proposed model significantly outperformed previous work and other comparative models in the tasks of poems' sentiment analysis, achieving an accuracy of 78.95\%, and poetry meter classification (99.03\% accuracy), while significantly expanding the scope of these two problems. The dataset used in this study, contains more than 2.09 million verses collected from online sources, each associated with various attributes such as meter, sub-meter, poet, rhyme, and topic. The results demonstrate the effectiveness of the proposed model in understanding and analyzing Arabic poetry, achieving state-of-the-art results in several tasks and outperforming previous works and other language models included in the study. AraPoemBERT model is publicly available on \url{https://huggingface.co/faisalq}.
研究动机与目标
- 开发一种专为阿拉伯诗歌设计的阿拉伯语语言模型,以解决通用模型在捕捉诗歌语言和结构特征方面的局限性。
- 构建一个大规模、多属性的阿拉伯诗歌数据集,包含音步、子音步、押韵、诗人、情感和性别等标注,以支持下游 NLP 任务。
- 探索阿拉伯诗歌中此前未被研究的新型 NLP 任务,包括诗人性别分类和子音步分类。
- 通过将 AraPoemBERT 与五种现有阿拉伯语语言模型在多个诗歌分析任务中进行比较,证明领域专用预训练的优势。
- 为未来在阿拉伯语 NLP、语言学和文化研究领域的研究提供公开可获取的资源——包括模型权重和数据集。
提出的方法
- 从头开始在收集自在线来源的 209 万行阿拉伯诗歌精选数据集上预训练 AraPoemBERT 模型,专注于诗歌文本以捕捉语言和韵律模式。
- 在预训练过程中采用掩码语言建模目标,利用 BERT 架构学习与阿拉伯诗歌结构相关的上下文表征。
- 在五个下游任务上微调模型:诗人性别分类、诗歌音步与子音步分类、情感分析和押韵检测,使用特定任务的分类头。
- 将子音步定义为古典音步及其变体(如 Wafer-Majzuu、Rajaz-Complete)的组合,以实现对韵律模式的细粒度分类。
- 所有任务均采用多分类分类头与交叉熵损失,模型评估基于准确率、F1 分数以及宏平均/加权平均。
- 通过将 AraPoemBERT 与五种基线模型(包括 AraBERT 和 CAMeLBERT-CA)在所有任务中的对比,开展消融研究,以验证性能提升。
实验结果
研究问题
- RQ1仅在阿拉伯诗歌上预训练的基于 BERT 的语言模型是否能在诗歌特定的 NLP 任务中超越通用阿拉伯语语言模型?
- RQ2像 AraPoemBERT 这类领域专用模型在诗人性别分类和子音步分类等新任务中,性能提升的幅度有多大?
- RQ3AraPoemBERT 在捕捉和分类阿拉伯诗歌中复杂诗歌特征(如音步、子音步和押韵)方面的有效性如何?
- RQ4领域专用预训练对阿拉伯诗歌中低资源诗歌属性(如性别和情感)的影响是什么?
- RQ5AraPoemBERT 是否能泛化到多种诗歌风格,包括古典与非古典音步,并能处理如 Taa Marbutah 和 Waw Hamza 等罕见押韵变体?
主要发现
- AraPoemBERT 在诗人性别分类任务中实现了 99.34% 的最先进准确率,尽管存在极端类别不平衡(女性 360 人 vs. 男性 5,023 人),仍显著优于其他模型。
- 该模型在诗歌子音步分类中达到 97.79% 的准确率,证明其能够有效区分古典音步及其变体(如 Majzuu 和 Complete)。
- 在诗歌音步分类任务中,AraPoemBERT 达到 99.03% 的准确率,优于所有对比模型,为该任务设立了新基准。
- 在押韵分类任务中,AraPoemBERT 达到 97.73% 的准确率,对标准阿拉伯字母押韵表现最佳,但对罕见变体(如 Taa Marbutah 和 Waw Hamza)的准确率较低,原因在于样本量过少。
- 在情感分析任务中,AraPoemBERT 达到 78.95% 的准确率,显著优于以往工作,拓展了阿拉伯诗歌情感分析的范围。
- 押韵分类的混淆矩阵显示,模型最常将 'Laa' 误分类为 'Lam'(占 24.5% 的误判),凸显了同音及拼写相似押韵变体带来的挑战。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。