arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2309.04646cs.CLcs.AI
收藏

面向越南语聊天机器人的大型语言模型高效微调

Efficient Finetuning Large Language Models For Vietnamese Chatbot

University of Information Technology(信息科技大学);Vietnam National University, Ho Chi Minh City(胡志明市越南国家大学)

Vu-Thuan Doan, Quoc-Truong Truong, Duc-Vu Nguyen, Vinh-Tiep Nguyen, Thuy-Ngan Nguyen Luu

AI总结:

本研究通过LoRA在Bloomz和GPTJ-6B上高效微调,构建越南语指令数据集,开发出四个聊天与医疗模型,在低成本下实现20-30%性能提升。

摘要:

大型语言模型(LLMs),如GPT-4、PaLM和LLaMa,在各种自然语言任务中表现出卓越的性能。指令微调的最新进展使LLMs具备了遵循用户指令并产生类人回复的能力。然而,训练和实施LLMs的高昂成本给学术研究带来了挑战。此外,越南语预训练LLMs和指令微调数据集的可用性有限。为了解决这些问题,我们利用开源项目的大规模指令遵循数据集,即Alpaca、GPT4All和Chat-Doctor,涵盖通用领域和特定医疗领域。据我们所知,这是首批面向越南语的指令数据集。随后,我们在两个开源LLMs上通过低秩适应(LoRA)进行参数高效微调:Bloomz(多语言)和GPTJ-6B(越南语),生成四个模型:Bloomz-Chat、Bloomz-Doctor、GPTJ-Chat、GPTJ-Doctor。最后,我们逐样本评估方法的有效性,考虑回复的有用性、相关性、准确性和细节程度。评估过程使用GPT-4作为自动评分机制。尽管采用低成本设置,我们的方法在评估任务中比原始模型提升约20-30%。

英文摘要:

Large language models (LLMs), such as GPT-4, PaLM, and LLaMa, have been shown to achieve remarkable performance across a variety of natural language tasks. Recent advancements in instruction tuning bring LLMs with ability in following user's instructions and producing human-like responses. However, the high costs associated with training and implementing LLMs pose challenges to academic research. Furthermore, the availability of pretrained LLMs and instruction-tune datasets for Vietnamese language is limited. To tackle these concerns, we leverage large-scale instruction-following datasets from open-source projects, namely Alpaca, GPT4All, and Chat-Doctor, which cover general domain and specific medical domain. To the best of our knowledge, these are the first instructional dataset for Vietnamese. Subsequently, we utilize parameter-efficient tuning through Low-Rank Adaptation (LoRA) on two open LLMs: Bloomz (Multilingual) and GPTJ-6B (Vietnamese), resulting four models: Bloomz-Chat, Bloomz-Doctor, GPTJ-Chat, GPTJ-Doctor.Finally, we assess the effectiveness of our methodology on a per-sample basis, taking into consideration the helpfulness, relevance, accuracy, level of detail in their responses. This evaluation process entails the utilization of GPT-4 as an automated scoring mechanism. Despite utilizing a low-cost setup, our method demonstrates about 20-30\% improvement over the original models in our evaluation tasks.

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

↑