LLM Attributor:面向大语言模型生成的交互式可视化归因工具
LLM Attributor: Interactive Visual Attribution for LLM Generation
AI总结:
本文提出 LLM Attributor,一个通过交互式可视化将大语言模型文本生成归因到训练数据点的 Python 库,以检查模型行为并增强可信度。
摘要:
尽管大语言模型(LLMs)在多个领域展现出生成可信文本的卓越能力,但围绕其潜在风险的担忧凸显了理解文本生成背后依据的重要性。我们提出了 LLM Attributor,这是一个 Python 库,为大语言模型文本生成提供训练数据归因的交互式可视化。我们的库提供了一种新方法,可快速将大语言模型的文本生成归因到训练数据点,以检查模型行为、增强其可信度,并将模型生成的文本与用户提供的文本进行比较。我们描述了该工具的可视化与交互设计,并重点展示了使用两个不同数据集微调的 LLaMA2 模型的使用场景:关于近期灾害的在线文章以及与金融相关的问答对。得益于 LLM Attributor 对计算笔记本的广泛支持,用户可以轻松地将其集成到工作流中,以交互方式可视化其模型的归因结果。为了便于访问和扩展,我们在 https://github.com/poloclub/LLM-Attribution 开源了 LLM Attributor。视频演示可在 https://youtu.be/mIG2MDQKQxM 查看。
英文摘要:
While large language models (LLMs) have shown remarkable capability to generate convincing text across diverse domains, concerns around its potential risks have highlighted the importance of understanding the rationale behind text generation. We present LLM Attributor, a Python library that provides interactive visualizations for training data attribution of an LLM's text generation. Our library offers a new way to quickly attribute an LLM's text generation to training data points to inspect model behaviors, enhance its trustworthiness, and compare model-generated text with user-provided text. We describe the visual and interactive design of our tool and highlight usage scenarios for LLaMA2 models fine-tuned with two different datasets: online articles about recent disasters and finance-related question-answer pairs. Thanks to LLM Attributor's broad support for computational notebooks, users can easily integrate it into their workflow to interactively visualize attributions of their models. For easier access and extensibility, we open-source LLM Attributor at https://github.com/poloclub/ LLM-Attribution. The video demo is available at https://youtu.be/mIG2MDQKQxM.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。