Skip to main content
QUICK REVIEW

[论文解读] Compositional Semantic Parsing with Large Language Models

Andrew Drozdov, Nathanael Schärli|arXiv (Cornell University)|Sep 29, 2022
Natural Language Processing TechniquesComputer Science被引用 39
一句话总结

本论文提出了基于LM的句法解析与动态示例选择的动态从少到多提示法,在CFQ上实现了前所未有的组成泛化(平均95.0%)并在COGS上获得强劲结果(99.2%),使用大约1%的训练数据。

ABSTRACT

Humans can reason compositionally when presented with new tasks. Previous research shows that appropriate prompting techniques enable large language models (LLMs) to solve artificial compositional generalization tasks such as SCAN. In this work, we identify additional challenges in more realistic semantic parsing tasks with larger vocabulary and refine these prompting techniques to address them. Our best method is based on least-to-most prompting: it decomposes the problem using prompting-based syntactic parsing, then uses this decomposition to select appropriate exemplars and to sequentially generate the semantic parse. This method allows us to set a new state of the art for CFQ while requiring only 1% of the training data used by traditional approaches. Due to the general nature of our approach, we expect similar efforts will lead to new results in other tasks and domains, especially for knowledge-intensive applications.

研究动机与目标

  • 在真实语义解析基准CFQ和COGS中解决组成泛化问题。
  • 适应并扩展从少到多提示以处理更大词汇量和复杂语法。
  • 在保持高准确率的同时降低训练数据需求。
  • 开发由句法分解引导的动态示例选择策略。

提出的方法

  • 通过LM预测的句法解析将输入分解为树状结构的动态从少到多提示。
  • 基于自顶向下和自底向上匹配,动态选择一个小型示例池以覆盖分解树。
  • 通过将分解树线性化来顺序生成子问题解,并提示模型在最终输出前解决子问题。
  • 与推理链提示和端到端有监督基线进行比较,以评估有效性和数据效率。
  • 使用 Codex (code-davinci-002) 作为语言模型骨干,并对多提示采用贪婪解码及自一致性。

实验结果

研究问题

  • RQ1动态从少到多提示是否能将组成泛化扩展到像CFQ和COGS这样的现实语义解析任务?
  • RQ2如何设计句法分解与动态示例选择以应对大词汇量和上下文相关的翻译?
  • RQ3所提方法在准确性和数据效率方面与完全有监督的微调和推理链提示相比如何?

主要发现

  • 在CFQ上,动态从少到多在MCD分割上达到95.0% 的平均准确率,使用约1%的训练数据,创造了新纪录。
  • CFQ 的提升大致等于比以往最佳结果减少约45%的错误率。
  • 在COGS上,该方法在泛化测试集上取得99.2%准确率,使用约0.4%的训练数据。
  • 证明了示例池规模的鲁棒性;即使示例池很小(例如小于0.1%的数据量),该方法仍具有竞争力。
  • 动态从少到多在实验中优于原生的少样本提示和推理链提示,并且在使用自一致性时速度大约是推理链的一倍。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。