Papers › On Task Performance and Model Calibration with Supervised and Self-Ensembled...

On Task Performance and Model Calibration with Supervised and Self-Ensembled In-Context Learning

21 Dec 2023arXiv:2312.13772archive 2025-07-28

Chengzu Li, Han Zhou, Goran Glavaš, Anna Korhonen, Ivan Vulić

Following the standard supervised fine-tuning (SFT) paradigm, in-context learning (ICL) has become an efficient approach propelled by the recent advancements in large language models (LLMs), yielding promising performance across various tasks in few-shot data setups. However, both paradigms are prone to suffer from the critical problem of overconfidence (i.e., miscalibration), especially in such limited data setups. In this work, we deliver an in-depth analysis of the behavior across different choices of learning methods from the perspective of both performance and calibration, as well as their interplay. Through extensive controlled experiments, we find that simultaneous gains for both task performance and calibration are difficult to achieve, and the problem of miscalibration exists across all learning methods in low-resource scenarios. To address this challenging trade-off between performance and calibration, we then investigate the potential of self-ensembling techniques applied at different modeling stages (e.g., variations of in-context examples or variations in prompts or different ensembling strategies). We justify the feasibility of self-ensembling on SFT in addition to ICL, to make the predictions more calibrated and have comparable or even better performance. Our work sheds light on which learning paradigm to choose and how to enhance both task performance and calibration of LLMs.

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="2312.13772")

Code

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

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

cambridgeltl/ensembled-sicl officialmentioned in papermentioned on GitHubpytorch 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; 7 ran; 0 honoured the contract we drafted; 3 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.

7ran
3unverified

Licence: 10 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 cambridgeltl/ensembled-sicl. “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.

assert_equal cambridgeltl/ensembled-sicl/ensemble_postprocess.py official repository ran no licence file found · pointer only · ce00a88a439084fe · report
calculate_f1 cambridgeltl/ensembled-sicl/utils/evaluator.py official repository ran fingerprinted no licence file found · pointer only · bdb225300bc83baa · report
check_results_num cambridgeltl/ensembled-sicl/ensemble_postprocess.py official repository ran no licence file found · pointer only · b815df4e13d2c327 · report
create_peft_config cambridgeltl/ensembled-sicl/utils/peft_scripts.py official repository ran no licence file found · pointer only · f6f91e27664a2312 · report
load_result_json cambridgeltl/ensembled-sicl/ensemble_postprocess.py official repository ran no licence file found · pointer only · 7d48d8f5188bc43a · report
precision cambridgeltl/ensembled-sicl/utils/evaluator.py official repository ran no licence file found · pointer only · 73e30f54a5973543 · report
recall cambridgeltl/ensembled-sicl/utils/evaluator.py official repository ran no licence file found · pointer only · 9826727515a93869 · report
load_huggingface_model cambridgeltl/ensembled-sicl/utils/load_model.py official repository unverified no licence file found · pointer only · adaa8be3ad578693 · report
load_model cambridgeltl/ensembled-sicl/utils/load_model.py official repository unverified no licence file found · pointer only · 4ae9e05f3029c194 · report
load_tokenizer cambridgeltl/ensembled-sicl/utils/load_model.py official repository unverified no licence file found · pointer only · 618ad395c8046ae0 · report

Tasks

In-Context Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SFT

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