lm-code-binder.github.io - Binding Language Models in Symbolic Languages

Description: Binding Language Models in Symbolic Languages

language model (32) in-context learning (9) symbolic language (3)

Example domain paragraphs

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 underlyi

Binder first prompts Codex to parse a question input into a Binder program, in which Codex has to decide (1) which parts in the input can be converted to the target programming language ( grey clause in figure), (2) the corresponding task API calls ( blue clause in figure) to prompt Codex to resolve the other parts, and (3) where to insert the API calls in the Binder program. Next, Binder prompts Codex again to generate answers to the task API calls (given the generated task prompts), integrates the generat

Binder framework achieves SOTA or comparable performance with only dozens of program annotations without training on three benchmarks!

Links to lm-code-binder.github.io (13)