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

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

12 Jan 2024arXiv:2401.06766archive 2025-07-28

Anton Voronov, Lena Wolf, Max Ryabinin

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2401.06766")

Code

Syntology Ran 6 of 10 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 6 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yandex-research/mind-your-format officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 6 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

6ran
4unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from yandex-research/mind-your-format. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

find_current_run yandex-research/mind-your-format/utils.py official repository ran Apache-2.0 (permissive) · ac21fd94625fab06 · report
get_examples yandex-research/mind-your-format/examples.py official repository ran Apache-2.0 (permissive) · 39c1250cde8fa4e6 · report
get_loss yandex-research/mind-your-format/evaluate.py official repository ran Apache-2.0 (permissive) · 8cde6f9b2356a263 · report
get_results_pd yandex-research/mind-your-format/utils.py official repository ran fingerprinted Apache-2.0 (permissive) · 88bc6dc454b35322 · report
get_results_torch yandex-research/mind-your-format/utils.py official repository ran fingerprinted Apache-2.0 (permissive) · 4784a7ec29b42cc7 · report
load_examples yandex-research/mind-your-format/examples.py official repository ran Apache-2.0 (permissive) · 6047b9a8b85a7ea6 · report
classify yandex-research/mind-your-format/evaluate.py official repository unverified Apache-2.0 (permissive) · aba3849d1ad68f1f · report
load_generator yandex-research/mind-your-format/models.py official repository unverified Apache-2.0 (permissive) · a1f9ff8d28378db4 · report
load_split_dataset yandex-research/mind-your-format/data.py official repository unverified Apache-2.0 (permissive) · 21c03a2d2acf838e · report
predict yandex-research/mind-your-format/evaluate.py official repository unverified Apache-2.0 (permissive) · 5b3e1a3d02d90a79 · report

Tasks

In-Context Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections