NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

EPA: Easy Prompt Augmentation on Large Language Models via Multiple Sources and Multiple Targets

Hongyuan Lu, Wai LamarXiv 2023

Abstract

Large language models (LLMs) have demonstrated remarkable capabilities in various NLP tasks through task prompting. Performance is typically enhanced by prepending task demonstrations to the prompt, with more demonstrations generally leading to better results. However, manually crafting these demonstrations is a cumbersome process for users. This paper introduces EPA (Easy Prompt Augmentation), a cost-effective framework that minimizes user effort by automatically augmenting a small set of human-written demonstrations into multiple diverse examples through paraphrasing. Extensive experiments across natural language understanding (NLU) and generation (NLG) tasks—including machine translation for dozens of languages and natural language inference—show that EPA consistently improves model performance.

Introduction

In-context learning (ICL) has become the standard paradigm for interacting with LLMs. By providing a few examples (demonstrations), users can guide the model to perform specific tasks. Despite its effectiveness, ICL faces two primary hurdles: the manual effort required to write high-quality demonstrations and the model's sensitivity to the specific phrasing of those examples. If a user provides only a single demonstration, the model may overfit to that specific syntactic structure rather than learning the underlying task logic.

EPA addresses these challenges by leveraging the power of paraphrasing to provide "semantic consistency with syntactic diversity." By presenting the model with multiple "surface forms" of the same meaning, EPA helps the model generalize better from limited human input.

The EPA Framework

The core mechanism of EPA involves taking a minimal set of demonstrations and expanding them automatically:

  1. Paraphrasing: Given a source/target pair, EPA uses an LLM (such as ChatGPT) to generate multiple paraphrases of the source text.
  2. Target Generation: For translation tasks, the NLLB (No Language Left Behind) translator is used to ensure target-side accuracy. For other tasks, the LLM paraphrases the target side as well.
  3. Concatenation: Instead of a single example $[x_d, y_d]$, the prompt is augmented with a sequence of the original example followed by its paraphrased versions: $[x_d, y_d, x_{d2}, y_{d2}, \dots, x_{dn}, y_{dn}]$.

This method ensures that the model sees the same underlying concept expressed in various ways, which serves to "anchor" the task more effectively than simple repetition.

Key Experimental Insights

Diversity vs. Repetition

A critical finding of the study is the comparison between EPA and a "Copy-9" baseline, where a single example is simply repeated nine times. Results indicated that simple repetition often degrades performance, as the model likely overfits to the specific vocabulary of the repeated example. In contrast, the syntactic diversity provided by EPA's paraphrases consistently leads to gains.

Machine Translation and Low-Resource Languages

EPA proves particularly transformative for low-resource languages. In English-to-Kashmiri translation, for example, scores improved nearly six-fold. Furthermore, when evaluating with COMET scores—which align more closely with human judgment than traditional metrics—EPA frequently moved scores from negative to positive values across a wide array of languages.

COMET scores for machine translation across various languages, comparing standard GPT prompting with EPA.

Reasoning and Inference

In Natural Language Inference (NLI) tasks, which require the model to determine logical relationships between sentences, EPA provided significant accuracy boosts. On the MNLI dataset, EPA achieved a 5.01% accuracy improvement over standard 3-shot prompting, demonstrating that diverse demonstrations help the model better grasp logical entailment.

Accuracy results for Natural Language Inference (SNLI and MNLI) comparing 1-shot and 3-shot performance between GPT and EPA.

Conclusion

EPA offers a simple yet powerful workaround to the "cumbersome" task of writing demonstrations for in-context learning. By automatically generating diverse paraphrases, EPA reduces human workload while simultaneously making LLMs more robust to prompt variations. While the method's success depends on the quality of the underlying paraphraser, its consistent performance across 45 languages and multiple NLU/NLG tasks marks it as a highly effective tool for prompt engineering. Future work may explore the limits of these gains as the number of initial human-annotated examples increases.

Summary updated

BibTeX
@misc{lu2023epa,
  author = {Hongyuan Lu and Wai Lam},
  title = {{EPA: Easy Prompt Augmentation on Large Language Models via Multiple Sources and Multiple Targets}},
  year = {2023},
  eprint = {2309.04725},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.04725},
}
Figure