pith. sign in

arxiv: 2401.06766 · v3 · pith:IZRMMLHInew · submitted 2024-01-12 · 💻 cs.CL

Mind Your Format: Towards Consistent Evaluation of In-Context Learning Improvements

classification 💻 cs.CL
keywords templatelearningmodelstemplatesdifferentin-contextperformanceprompt
0
0 comments X
read the original abstract

Large language models demonstrate a remarkable capability for learning to solve new tasks from a few examples. The prompt template, or the way the input examples are formatted to obtain the prompt, is an important yet often overlooked aspect of in-context learning. In this work, we conduct a comprehensive study of the template format's influence on the in-context learning performance. We evaluate the impact of the prompt template across 21 models (from 770M to 70B parameters) and 4 standard classification datasets. We show that a poor choice of the template can reduce the performance of the strongest models and inference methods to a random guess level. More importantly, the best templates do not transfer between different setups and even between models of the same family. Our findings show that the currently prevalent approach to evaluation, which ignores template selection, may give misleading results due to different templates in different works. As a first step towards mitigating this issue, we propose Template Ensembles that aggregate model predictions across several templates. This simple test-time augmentation boosts average performance while being robust to the choice of random set of templates.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 4 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. The Prompt Report: A Systematic Survey of Prompt Engineering Techniques

    cs.CL 2024-06 accept novelty 7.0

    This systematic survey organizes prompt engineering into a taxonomy of 58 LLM techniques and 40 others, supplies a shared vocabulary, and offers guidelines for state-of-the-art models.

  2. SERE: Structural Example Retrieval for Enhancing LLMs in Event Causality Identification

    cs.CL 2026-05 unverdicted novelty 6.0

    SERE improves LLM performance on event causality identification by selecting few-shot examples via three structural metrics to mitigate causal bias.

  3. Harnessing non-adversarial robustness in large language models

    cs.AI 2026-05 unverdicted novelty 3.0

    Debiasing via fine-tuning can enhance LLM robustness to semantically neutral prompt perturbations by addressing perturbation-induced bias in neural network outputs.

  4. Generative AI Technologies, Techniques & Tensions: A Primer

    cs.CY 2026-04 unverdicted novelty 2.0

    Generative AI systems arise from statistical data processing that produces human-like outputs, creating a mismatch with traditional computer expectations and positioning educational researchers to lead in studying and...