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

使用大型语言模型对金融文档进行零样本问答

Zero-Shot Question Answering over Financial Documents using Large Language Models

EY Global Delivery Services India LLP(安永全球交付服务印度有限责任合伙公司)

Karmvir Singh Phogat, Chetan Harsha, Sridhar Dasaratha, Shashishekar Ramakrishna, Sai Akhil Puranam

AI总结:

本文提出一种基于大型语言模型的零样本提示方法,通过引导LLM将复杂推理编码为可执行程序,解决了金融文档多跳数值推理问答问题,显著提升了准确率。

摘要:

我们引入了一种基于大型语言模型(LLM)的方法,用于回答需要对财务报告进行多跳数值推理的复杂问题。尽管LLM在各种自然语言和推理任务中表现出色,但复杂推理问题通常依赖于需要精心设计示例的少样本提示。相比之下,我们的方法使用新颖的零样本提示,引导LLM将所需的推理编码为Python程序或领域特定语言。然后由程序解释器执行生成的程序,从而缓解LLM在执行精确算术计算时的局限性。我们在三个金融数据集上使用一些最近开发的生成式预训练Transformer(GPT)模型评估了该方法,并与各种零样本基线进行了比较。实验结果表明,我们的方法显著提高了所有LLM相对于各自基线的准确率。我们对结果进行了详细分析,生成支持我们发现的见解。我们方法的成功表明,通过设计零样本提示有效利用LLM中嵌入的知识,提取复杂领域特定数值推理具有巨大潜力。

英文摘要:

We introduce a large language model (LLM) based approach to answer complex questions requiring multi-hop numerical reasoning over financial reports. While LLMs have exhibited remarkable performance on various natural language and reasoning tasks, complex reasoning problems often rely on few-shot prompts that require carefully crafted examples. In contrast, our approach uses novel zero-shot prompts that guide the LLM to encode the required reasoning into a Python program or a domain specific language. The generated program is then executed by a program interpreter, thus mitigating the limitations of LLM in performing accurate arithmetic calculations. We evaluate the proposed approach on three financial datasets using some of the recently developed generative pretrained transformer (GPT) models and perform comparisons with various zero-shot baselines. The experimental results demonstrate that our approach significantly improves the accuracy for all the LLMs over their respective baselines. We provide a detailed analysis of the results, generating insights to support our findings. The success of our approach demonstrates the enormous potential to extract complex domain specific numerical reasoning by designing zero-shot prompts to effectively exploit the knowledge embedded in LLMs.

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

↑