In this article
Declare ordinal category order before weighted kappa; agreement weights are not automatically distances between arbitrary class codes.
The comparison being tested
A benchmark stores rubric categories as strings and computes weighted agreement between a judge and a reviewer. The metric’s default label ordering differs from the intended ordinal severity scale. The score changes after categories are renamed although the underlying paired judgments are unchanged. A representation choice has altered the disagreement weights, not the actual quality of the answers.
The confounding mechanism
Scikit-learn exposes unweighted, linear and quadratic Cohen kappa. Its implementation constructs weighting from category positions in the indexed confusion matrix. The confusion-matrix reference allows an explicit label order. Therefore, an ordinal weighting requires the declared order; arbitrary lexical order or numeric code spacing is not an independently justified severity model. Agreement also differs from correctness against verified task outcomes.
Fix the experimental contract
Define the rubric categories, whether they are nominal or ordered, and the meaning of adjacent versus distant disagreements. Preserve a stable category-to-position mapping with the evaluator artifact. Record weighting and any sample weights separately. Do not silently drop a category to improve the score: selecting a label subset changes the evaluated population and potentially the expected-agreement calculation.
A step-by-step comparison
Create paired synthetic judgments with known adjacent and distant disagreements under the intended rubric. Compute the metric with the declared order and a deliberately permuted order. Keep an unweighted comparison as a different diagnostic question. Rename display labels while preserving the mapping and verify invariance. Include a degenerate agreement case to check undefined-result handling rather than replacing it automatically with perfect agreement.
Evidence required for the result
Acceptance evidence includes paired judgments, category mapping, confusion matrix, weighting configuration and metric version. Show the effect of ordering and any excluded labels. The result should remain reproducible after a display-name change. A favorable weighted score cannot establish that every serious error was reviewed, and the scalar must not conceal a rare but important disagreement category in the original matrix.
Interpretation and limits
Ordinal distance assumptions may be inappropriate for a rubric with incomparable error types. Use an analysis matching the declared question instead of choosing whichever weighting yields the best value. This protocol validates the agreement calculation and its representation contract. It does not validate a judge’s factual reasoning, prove reviewer infallibility or establish a universal threshold for acceptable model quality.
Primary references and related reading
Declare ordinal category order before weighted kappa; agreement weights are not automatically distances between arbitrary class codes. scikit-learn Cohen kappa reference; scikit-learn confusion matrix label order; scikit-learn agreement implementation.
The proposed investigation of weighted kappa category order is not an executed deployment benchmark. Related reading: Annotator vote distributions: soft targets need a denominator and class order; MT-Bench: audit multi-turn judging conditions.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.