arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.07551cs.CLcs.AI
收藏

基于大语言模型的阿拉伯语自动故事生成

Arabic Automatic Story Generation with Large Language Models

The University of British Columbia(不列颠哥伦比亚大学);Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(穆罕默德·本·扎耶德人工智能大学);Invertible AI(可逆人工智能公司)

Ahmed Oumar El-Shangiti, Fakhraddin Alwajih, Muhammad Abdul-Mageed

AI总结:

针对阿拉伯语大语言模型故事生成进展较慢的问题,研究构建了含机器翻译和GPT-4生成的多语体阿拉伯语故事数据集,微调后的模型生成效果优异,相关资源将开源。

摘要:

大语言模型(LLMs)近来已成为广泛语言生成任务的强大工具,但这一进展在阿拉伯语领域推进较慢。本研究聚焦于利用大语言模型生成故事的任务。训练中,我们使用通过机器翻译(MT)获取的故事以及GPT-4生成的故事。对于机器翻译数据,我们开发了一套精细的处理流水线以确保获得高质量故事。对于GPT-4生成的数据,我们设计了精心打磨的提示词,能够生成适配阿拉伯语境的故事,涵盖现代标准阿拉伯语(MSA)以及两种阿拉伯方言(埃及方言和摩洛哥方言),例如我们生成了针对多个阿拉伯国家、主题丰富多样的定制故事。人工评估显示,在这些训练数据集上微调后的模型能够生成连贯且符合指令的故事。我们还开展了全面的自动评估与人工评估,将我们的模型与当前最优的商用及开源模型进行对比。我们的数据集和模型将在https://github.com/UBC-NLP/arastories 公开发布。

英文摘要:

Large language models (LLMs) have recently emerged as a powerful tool for a wide range of language generation tasks. Nevertheless, this progress has been slower in Arabic. In this work, we focus on the task of generating stories from LLMs. For our training, we use stories acquired through machine translation (MT) as well as GPT-4. For the MT data, we develop a careful pipeline that ensures we acquire high-quality stories. For our GPT-41 data, we introduce crafted prompts that allow us to generate data well-suited to the Arabic context in both Modern Standard Arabic (MSA) and two Arabic dialects (Egyptian and Moroccan). For example, we generate stories tailored to various Arab countries on a wide host of topics. Our manual evaluation shows that our model fine-tuned on these training datasets can generate coherent stories that adhere to our instructions. We also conduct an extensive automatic and human evaluation comparing our models against state-of-the-art proprietary and open-source models. Our datasets and models will be made publicly available at https: //github.com/UBC-NLP/arastories.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑