Label Semantics

Label semantics define what a target value actually means. Two datasets can use the same label name while measuring different biological, behavioral, visual, or operational concepts.

A label is produced by a measurement or annotation process:

where represents annotators, assay protocol, instrument, or source, and represents quality control or preprocessing decisions.

Common Label Questions

  • Is the label observed directly, measured indirectly, inferred, or curated?
  • Is it binary, multiclass, multilabel, ordinal, continuous, censored, weak, or missing?
  • Does it represent ground truth, proxy signal, preference, rank, or a noisy observation?
  • Is the threshold arbitrary or domain-defined?
  • Are negative labels true negatives or simply unobserved positives?

Label Tuple

For supervised AI and computational biology notes, record a label as:

The same numeric value can mean different things if any field changes. For example, an activity value from one assay should not be pooled with another endpoint unless the note explains the harmonization rule.

FieldQuestion
EndpointWhat is measured: affinity, inhibition, toxicity, expression, relevance, class, preference, or reward?
UnitIs the value in molar units, transformed units, probability, count, rank, score, or category?
DirectionDoes larger mean stronger, weaker, safer, more likely, or worse?
ThresholdHow is a continuous measurement converted to a class or decision?
CensoringIs the value exact, upper-bounded, lower-bounded, interval-censored, or only a qualifier?
SourceWhich assay, annotator, benchmark, simulator, or curation process produced it?

Examples of Semantic Drift

  • A binary active/inactive label may depend on assay threshold.
  • A toxicity label may depend on cell line, dose, duration, and endpoint.
  • A relevance label may mean clicked, judged useful, cited, or retrieved.
  • A segmentation mask may represent visible object boundary, annotator convention, or task-specific region.

Label Function

A label should be described as a function of example, context, and measurement:

where is the example unit, is the task context, and is the measurement or annotation process. If two records have the same but different or , their labels may not be interchangeable.

For chem-bio data, the context is often the Target-assay-label contract: molecule, target, assay, endpoint, unit, threshold, censoring, and source.

Missing and Negative Labels

Missing labels are not automatically negative labels:

This matters in retrieval, virtual screening, activity prediction, preference data, and any dataset where observations are selectively recorded.

Objective and Metric Consequence

Label semantics decide which loss and metric are defensible:

where is the example unit, is context, and is the measurement process. If changes across sources, the model may learn source effects instead of the intended target.

Label TypeCommon LossEvaluation Risk
binary thresholdcross-entropy, focal lossthreshold and class prevalence define the claim
continuous measurementMSE, MAE, Gaussian NLLunit, censoring, and outlier policy dominate interpretation
rank or preferencepairwise/listwise losspair construction may not match deployment ranking
censored assay valuecensored likelihood or bound-aware losstreating bounds as exact values biases the model
weak or noisy labelrobust loss, positive-unlabeled setupmissing labels can become false negatives

Checks

  • What process produced ?
  • Are labels comparable across sources?
  • Are thresholds, units, and censoring rules documented?
  • Are missing labels treated as negatives?
  • Does the metric reward the intended semantic target or an easier proxy?
  • Does the label require context such as assay, target, dose, pocket, prompt, or source?
  • Is the target-assay-label contract preserved through preprocessing and splitting?
  • Is the optimized loss compatible with the label type and censoring rule?
  • Is the reported metric measuring the same semantic target as the label?