Binding Language Models in Symbolic Languages

By Zhoujun Cheng, Tianbao Xie, Peng Shi, Chengzu Li, R. Nadkarni, Yushi Hu, Caiming Xiong, Dragomir R. Radev, Mari Ostendorf, Luke S. Zettlemoyer and 1 more. 2022

322 citations recorded by the source corpus.

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 .

Subfields: Artificial Intelligence, Information Systems, Large Language Models, Natural Language Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Percy Liang
  2. Graham Neubig
  3. Mohit Bansal
  4. Luke S. Zettlemoyer
  5. Jianfeng Gao
  6. Caiming Xiong
  7. Noah A. Smith
  8. Yejin Choi

In Information Systems

  1. Percy Liang
  2. Graham Neubig
  3. Uri Alon
  4. Xinyun Chen
  5. Ji-rong Wen
  6. Wayne Xin Zhao
  7. Wen-tau Yih
  8. Luyu Gao

In Large Language Models

  1. Wenhu Chen
  2. Noah A. Smith
  3. Graham Neubig
  4. Percy Liang
  5. Caiming Xiong
  6. Cordelia Schmid
  7. Jamie Callan
  8. Luke S. Zettlemoyer

In Natural Language Processing

  1. Percy Liang
  2. Graham Neubig
  3. Luke S. Zettlemoyer
  4. Mohit Bansal
  5. Caiming Xiong
  6. Wen-tau Yih
  7. Jonathan Berant
  8. Noah A. Smith

Citations in the corpus