Skip to content
Open access

Consensus Ensembles for Zero-Shot Algorithm Classification with Large Language Models

Oct 2026 · Electronics · Vol 15, pp. 4548 · 0 citations · 21 references

TL;DR

Findings support consensus-based ensembles of these five models as a scalable alternative to manual algorithmic annotation and provide actionable guidance for designing robust aggregation pipelines in unsupervised settings.

Abstract

Manual classification of algorithmic problems is costly and inconsistent, although it remains essential for curriculum sequencing, recommendation systems, and quality control on competitive programming platforms. To address this limitation, this study investigates whether consensus-based, zero-shot classification using large language models can replace manual annotation. Five architecturally diverse models were evaluated: Claude Sonnet v4.6 (CS4.6), DeepSeek v3.2 (DS3.2), Gemini v3 Flash (G3F), GPT v5.4 (GPT5.4), and Grok v4.1 Fast (GRK4.1). Each model independently classified 2911 LeetCode problems into 13 mutually exclusive algorithm categories to generate predicted labels and confidence vectors. These outputs served as the basis for systematically comparing eight consensus aggregation methods and five disagreement-resolution strategies. The five-model ensemble achieved at least 4/5 agreement on 85.3% of the problems, demonstrating substantial overall inter-rater reliability. While consensus weakened as problem difficulty increased, it was notably lowest for the Algorithmic Paradigms group because category boundaries depend on computational properties that are not directly visible in source code. Six aggregation methods converged within a narrow 90.0–90.1% average-agreement band. A Friedman omnibus test with Holm–Bonferroni-corrected pairwise comparisons showed that this band separates further into two statistically distinguishable trios differing by only 0.07–0.08 percentage points, illustrating that statistical significance at this sample size does not imply practical importance. An unsupervised adaptation of pairwise ranking from LLM-Blender reached 89.1%, whereas Borda Count underperformed at 83.1%. Among disagreement-resolution strategies, progressive ensemble pruning proved most effective by resolving 92.5% of cases. Calibration varied substantially across the panel, with GPT5.4 showing the largest calibration gap (0.124) and GRK4.1 showing the smallest (0.023). This variation suggests that confidence-weighted aggregation is effective only when applied selectively to well-calibrated models. These findings support consensus-based ensembles of these five models as a scalable alternative to manual algorithmic annotation and provide actionable guidance for designing robust aggregation pipelines in unsupervised settings.

Read PDF

Similar papers

#artificial intelligence Preprint Sep 2026

SCX Router: Streaming Zero-Shot Model Selection with a Decoder-KV Classifier and a Real-World Task Ontology

A lightweight GLiClass-based router is introduced, a lightweight GLiClass-based router that assigns a suitability score to each inference-time model label without autoregressive generation, and a released 0.6B-parameter checkpoint combines a Qwen3 decoder with a shallow bidirectional scorer.

Ihor Stepanov, Aleksandr Smechov, Mykhailo Shtopko et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Post-Training Language Models for Gold-Medal Performance in Coding Competitions

Competitive programming has become a key test of large language model reasoning, with international competitions such as IOI and ICPC representing its most challenging settings. We present an end-to-end specialization pipeline combining large-scale problem curation, synthetic reasoning traces, supervised fine-tuning (S...

Aleksander Ficek, Sean Narenthiran, Mehrzad Samadi et al. · 0 citations
Preprint Oct 2026

MYOPIA: Understanding the Limits of Tree-Based Reasoning in Vision-Language Models

Decision trees can make vision-language model (VLM) classification interpretable by replacing a single prediction with a sequence of root-to-leaf questions. However, the accuracy cost of this greedy, non-backtracking procedure remains unclear. We introduce \textbf{MYOPIA}, a benchmark comprising four LLM-generated, hum...

Islam Mesabah, Sary Elmansoury, Gerrit Großmann et al. · 0 citations
#machine learning Preprint Oct 2026

FunDM: Cheap&Label-Free Decision Models from Frozen Language Models

Decision models such as Jev score candidate answers or actions. A small decision head trained label-free can recover about 99% of a frozen language model's multiple-choice accuracy while using only two-thirds of its transformer layers. It learns the full model's answer probabilities with KL divergence, without correct-...

Ujjawal K. Panchal · 0 citations

Clustering-based Prompt Optimization for LLM Evaluation

The cluster loop yields the strongest held-out rubric on both evaluator tasks from a commercial search vertical, and is the only method robustly positive on both.

Jinyoung Kim, N. Corp, Sun Kim et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.