Skip to main content
QUICK REVIEW

[논문 리뷰] Binding Language Models in Symbolic Languages

Zhoujun Cheng, Tianbao Xie|arXiv (Cornell University)|2022. 10. 06.
Topic ModelingComputer Science인용 수 38
한 줄 요약

Binder는 학습 없이 작동하는 신경-상징 프레임워크로, 입력을 실행 가능한 프로그램으로 매핑하여 통합된 LM API를 프로그래밍 언어에 바인딩하고, 12개의 인-컨텍스트 예시만으로 WikiTableQuestions와 TabFact에서 학습 없이도 최첨단 성과를 달성한다.

ABSTRACT

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에서 실행 가능한 프로그램으로의 시스템의 해석성 및 강인성을 향상시킨다.
  • 최소한의 주석으로 WikiTableQuestions와 TabFact에서 최첨단 성능을 보여준다.

제안 방법

  • 작업 입력을 표준 프로그래밍 언어(예: SQL, Python)로 확장된 API 호출을 갖춘 실행 가능한 Binder 프로그램으로 매핑한다.
  • Binder 프로그램 내 API 호출의 시맨틱 파서와 실행기로 Codex를 사용한다.
  • 적은 수의 예시를 이용한 인-컨텍스트 학습으로 여러 개의 Binder 프로그램을 생성하고 그 답에 대해 다수결 투표를 수행한다.
  • LM 능력을 컬럼/값 추론에 통합하기 위해 신경 API f_col, f_val를 사용해 Binder를 SQL과 Python으로 확장한다.
  • API 호출을 수용하도록 문법을 확장한 Binder 인터프리터를 통해 실행하고 중첩된 API 호출을 아래에서 위로 평가한다.

실험 결과

연구 질문

  • RQ1대규모 미세조정 없이 학습 없는 신경-상징 프레이워크가 구조화된 지식 작업에서 경쟁력 있는 성능을 달성할 수 있는가?
  • RQ2LM-활성 API 호출을 프로그래밍 언어에 바인딩하는 것이 실제 질문에서 커버리지, 해석가능성, 강인성에 어떤 영향을 미치는가?
  • RQ3Binder가 프로그램으로 해결 불가능한 질문과 해결 가능한 WikiTQ 질문 및 관련 데이터셋에 미치는 영향은 무엇인가?
  • RQ4Binder가 다중 모달 입력(텍스트, 표, 이미지)과 대체 프로그래밍 언어(SQL, Python)에 얼마나 잘 일반화되는가?

주요 결과

  • Binder는 Codex를 사용하고 수십 개의 인-context 예시만으로도 특정 작업 학습 없이 WikiTableQuestions 및 TabFact에서 최첨단 실행 정확도를 달성한다.
  • WikiTQ에서 Codex Binder의 dev 65.0 및 test 64.6은 미세 조정된 다양한 모델을 포함한 이전 기준선을 앞지른다.
  • TabFact에서 Codex Binder는 테스트 정확도 85.1이며 Few-shot 검색으로 86.0에 달하고, 이전의 기호 방법을 능가하고 미세 조정된 기준모델과도 경쟁력이 있다.
  • SQL만으로는 해결할 수 없는 질문(프로그램-해결 불가)에 대해 Binder가 성능을 개선하고 WikiTQ의 해결 불가 항목에서 순수 SQL보다 10.1퍼센트 포인트 앞선다.
  • 엔드 투 엔드 QA와 비교할 때 Codex Binder는 큰 이득을 보이며(예: WikiTQ에서 15.9%, TabFact에서 12.4%), 기호적 실행을 통한 더 나은 커버리지를 강조한다.
  • Binder는 해석 가능한 중간 프로그램을 제공하여 디버깅 및 오류 분석에 도움을 주고, 큰 입력 및 노이즈가 많은 콘텐츠에 대한 강건성을 보여준다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.