Work

Complementary Explanations for Effective In-Context Learning

Year: 2023
Type: conference-paper
Abstract: Large language models (LLMs) have exhibited remarkable capabilities in learning from explanations in prompts, but there has been limited understanding of exactly how these explanations function or why they are effective.This work aims to better understand the mechanisms by which explanations are used for in-context learning.We first study the impact of two different factors on the performance of prompts with explanations: the computation trace (the way the solution is decomposed) and the natural language used to express the prompt.By perturbing explanations on three controlled tasks, we show that both factors contribute to the effectiveness of explanations.We further study how to form maximally effective sets of explanations for solving a given test query.We find that LLMs can benefit from the complementarity of the explanation set: diverse reasoning skills shown by different exemplars can lead to better performance.Therefore, we propose a maximal marginal relevance-based exemplar selection approach for constructing exemplar sets that are both relevant as well as complementary, which successfully improves the incontext learning performance across three realworld tasks on multiple LLMs.
Language: English
Open Access status: gold
OpenAlex ID: W4385571505
FWCI: 8.247
Cites: 37
Cited by: 46
Related to: 10