This is the official repo for the paper Harnessing Consistency for Robust Test-Time LLM Ensemble in EACL 2026.
CoRE is a plug-and-play technique that improves ensemble robustness by promoting consistency across both tokens and models. CoRE enjoys the following key benefits:
-
Bi-level consistency: penalize uncertain, highly inconsistent tokens via token-level consistency, while prioritizing confident and consistent model outputs via model-level consistency
-
Plug-and-play integration: works with diverse ensemble methods and model combinations with no additional inference cost
-
Consistent gains: improves both ensemble accuracy and robustness across benchmarks, ensembles, and model combinations
We evaluate ensemble results with (CoRE) and without (Vanilla) CoRE on 6 benchmark datasets, spanning reasoning, summarization, knowledge, and comprehensive examination.
- Ensemble results: CoRE consistently enhances vanilla ensemble performance and achieves more stable ensemble.
- Base model results: we use blue/yellow/red to denote Top-1/2/3 models.
- Robustness results: CoRE enhances ensemble robustness against token noise (noises on token alignment) and probability noise (noises on logits).
git clone https://github.com/zhichenz98/CoRE-EACL26
cd CoRE-EACL26
ENV_NAME=core PYTHON_VERSION=3.9 INSTALL_FLASH_ATTN=1 bash setup.sh
conda activate core
Perform model inference via either command or bash file
python src/run.py --main_model InternLM7b --assist_model OpenChat --align_method mined --variant consist-rbf --task NQ
--align_method: token alignment method; choose frommined, unite, eva, gac.--variant: CoRE variant; choose fromvanillaor CoRE variantsconsist-linear, consist-rbf, consist-power,consist-rec.--task: choose fromGSM8K, PIQA, SAMSum, TriviaQA, NQ, MMLU.
bash run.sh
bash eval.sh
This repo is largely built upon the wonderful DeepEN.
💫 If you find CoRE helpful, please kindly give us a star and cite below. Thanks!
@article{zeng2025harnessing,
title={Harnessing Consistency for Robust Test-Time LLM Ensemble},
author={Zeng, Zhichen and Yu, Qi and Lin, Xiao and Qiu, Ruizhong and Ning, Xuying and Wei, Tianxin and Yan, Yuchen and He, Jingrui and Tong, Hanghang},
journal={arXiv preprint arXiv:2510.13855},
year={2025}
}