Research ·
MARGIN: Runtime Confidence Calibration for Multi-Agent Foundation Model Coordination
MARGIN is a runtime calibration method that corrects heterogeneous LLMs' self-reported confidence online, improving multi-agent answer selection without retraining or calibration data.

A paper on Hugging Face presents MARGIN (Multi-Agent Runtime Grading via Incremental Normalisation), a method for calibrating the confidence scores that foundation models report when a coordinator must pick between their answers. Self-reported confidence varies in meaning across models and workloads; on BigCodeBench across 18 models, higher average confidence actually correlates with lower accuracy, and when choosing between one correct and one incorrect response, the more confident model is right only 42% of the time.
MARGIN works at runtime: it tracks each model's recent accuracy versus stated confidence within confidence bands, uses their ratio to correct reported confidence, and blends sparse-band corrections toward a model-level estimate. It requires no retraining, no model internals, and no held-out calibration set. Evaluation covers code generation, question answering, and mathematics using an 18-model pool and a nine-model subset for distribution-shift tests. Against five online calibration baselines given identical feedback, MARGIN achieves lower post-shift expected calibration error than all five in two code-generation transitions and four in a question-answering transition, with the remaining comparison inconclusive.
Calibration improves answer selection: on HumanEval and MBPP the coordinator picks the correct answer 81% of the time when one candidate is right and one wrong, up from roughly half, and on BigCodeBench correct-selection rises from 14% to 28%. Across three code-generation benchmarks, selection accuracy improves by 4.3 and 14.0 percentage points on two of three relative to uncalibrated confidence weighting. For anyone building multi-agent or multi-model systems, this shows verbalized confidence can be actively misleading and that model-specific online calibration can meaningfully improve coordination when correctness feedback is available.
References
- Hugging Face · huggingface.co
Read the full story at Hugging Face ↗Like, save or discuss on Buzz