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

LM-Polygraph:语言模型的不确定性估计

LM-Polygraph: Uncertainty Estimation for Language Models

Skoltech(斯科尔科沃科学技术学院);HSE University(高等经济大学);AI Center NUST MISiS(国家研究型技术大学莫斯科钢铁合金学院人工智能中心);TII(技术创新研究院);AIRI(人工智能研究所);MBZUAI(穆罕默德·本·扎耶德人工智能大学);The University of Melbourne(墨尔本大学);Semrush(Semrush公司)
Ekaterina Fadeeva, Roman Vashurin, Akim Tsvigun, Artem Vazhentsev, Sergey Petrakov, Kirill Fedyanin, Daniil Vasilev, Elizaveta Goncharova, Alexander Panchenko, … 展开作者

Ekaterina Fadeeva, Roman Vashurin, Akim Tsvigun, Artem Vazhentsev, Sergey Petrakov, Kirill Fedyanin, Daniil Vasilev, Elizaveta Goncharova, Alexander Panchenko, Maxim Panov, Timothy Baldwin, Artem Shelmanov

AI总结:

针对LLM幻觉问题,提出LM-Polygraph框架,集成多种不确定性估计方法、统一接口、可扩展基准及带置信度分数的演示应用,兼容BLOOMz、LLaMA-2等模型。

摘要:

大型语言模型(LLMs)能力的最新进展为各个领域众多开创性应用铺平了道路。然而,一个重大挑战随之出现:这些模型常常“产生幻觉”,即捏造事实,而用户缺乏明显手段来辨别其陈述的真实性。不确定性估计(UE)方法是实现更安全、更负责任、更有效使用LLMs的一条途径。然而,迄今为止,针对LLMs的UE方法研究主要侧重于理论而非工程贡献。在本工作中,我们通过引入LM-Polygraph来解决这一问题,这是一个框架,实现了文本生成任务中一系列最先进的LLMs UE方法,并提供统一的Python程序接口。此外,它引入了一个可扩展的基准,供研究人员对UE技术进行一致评估,以及一个演示Web应用,该应用通过置信度分数丰富标准聊天对话,使最终用户能够识别不可靠的响应。LM-Polygraph兼容最新的LLMs,包括BLOOMz、LLaMA-2、ChatGPT和GPT-4,并旨在支持未来发布的类似风格语言模型。

英文摘要:

Recent advancements in the capabilities of large language models (LLMs) have paved the way for a myriad of groundbreaking applications in various fields. However, a significant challenge arises as these models often "hallucinate", i.e., fabricate facts without providing users an apparent means to discern the veracity of their statements. Uncertainty estimation (UE) methods are one path to safer, more responsible, and more effective use of LLMs. However, to date, research on UE methods for LLMs has been focused primarily on theoretical rather than engineering contributions. In this work, we tackle this issue by introducing LM-Polygraph, a framework with implementations of a battery of state-of-the-art UE methods for LLMs in text generation tasks, with unified program interfaces in Python. Additionally, it introduces an extendable benchmark for consistent evaluation of UE techniques by researchers, and a demo web application that enriches the standard chat dialog with confidence scores, empowering end-users to discern unreliable responses. LM-Polygraph is compatible with the most recent LLMs, including BLOOMz, LLaMA-2, ChatGPT, and GPT-4, and is designed to support future releases of similarly-styled LMs.

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

↑