arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.14195cs.CL
收藏

学习约简:在大语言模型提示中实现结构化数据的最优表示

Learning to Reduce: Optimal Representations of Structured Data in Prompting Large Language Models

Purdue University(普渡大学);Adobe Research(奥多比研究中心)

Younghun Lee, Sungchul Kim, Tong Yu, Ryan A. Rossi, Xiang Chen

AI总结:

本文提出 Learning to Reduce 框架,通过在策略强化学习微调语言模型对结构化输入上下文进行最优约简,以提升固定大语言模型的推理性能,并在多个数据集上验证了其准确率与泛化能力。

摘要:

大语言模型(LLMs)已被广泛用作通用人工智能智能体,在许多下游任务上表现出可比的性能。然而,现有工作表明,LLMs 将结构化数据(例如知识图谱 KG、表格、数据库 DBs)整合到其提示中具有挑战性;LLMs 要么需要理解长文本数据,要么需要在推理之前选择最相关的证据,而这两种方法都并非易事。在本文中,我们提出了一个框架,称为 Learning to Reduce,该框架对语言模型进行微调,使其在给定任务描述和上下文输入的情况下生成输入上下文的约简版本。该模型使用在策略强化学习(On-Policy Reinforcement Learning)来学习约简输入上下文,旨在提高固定 LLM 的推理性能。实验结果表明,我们的模型不仅在从输入上下文中选择相关证据方面取得了可比的准确率,而且在不同数据集上表现出泛化能力。我们进一步表明,我们的模型有助于提高 LLM 在下游任务上的性能,尤其是在上下文较长的情况下。

英文摘要:

Large Language Models (LLMs) have been widely used as general-purpose AI agents showing comparable performance on many downstream tasks. However, existing work shows that it is challenging for LLMs to integrate structured data (e.g. KG, tables, DBs) into their prompts; LLMs need to either understand long text data or select the most relevant evidence prior to inference, and both approaches are not trivial. In this paper, we propose a framework, Learning to Reduce, that fine-tunes a language model to generate a reduced version of an input context, given a task description and context input. The model learns to reduce the input context using On-Policy Reinforcement Learning and aims to improve the reasoning performance of a fixed LLM. Experimental results illustrate that our model not only achieves comparable accuracies in selecting the relevant evidence from an input context, but also shows generalizability on different datasets. We further show that our model helps improve the LLM's performance on downstream tasks especially when the context is long.

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

↑