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

HYSYNTH:用于指导程序合成的上下文无关LLM近似方法

HYSYNTH: Context-Free LLM Approximation for Guiding Program Synthesis

UC San Diego(加利福尼亚大学圣迭戈分校)

Shraddha Barke, Emmanuel Anaya Gonzalez, Saketh Ram Kasibatla, Taylor Berg-Kirkpatrick, Nadia Polikarpova

AI总结:

针对纯神经方法在陌生DSL下程序合成准确率低、纯符号方法扩展性差的问题,提出HYSYNTH混合方法,用LLM补全学习任务特定上下文无关代理模型指导合成,在三个领域性能优于现有方法。

摘要:

许多结构化预测与推理任务都可被建模为程序合成问题,这类问题的目标是生成一个用领域特定语言(DSL)编写的程序,将输入数据转换为期望的输出。遗憾的是,纯神经方法(如大语言模型LLM)在处理不熟悉的DSL时往往无法生成完全正确的程序,而基于组合搜索的纯符号方法在复杂问题上的扩展性很差。受这些局限性的启发,我们提出了一种混合方法:利用给定任务的LLM补全结果学习一个任务特定的上下文无关代理模型,再用该模型指导程序合成。我们在三个领域对该混合方法进行了评估,结果表明其性能优于无引导搜索、直接从LLM采样,以及现有的程序合成器。

英文摘要:

Many structured prediction and reasoning tasks can be framed as program synthesis problems, where the goal is to generate a program in a domain-specific language (DSL) that transforms input data into the desired output. Unfortunately, purely neural approaches, such as large language models (LLMs), often fail to produce fully correct programs in unfamiliar DSLs, while purely symbolic methods based on combinatorial search scale poorly to complex problems. Motivated by these limitations, we introduce a hybrid approach, where LLM completions for a given task are used to learn a task-specific, context-free surrogate model, which is then used to guide program synthesis. We evaluate this hybrid approach on three domains, and show that it outperforms both unguided search and direct sampling from LLMs, as well as existing program synthesizers.

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

↑