[Paper Review] Mind Your Format: Towards Consistent Evaluation of In-Context Learning Improvements
This paper investigates the critical yet often overlooked impact of prompt template formatting on in-context learning (ICL) performance across 19 large language models and 4 classification datasets. It demonstrates that template choice can reduce model performance to random guess levels and that optimal templates do not transfer across models or methods. To address this, the authors propose Template Ensembles—a test-time augmentation that averages predictions across multiple templates, significantly boosting average performance and robustness without requiring retraining.
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.
Motivation & Objective
- To investigate the extent to which prompt template formatting influences in-context learning performance across diverse models and datasets.
- To expose the lack of transferability of optimal templates across models, prompting methods, and demonstration sets.
- To demonstrate that current evaluation practices in ICL research are biased due to inconsistent template selection.
- To propose a practical, test-time solution that enhances robustness and average performance across varying templates.
Proposed method
- The authors evaluate 19 large language models (770M to 70B parameters) across 4 standard text classification datasets using 30 randomly sampled prompt templates per setup.
- They systematically analyze template sensitivity by measuring performance variation across different formats, including input/output verbalizers, intra- and inter-separators.
- They introduce Template Ensembles, a test-time augmentation that aggregates model predictions over multiple templates to improve robustness and average accuracy.
- They use statistical measures such as Spearman rank correlation and Intersection-over-Union (IoU) to evaluate template transferability across models.
- They compare performance across multiple ICL methods (Direct, Channel, Calibration) under varying template sets and report results averaged over 5 random seeds.

Experimental results
Research questions
- RQ1How does prompt template formatting affect in-context learning performance across diverse models and datasets?
- RQ2To what extent can the best-performing template for one model or method be transferred to another model or prompting technique?
- RQ3Can a simple test-time augmentation like Template Ensembles mitigate template sensitivity and improve average performance?
- RQ4How does the performance of the 10th-best template compare to the best template across different models and datasets?
Key findings
- A poor choice of prompt template can reduce the performance of state-of-the-art models to the level of random guessing, even with strong models and advanced prompting techniques.
- The best-performing template for a given model, dataset, and method does not transfer to other models—even within the same model family—demonstrating extreme sensitivity to template choice.
- For SST-2 and AGNews, the 10th-best template achieves approximately 90% of the accuracy of the best template, indicating moderate transferability; however, for DBPedia and TREC, performance decays more rapidly.
- Template Ensembles using 5 templates consistently outperform single-template inference across all models and datasets, with gains ranging from 2 to 10 percentage points in accuracy.
- The method reduces sensitivity to template choice and achieves higher average performance without requiring retraining or hyperparameter tuning.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.