arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.05882cs.CL
收藏

大规模创建阿拉伯语大语言模型提示词

Creating Arabic LLM Prompts at Scale

aiXplain Inc.(aiXplain公司)

Abdelrahman El-Sheikh, Ahmed Elmogtaba, Kareem Darwish, Muhammad Elmallah, Ashraf Elneima, Hassan Sawaf

AI总结:

本研究针对阿拉伯语LLM训练所需的提示词资源缺口,提出翻译英文数据集+基于现有阿语NLP数据集构建两种方法,生成超6740万条多任务阿语提示词,且微调后的7B参数Qwen2模型阿语提示处理效果优于70B参数的Llama3指令模型。

摘要:

ChatGPT与BARD的问世普及了基于大语言模型(LLM)的指令遵循文本生成技术,用户可通过自然语言请求向LLM提问,并获得符合需求的自然语言答案。训练LLM以这种方式响应,需要大量包含用户请求(即提示词)及对应黄金标准答案的已整理示例。本文提出两种低成本、快速构建阿拉伯语此类提示词的方法:第一种是自动翻译现有英文提示词数据集(如PromptSource和Super-NaturalInstructions),再借助机器翻译质量评估机制仅保留高质量译文;第二种是在现有阿拉伯语自然语言处理(NLP)数据集基础上构建自然语言提示词。通过这两种方法,我们成功构建了超过6740万条阿拉伯语提示词,覆盖摘要生成、标题生成、语法检查、开/闭式问答、创意写作等多种任务。实验表明,对开源的70亿参数大语言模型base Qwen2 7B进行微调后,其在处理阿拉伯语提示词方面的表现优于当前最先进的700亿参数指令微调模型Llama3 70B。

英文摘要:

The debut of chatGPT and BARD has popularized instruction following text generation using LLMs, where a user can interrogate an LLM using natural language requests and obtain natural language answers that matches their requests. Training LLMs to respond in this manner requires a large number of worked out examples of user requests (aka prompts) with corresponding gold responses. In this paper, we introduce two methods for creating such prompts for Arabic cheaply and quickly. The first methods entails automatically translating existing prompt datasets from English, such as PromptSource and Super-NaturalInstructions, and then using machine translation quality estimation to retain high quality translations only. The second method involves creating natural language prompts on top of existing Arabic NLP datasets. Using these two methods we were able to create more than 67.4 million Arabic prompts that cover a variety of tasks including summarization, headline generation, grammar checking, open/closed question answering, creative writing, etc. We show that fine tuning an open 7 billion parameter large language model, namely base Qwen2 7B, enables it to outperform a state-of-the-art 70 billion parameter instruction tuned model, namely Llama3 70B, in handling Arabic prompts.

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

↑