[论文解读] Binding Language Models in Symbolic Languages
Binder 是一个 training-free neural-symbolic 框架,将输入映射到可执行程序,将统一的 LM API 绑定到一种编程语言,在只有 a dozen in-context exemplars 且无需训练的情况下,在 WikiTableQuestions 和 TabFact 上取得了最先进的结果。
Though end-to-end neural approaches have recently been dominating NLP tasks in both performance and ease-of-use, they lack interpretability and robustness. We propose Binder, a training-free neural-symbolic framework that maps the task input to a program, which (1) allows binding a unified API of language model (LM) functionalities to a programming language (e.g., SQL, Python) to extend its grammar coverage and thus tackle more diverse questions, (2) adopts an LM as both the program parser and the underlying model called by the API during execution, and (3) requires only a few in-context exemplar annotations. Specifically, we employ GPT-3 Codex as the LM. In the parsing stage, with only a few in-context exemplars, Codex is able to identify the part of the task input that cannot be answerable by the original programming language, correctly generate API calls to prompt Codex to solve the unanswerable part, and identify where to place the API calls while being compatible with the original grammar. In the execution stage, Codex can perform versatile functionalities (e.g., commonsense QA, information extraction) given proper prompts in the API calls. Binder achieves state-of-the-art results on WikiTableQuestions and TabFact datasets, with explicit output programs that benefit human debugging. Note that previous best systems are all finetuned on tens of thousands of task-specific samples, while Binder only uses dozens of annotations as in-context exemplars without any training. Our code is available at https://github.com/HKUNLP/Binder .
研究动机与目标
- 通过利用语言模型 API,提升对符号语言的覆盖率,而不需要大规模的针对特定任务的训练。
- 提高 NL-to-executable-program 系统的可解释性与鲁棒性。
- 在 WikiTableQuestions 和 TabFact 上展示最先进的性能,且所需标注极少。
提出的方法
- 将任务输入映射到一个标准编程语言(如 SQL、Python)扩展的 Binder 程序,该程序包含对 LM 的 API 调用。
- 将 Codex 同时用作语义解析器与 Binder 程序内 API 调用的执行器。
- 使用少量演示进行上下文学习,以生成多个 Binder 程序并对它们的答案进行多数投票。
- 扩展 Binder 至 SQL 与 Python,使用神经 API f_col 与 f_val,将 LM 能力集成到列/值推理中。
- 通过一个 Binder 解释器执行,该解释器扩展语法以容纳 API 调用,并自底向上评估嵌套 API 调用。
实验结果
研究问题
- RQ1一个无需大规模微调的训练-free 神经-符号框架是否能够在结构化知识任务上达到竞争性表现?
- RQ2将 LM 启用的 API 调用绑定到编程语言对覆盖率、可解释性与鲁棒性在实际问题上的影响?
- RQ3Binder 对于 WikiTQ 的“不可解程序”问题与相关数据集有何影响?
- RQ4Binder 在多模态输入(文本、表格、图像)以及替代编程语言(SQL、Python)上的泛化程度如何?
主要发现
- Binder 在 WikiTableQuestions 和 TabFact 上使用 Codex、只有几十个上下文示例且无需针对特定任务的训练即可达到最先进的执行准确性。
- 在 WikiTQ 上,Codex Binder 的开发集为 65.0、测试集为 64.6,超越先前基线,包括许多微调模型。
- 在 TabFact 上,Codex Binder 的测试准确率为 85.1,且使用少量检索可达 86.0,超越先前的符号方法,并与微调基线具有竞争力。
- Binder 在那些仅靠 SQL 无法解决的问题(不可解的问题)上提升了表现,在 WikiTQ 不可解项上比纯 SQL 提高了 10.1 个百分点。
- 与端到端问答相比,Codex Binder 展现出显著提升(例如 WikiTQ 提升 15.9%、TabFact 提升 12.4%),突出通过符号执行实现更好的覆盖率。
- Binder 提供可解释的中间程序,便于调试和错误分析,并展示对大输入与嘈杂内容的鲁棒性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。