Non-Programmers Can Label Programs Indirectly via Active Examples: A Case Study with Text-to-SQL

Ruiqi Zhong, Charlie Snell, Dan Klein, Jason Eisner
5/25/2022
cs.CLcs.AIcs.PL

Official code: ruiqi-zhong/EMNLP23-APEL (5 stars, Python, last commit 2023-10-27).

Abstract

Can non-programmers annotate natural language utterances with complex programs that represent their meaning? We introduce APEL, a framework in which non-programmers select among candidate programs generated by a seed semantic parser (e.g., Codex).

Show full abstract

Since they cannot understand the candidate programs, we ask them to select indirectly by examining the programs' input-ouput examples. For each utterance, APEL actively searches for a simple input on which the candidate programs tend to produce different outputs. It then asks the non-programmers only to choose the appropriate output, thus allowing us to infer which program is correct and could be used to fine-tune the parser. As a first case study, we recruited human non-programmers to use APEL to re-annotate SPIDER, a text-to-SQL dataset. Our approach achieved the same annotation accuracy as the original expert annotators (75%) and exposed many subtle errors in the original annotations.

View on arXivView PDF

Code Implementations(1)

Some code and data for the paper: "Labeling Programs with Non-Programmers Indirectly via Active Examples: A Case Study with Text-to-SQL"

50PythonOct 13, 20233 years ago

Similar Papers

Cite this paper

@article{zhong2022nonprogrammers,
  title  = {Non-Programmers Can Label Programs Indirectly via Active Examples: A Case Study with Text-to-SQL},
  author = {Ruiqi Zhong and Charlie Snell and Dan Klein and Jason Eisner},
  year   = {2022},
  eprint = {2205.12422},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.12422}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.12422.svg)](https://codeofpaper.com/paper/2205.12422)

Discussion