We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:


Current browse context:


Change to browse by:


References & Citations

DBLP - CS Bibliography


(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo ScienceWISE logo

Computer Science > Computation and Language

Title: On Robustness of Prompt-based Semantic Parsing with Large Pre-trained Language Model: An Empirical Study on Codex

Abstract: Semantic parsing is a technique aimed at constructing a structured representation of the meaning of a natural-language question. Recent advancements in few-shot language models trained on code have demonstrated superior performance in generating these representations compared to traditional unimodal language models, which are trained on downstream tasks. Despite these advancements, existing fine-tuned neural semantic parsers are susceptible to adversarial attacks on natural-language inputs. While it has been established that the robustness of smaller semantic parsers can be enhanced through adversarial training, this approach is not feasible for large language models in real-world scenarios, as it requires both substantial computational resources and expensive human annotation on in-domain semantic parsing data. This paper presents the first empirical study on the adversarial robustness of a large prompt-based language model of code, \codex. Our results demonstrate that the state-of-the-art (SOTA) code-language models are vulnerable to carefully crafted adversarial examples. To address this challenge, we propose methods for improving robustness without the need for significant amounts of labeled data or heavy computational resources.
Comments: Accepted at EACL2023 (main)
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2301.12868 [cs.CL]
  (or arXiv:2301.12868v3 [cs.CL] for this version)

Submission history

From: Terry Yue Zhuo [view email]
[v1] Mon, 30 Jan 2023 13:21:00 GMT (3624kb,D)
[v2] Mon, 6 Feb 2023 07:06:53 GMT (3625kb,D)
[v3] Thu, 9 Mar 2023 11:01:02 GMT (3625kb,D)

Link back to: arXiv, form interface, contact.