Noisy Exemplars Make Large Language Models More Robust: A Domain-Agnostic Behavioral Analysis

Hongyi Zheng, Abulhair Saparov
11/1/2023
14 citations
cs.CLcs.LG

Official code: Hiroki39/Noisy-Exemplars-Make-Large-Language-Models-More-Robust (5 stars, Python, last commit 2023-08-28).

Abstract

Recent advances in prompt engineering enable large language models (LLMs) to solve multi-hop logical reasoning problems with impressive accuracy. However, there is little existing work investigating the robustness of LLMs with few-shot prompting techniques.

Show full abstract

Therefore, we introduce a systematic approach to test the robustness of LLMs in multi-hop reasoning tasks via domain-agnostic perturbations. We include perturbations at multiple levels of abstractions (e.g. lexical perturbations such as typos, and semantic perturbations such as the inclusion of intermediate reasoning steps in the questions) to conduct behavioral analysis on the LLMs. Throughout our experiments, we find that models are more sensitive to certain perturbations such as replacing words with their synonyms. We also demonstrate that increasing the proportion of perturbed exemplars in the prompts improves the robustness of few-shot prompting methods.

View on arXivView PDF

Code Implementations(1)

NYU DS-GA 3001-003 Final Project

50Python, ShellApr 4, 20233 years ago
prompt-engineering

Similar Papers

Cite this paper

@article{zheng2023noisy,
  title  = {Noisy Exemplars Make Large Language Models More Robust: A Domain-Agnostic Behavioral Analysis},
  author = {Hongyi Zheng and Abulhair Saparov},
  year   = {2023},
  eprint = {2311.00258},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.00258v1}
}

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/2311.00258.svg)](https://codeofpaper.com/paper/2311.00258)

Discussion