FLAP:基于约束解码的LLM流 adhering 规划
FLAP: Flow-Adhering Planning with Constrained Decoding in LLMs
AI总结:
提出FLAP算法,通过约束解码和前瞻启发式解决TODs中LLM规划对预定义工作流和API依赖的忠实性问题,无需微调即可快速适应,且使7B模型媲美30B-40B模型。
摘要:
规划是面向任务对话(TODs)中智能体的关键任务。人类智能体通常通过遵循预定义的工作流、将工作流步骤分解为可操作项,并按顺序执行API来执行操作,从而解决用户问题;所有这些都需要推理和规划。随着LLMs的最近进展,越来越多地尝试将它们用于任务规划和API使用。然而,LLMs对预定义工作流和API依赖关系的计划忠实性无法保证。此外,现实生活中的工作流通常是自定义的且容易发生变化;因此,适应性是可取的。为了研究这一点,我们提出了TODs中的忠实规划问题,该问题需要通过遵循预定义流程并保留API依赖关系来解决用户意图。为了解决这个问题,我们提出了FLAP,一种基于带有前瞻启发式的约束解码的LLMs流 adhering 规划算法。我们的算法缓解了使用领域特定(计划/依赖)数据微调LLMs的需求,能够快速适应预定义流程,并优于其他基于解码和提示的基线。此外,我们的算法使较小的LLMs(7B)能够与较大的LLMs(30B-40B)表现相当。
英文摘要:
Planning is a crucial task for agents in task oriented dialogs (TODs). Human agents typically resolve user issues by following predefined workflows, decomposing workflow steps into actionable items, and performing actions by executing APIs in order; all of which require reasoning and planning. With the recent advances in LLMs, there have been increasing attempts to use them for task planning and API usage. However, the faithfulness of the plans to predefined workflows and API dependencies, is not guaranteed with LLMs. Moreover, workflows in real life are often custom-defined and prone to changes; hence, adaptation is desirable. To study this, we propose the problem of faithful planning in TODs that needs to resolve user intents by following predefined flows and preserving API dependencies. To solve this problem, we propose FLAP, a Flow-Adhering Planning algorithm based on constrained decoding with lookahead heuristic for LLMs. Our algorithm alleviates the need for finetuning LLMs using domain specific (plan/dependency) data, enables quick adaptation to predefined flows, and outperforms other decoding and prompting-based baselines. Further, our algorithm empowers smaller LLMs (7B) to perform at par larger LLMs (30B-40B).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。