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

基于古典学语境知识微调大语言模型以用于问答

Finetuning an LLM on Contextual Knowledge of Classics for Q&A

Shane Storm Strachan

AI总结:

本研究针对大语言模型在古典学专业领域实用性不足的问题,通过优化数据集微调355M参数的LLM,使其兼具古典学知识输出能力与一致人设,虽仍存在幻觉问题,但模型表现超出同规模预期。

摘要:

大语言模型(LLM)的开源发布为所有懂语言且能使用计算机的人创造了诸多与重要人工智能工具交互的可能性,尤其是在学习与知识传播的场景下。然而,这类模型在古典学等专业领域的实用性在很大程度上仍未被探索。本项目尝试将古典学知识与人工智能能力相结合,通过微调一款LLM来满足学习者和专业人士的特定需求。本项目的目标是开发一款不仅能准确复现语境知识,还能展现出一致“人设”——且确实具备合宜的言行分寸——的LLM,以吸引知识水平各异的多元受众。本项目的很大一部分工作致力于优化数据集,遵循“垃圾进,垃圾出”的原则,以确保模型在收到提示(可以是一段陈述、一个问题或单个单词)时能生成相关、有用且有创意的回复。经过训练与评估,对于一款参数量为355M的模型而言,本研究的模型处理各类不同输入与提示的能力超出了预期;不过它偶尔会出现幻觉(尤其是在设置较高温度值时),特别是在对历史事件或自身身份的表述中,这让它显得有些反复无常,后续还需通过持续微调开展更多研究工作。

英文摘要:

The open-source publishing of large language models (LLMs) has created many possibilities for how anyone who understands language and has access to a computer can interact with significant tools of artificial intelligence, particularly in the context of learning and knowledge dissemination. However, the utility of these models in specialized fields like Classics is still largely unexplored. This project is an attempt to merge the knowledge of Classics with the capabilities of artificial intelligence by finetuning an LLM to cater to the specific needs of learners and professionals. The goal of this project is to develop an LLM that not only reproduces contextual knowledge accurately but also exhibits a consistent "personality" - and, indeed, has consistent propriety - to appeal to a diverse audience who possess differing levels of knowledge. A significant portion of this project was dedicated to refining the dataset, following the principle of "garbage in, garbage out," to ensure the model generates relevant, useful, and creative responses when given a prompt (a statement, question, or single word). After training and evaluation, my model's ability to handle a vast array of different types of inputs and prompting exceeded expectations for a 355M parameter model, though its occasional hallucinations (especially when set with a high temperature), particularly in its assertions about historical events or its own identity, make it seem somewhat capricious and more work in the form of continuous finetuning will be undertaken.

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

↑