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

面向语言智能体的输入条件化图生成

Input Conditioned Graph Generation for Language Agents

Hong Kong University of Science and Technology(香港科技大学)

Lukas Vierling, Jie Fu, Kai Chen

AI总结:

本文提出面向语言智能体的输入条件化动态图生成方法,用强化学习微调 LLM 按输入生成通信边,在 MMLU、CMMLU 等基准上显著超过静态方法。

摘要:

近期,Large Language Models(LLMs,大语言模型)和语言智能体的进展,已经展现出其在多个学科的各类未来应用中的巨大潜力。传统语言智能体方法通常依赖固定的手工设计,而本研究旨在开发既可学习又具有动态性的智能体。我们的方法使用一个现有框架,该框架将语言智能体抽象为图。在这一图框架内,我们希望学习一个模型,使其能够针对语言智能体接收到的每个给定输入生成边。这使我们能够根据给定输入生成表示图内通信流的边,从而调节语言智能体的内部通信。我们使用一个经过强化学习微调的预训练 LLM 来学习生成这些边。该 LLM 可以同时在多个数据集上进行微调;我们假设模型在训练期间会学习适应这些不同领域,从而在部署期间遇到来自不同领域的数据时取得良好的整体性能。我们证明,在 MMLU 与 CMMLU 的组合数据集上,我们的方法相比此前的静态方法在准确率上高出近 6%;而在使用稀疏诱导损失进行训练时,准确率提升超过 10%。在使用 MMLU 和 Mini Crossword Puzzles 数据集开展的额外实验中,该方法也表现更优。代码可在 https://github.com/lukasVierling/DynamicGPTSwarm 获取。

英文摘要:

Recent progress in Large Language Models (LLMs) and language agents has demonstrated significant promise for various future applications across multiple disciplines. While traditional approaches to language agents often rely on fixed, handcrafted designs, our research aims to develop both learnable and dynamic agents. Our method uses an existing framework that abstracts language agents as graphs. Within this graph framework, we aim to learn a model that can generate edges for every given input to the language agent. This allows us to generate edges that represent the flow of communication within the graph based on the given input, thereby adjusting the internal communication of a language agent. We learn to generate these edges using a pretrained LLM that is fine-tuned with reinforcement learning. This LLM can be fine-tuned on several datasets simultaneously, and we hypothesize that the model learns to adapt to these different domains during training, achieving good overall performance when encountering data from different domains during deployment. We demonstrate that our approach surpasses the previous static approach by nearly 6% accuracy on a combined dataset of MMLU and CMMLU, and by more than 10% when trained with a sparsity-inducing loss. It also performs superior in additional experiments conducted with the MMLU and Mini Crossword Puzzles datasets. The code is available at https://github.com/lukasVierling/DynamicGPTSwarm.

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

↑