Saved in:
Bibliographic Details
Main Authors: He, Xuanli, Wu, Yuxiang, Camburu, Oana-Maria, Minervini, Pasquale, Stenetorp, Pontus
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2311.07556
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914802944704512
author He, Xuanli
Wu, Yuxiang
Camburu, Oana-Maria
Minervini, Pasquale
Stenetorp, Pontus
author_facet He, Xuanli
Wu, Yuxiang
Camburu, Oana-Maria
Minervini, Pasquale
Stenetorp, Pontus
contents Recent studies demonstrated that large language models (LLMs) can excel in many tasks via in-context learning (ICL). However, recent works show that ICL-prompted models tend to produce inaccurate results when presented with adversarial inputs. In this work, we investigate whether augmenting ICL with natural language explanations (NLEs) improves the robustness of LLMs on adversarial datasets covering natural language inference and paraphrasing identification. We prompt LLMs with a small set of human-generated NLEs to produce further NLEs, yielding more accurate results than both a zero-shot-ICL setting and using only human-generated NLEs. Our results on five popular LLMs (GPT3.5-turbo, Llama2, Vicuna, Zephyr, and Mistral) show that our approach yields over 6% improvement over baseline approaches for eight adversarial datasets: HANS, ISCS, NaN, ST, PICD, PISP, ANLI, and PAWS. Furthermore, previous studies have demonstrated that prompt selection strategies significantly enhance ICL on in-distribution test sets. However, our findings reveal that these strategies do not match the efficacy of our approach for robustness evaluations, resulting in an accuracy drop of 8% compared to the proposed approach.
format Preprint
id arxiv_https___arxiv_org_abs_2311_07556
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Using Natural Language Explanations to Improve Robustness of In-context Learning
He, Xuanli
Wu, Yuxiang
Camburu, Oana-Maria
Minervini, Pasquale
Stenetorp, Pontus
Computation and Language
Recent studies demonstrated that large language models (LLMs) can excel in many tasks via in-context learning (ICL). However, recent works show that ICL-prompted models tend to produce inaccurate results when presented with adversarial inputs. In this work, we investigate whether augmenting ICL with natural language explanations (NLEs) improves the robustness of LLMs on adversarial datasets covering natural language inference and paraphrasing identification. We prompt LLMs with a small set of human-generated NLEs to produce further NLEs, yielding more accurate results than both a zero-shot-ICL setting and using only human-generated NLEs. Our results on five popular LLMs (GPT3.5-turbo, Llama2, Vicuna, Zephyr, and Mistral) show that our approach yields over 6% improvement over baseline approaches for eight adversarial datasets: HANS, ISCS, NaN, ST, PICD, PISP, ANLI, and PAWS. Furthermore, previous studies have demonstrated that prompt selection strategies significantly enhance ICL on in-distribution test sets. However, our findings reveal that these strategies do not match the efficacy of our approach for robustness evaluations, resulting in an accuracy drop of 8% compared to the proposed approach.
title Using Natural Language Explanations to Improve Robustness of In-context Learning
topic Computation and Language
url https://arxiv.org/abs/2311.07556