Aggregating Multi-Model LLM Judgments: Weighting, Disagreement, and Uncertainty Analysis

    When multiple large language models are asked to judge the same question independently, their outputs often disagree in format, confidence, and conclusion. This article presents a practical engineering pipeline for turning raw model outputs into structured probability distributions, normalizing and weighting them, quantifying disagreement through vote share and entropy, and communicating the aggregated result with appropriate uncertainty. A complete Python example and guidance on evaluation, auditing, and safe usage are included.

    Aggregating Multi-Model LLM Judgments: Weighting, Disagreement, and Uncertainty Analysis

    1. Background

    It has become increasingly common for teams to query multiple large language models in parallel and ask each of them for an independent judgment on the same question. In sports prediction, for example, different models may reach different conclusions—“home win,” “draw,” or “away win”—from the same set of public information. Looking at a single model’s output tells you little about how reliable it is, and comparing outputs across models raises three concrete problems:

    1. Inconsistent output formats. Some models express a clear preference, others only provide textual reasoning, making direct comparison impossible.
    2. Hard-to-quantify disagreement. “Three models agree on the same outcome” and “three models each pick a different outcome” can both be loosely described as “opinions exist,” yet their credibility differs enormously.
    3. Unjustified aggregation methods. Simple voting ignores differences between models, while naive averaging can hide extreme judgments.

    The engineering answer is to solve these in sequence: first structure the outputs, then aggregate them, and finally express the result properly. The rest of this article follows that order.

    2. Structuring the Outputs

    Natural-language conclusions cannot participate in computation directly. The first step is to require every model to return results in fixed fields, for example:

    • A probability value for each outcome class;
    • A summary of the model’s reasoning;
    • The model version and parameters used at call time, for traceability.

    At the prompt level, you can explicitly require JSON output and constrain the key names and value ranges. Responses that do not conform to the format should be discarded or retried—not “salvaged” by guessing numbers out of prose.

    One important caveat: the “probabilities” models produce are not necessarily calibrated. When a model says “70%,” the real-world frequency of that outcome is not guaranteed to be 70%. Structuring only makes the numbers computable; it does not make them accurate. Weight design and uncertainty expression both need to account for this.

    3. Probability Normalization

    The numbers different models produce may not satisfy the constraint that probabilities sum to 1. Some models output percentages, some output 0–10 scores, and some only relative strengths. Before aggregation, normalize everything uniformly:

    1. Check that every value is non-negative;
    2. Compute the total and divide each value by the total;
    3. If the total is zero or a class is missing, mark that sample as invalid and exclude it from aggregation.

    After normalization, each model’s output becomes a distribution in the same probability space, and only then do downstream computations make sense.

    4. Designing Weights

    Weights determine how much influence each model has on the final result. Three common sources of weights are:

    • Historical calibration performance: Compute log loss or Brier score over past predictions; better-performing models get higher weights.
    • Information coverage: If a model has access to more complete input information, its weight can be raised accordingly.
    • Manual priors: When no historical data exists, start with equal weights and adjust as data accumulates.

    Note that weights should be updated periodically, with version records kept. Once weights become fixed, they can bake in hidden bias over long-term use—a pitfall that is easy to overlook in multi-model systems.

    5. Quantifying Disagreement

    Disagreement should be measured from at least two angles.

    The first is conclusion consistency. Count each model’s highest-probability class and compute the weighted vote share for each class. If two out of three models reach the same conclusion, that conclusion’s vote share is roughly two-thirds. This metric is intuitive, but it ignores the strength of the probabilities.

    The second is distribution entropy. For a three-class problem, the entropy of the aggregated distribution ranges from 0 to ln 3. The closer the entropy is to ln 3, the closer the class probabilities are to uniform, and the more uncertain the result. Dividing entropy by ln 3 yields a normalized uncertainty ratio between 0 and 1, convenient for cross-scenario comparison.

    Used together, the two metrics can distinguish cases like “majority agrees but confidence is low” from “a minority strongly favors one outcome while the majority is uncertain.”

    6. Example Code

    The following code demonstrates the full pipeline. The sample data is fabricated for demonstration purposes only and does not correspond to any real event.

    1. from dataclasses import dataclass
    2. from math import log
    3. LABELS = ["home", "draw", "away"]
    4. @dataclass
    5. class Judgement:
    6. source: str # Model identifier
    7. probs: dict # Raw values per class, keyed by home/draw/away
    8. weight: float = 1.0 # Weight derived from historical calibration
    9. def normalize(probs: dict) -> dict:
    10. """Normalize raw values into a probability distribution."""
    11. if any(v < 0 for v in probs.values()):
    12. raise ValueError("Probability values must be non-negative")
    13. total = sum(probs.values())
    14. if total <= 0:
    15. raise ValueError("Probability total must be positive")
    16. return {k: probs[k] / total for k in LABELS}
    17. def aggregate(judgements: list) -> dict:
    18. """Weighted average across models, producing an aggregated distribution."""
    19. total_w = sum(j.weight for j in judgements)
    20. agg = {k: 0.0 for k in LABELS}
    21. for j in judgements:
    22. p = normalize(j.probs)
    23. for k in LABELS:
    24. agg[k] += j.weight * p[k]
    25. return {k: v / total_w for k, v in agg.items()}
    26. def top_vote_share(judgements: list) -> dict:
    27. """Weighted vote share of each class being the top pick."""
    28. votes = {k: 0.0 for k in LABELS}
    29. for j in judgements:
    30. p = normalize(j.probs)
    31. top = max(p, key=p.get)
    32. votes[top] += j.weight
    33. total_w = sum(j.weight for j in judgements)
    34. return {k: v / total_w for k, v in votes.items()}
    35. def uncertainty_ratio(dist: dict) -> float:
    36. """Entropy divided by ln(3); result lies between 0 and 1."""
    37. h = -sum(p * log(p) for p in dist.values() if p > 0)
    38. return h / log(len(LABELS))
    39. if __name__ == "__main__":
    40. demo = [
    41. Judgement("model_a", {"home": 0.45, "draw": 0.30, "away": 0.25}, weight=1.0),
    42. Judgement("model_b", {"home": 2.0, "draw": 3.0, "away": 5.0}, weight=0.8),
    43. Judgement("model_c", {"home": 0.20, "draw": 0.35, "away": 0.45}, weight=1.2),
    44. ]
    45. agg = aggregate(demo)
    46. print("Aggregated distribution:", {k: round(v, 3) for k, v in agg.items()})
    47. print("Weighted vote share:", {k: round(v, 3) for k, v in top_vote_share(demo).items()})
    48. print("Uncertainty:", round(uncertainty_ratio(agg), 3))

    Three design choices in this code deserve explanation. First, normalization happens inside the aggregation function, so every input goes through identical processing. Second, vote counting and weighted averaging are implemented separately, making each easy to test in isolation. Third, the denominator of the uncertainty ratio is fixed at ln 3, keeping results comparable across batches.

    7. Interpreting and Presenting the Results

    Aggregated results are ultimately consumed by humans or downstream systems, and how they are presented directly affects decision quality. Follow these principles:

    1. Show the distribution together with the uncertainty. Outputting only “the most likely outcome” hides disagreement; include per-class probabilities and the uncertainty ratio.
    2. Distinguish consistency from accuracy. Agreement among multiple models only suggests they share similar information sources or reasoning patterns—it does not guarantee the conclusion is correct.
    3. Keep the raw outputs. For auditing or post-mortems, you need to trace back the reasoning and values each model produced at the time.
    4. Avoid over-reading small samples. When the available sample is small, clearly flag the limitations of any statistical conclusion.

    8. Evaluation and Continuous Improvement

    After a multi-model system goes live, it should be evaluated continuously against historical data. Recommended steps:

    • Split training and validation data chronologically to avoid information leakage from the future;
    • Compute log loss and calibration curves for each model and for the aggregated result, checking whether probabilities are systematically biased high or low;
    • Periodically examine correlations between models. If several models are highly correlated, adding more of them adds little independent information to the aggregate;
    • Record the reason and effect of every weight adjustment, building a traceable change history.

    9. Scope and Cautions

    The approach in this article transfers to many scenarios, including public-opinion analysis, risk assessment, and content moderation. Whatever the domain, keep the following in mind:

    • The method’s output is a probability estimate, not a definitive conclusion, and cannot substitute for professional judgment;
    • In domains involving finance, betting, or other scenarios where losses are possible, comply with local laws and regulations and have qualified personnel own the decisions;
    • Verify that input data sources are legally and properly obtained, and avoid including personal private information.

    10. Summary

    The core of multi-model judgment comes down to three things: structure the outputs, quantify the disagreement, and communicate the uncertainty clearly. Normalization makes the numbers computable; weighted aggregation ensures information is used sensibly; entropy and vote share together characterize the degree of disagreement. On the engineering side, break the pipeline into small, testable functions and keep complete input/output records. Only then can a multi-model system’s conclusions be reviewed, improved, and used cautiously in real-world settings.