Metric Selection
Metric selection chooses which numbers should decide model quality for a task. It comes after Task specification and before comparing models.
A metric should estimate the cost or utility that matters:
where is the candidate metric set. This is a conceptual rule: choose the metric whose behavior best matches the decision the result will support.
Selection Order
- Output space: class, scalar, ranking, sequence, mask, graph, coordinate, or action.
- Decision: threshold, ranking, retrieval, generation, screening, regression, or human review.
- Error cost: false positive, false negative, invalid output, low utility, miscalibration, or unsafe action.
- Split: IID, temporal, source, scaffold, protein-family, or deployment-like split.
- Primary metric: the number used for model selection or final comparison.
- Diagnostics: calibration, uncertainty, subgroup error, robustness, or error analysis.
Common Choices
| Task behavior | Primary metric candidates | Diagnostics |
|---|---|---|
| Hard classification | accuracy, balanced accuracy, F1 | confusion matrix, threshold sweep |
| Imbalanced detection | AUPRC, recall at precision, F1 | calibration, false-positive analysis |
| Probability quality | NLL, Brier score, ECE | reliability diagram |
| Regression | MAE, RMSE, | residual analysis, calibration if probabilistic |
| Ranking/retrieval | MRR, NDCG, recall@k, precision@k | query-slice error analysis |
| Generation | validity, utility, diversity, novelty | human or task-specific checks |
| Structure/pose | RMSD, clash/geometry checks, pose plausibility | per-complex failure analysis |
| Agent/tool use | task success, tool-call validity, cost, recovery | trace review and safety checks |
Primary vs Diagnostic
The primary metric should answer the main comparison question. Diagnostics explain why the primary metric moved.
For a model family and validation metric :
Diagnostics should not silently become selection criteria unless the protocol says so before evaluation.
Checks
- What decision will be made from the metric?
- Is the output space compatible with the metric?
- Are invalid outputs counted, filtered, repaired, or ignored?
- Is the metric robust to class imbalance, duplicates, or grouped examples?
- Is calibration needed because downstream use depends on confidence?
- Is the primary metric named before model selection?
- Are diagnostic metrics separated from selection metrics?
- Does the metric remain valid under the chosen split and deployment boundary?