Error Analysis

Error analysis studies where and why a model fails. It turns a single aggregate metric into actionable failure categories using Failure mode taxonomy.

For a dataset partitioned into groups , group risk is:

Aggregate performance can hide large group-specific failures.

Error Decomposition

For a metric or loss , slice-level performance is:

The worst-slice gap is:

For classification, separate false positives and false negatives:

For ranking or screening, inspect top-ranked false positives and missed actives, not only aggregate enrichment.

Common Slices

  • Class, label range, or target type.
  • Data source, time, protocol, or collection batch.
  • Modality, sequence length, resolution, graph size, or structure quality.
  • Molecular scaffold, protein family, pocket type, assay type, or activity cliff.
  • Confidence level, uncertainty bucket, or calibration bin.
  • Accepted vs abstained examples in selective prediction workflows.

Failure Attribution

Failure SourceDiagnostic QuestionFollow-Up
DataIs the label wrong, noisy, censored, or inconsistent?audit label semantics and provenance
SplitIs the test example near a train example or outside support?check leakage and applicability domain
RepresentationDid preprocessing remove needed information?inspect features, tokenization, conformers, structures
ObjectiveDoes the training loss optimize the wrong behavior?compare objective and metric
ArchitectureIs the inductive bias mismatched to the object?inspect modality and symmetry requirements
MetricDoes the metric hide the user-facing failure?add slice, calibration, or ranking diagnostics
SystemDid batching, precision, decoding, or timeout change behavior?reproduce with controlled inference settings

Computational Biology Error Slices

TaskUseful Slices
Molecular propertyscaffold, molecular weight, charge, stereochemistry, assay source
Activity predictiontarget family, endpoint, unit, censoring, active threshold
Dockingreceptor state, ligand flexibility, pose RMSD bucket, failed docking
Protein modelingsequence identity, domain family, length, structure resolution, template availability
Virtual screeningactive prevalence, decoy source, library subset, top-K budget

Error Analysis Output

An error analysis section should usually include:

ItemDescription
Top failure slicesthe largest or most important groups where performance degrades
Representative examplesa few examples with input, prediction, label, and context
Competing explanationsdata issue, model issue, objective mismatch, metric mismatch
Next experimentthe smallest check that would distinguish explanations

Checks

  • Which examples dominate the error?
  • Are errors concentrated in a group the benchmark underweights?
  • Are false positives and false negatives caused by different mechanisms?
  • Does the error reflect data quality, model architecture, objective, or metric mismatch?
  • Can the failure category guide the next experiment?
  • Does the slice have enough examples for the claim?
  • Are examples selected before looking at the desired conclusion?