On Robustness of Prompt-based Semantic Parsing with Large Pre-trained Language Model: An Empirical Study on Codex (2301.12868v3)
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 LLMs trained on code have demonstrated superior performance in generating these representations compared to traditional unimodal LLMs, 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 LLMs 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 LLM of code, \codex. Our results demonstrate that the state-of-the-art (SOTA) code-LLMs 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.
- Terry Yue Zhuo (32 papers)
- Zhuang Li (69 papers)
- Yujin Huang (18 papers)
- Fatemeh Shiri (14 papers)
- Weiqing Wang (54 papers)
- Gholamreza Haffari (141 papers)
- Yuan-Fang Li (90 papers)