TECHNOLOGY

ogbg-molpcba: mask missing assay labels before task-wise average precision

In this article
THE QUICK TAKE

A missing assay outcome is not an inactive compound, and averaging task metrics is not equivalent to pooling all labeled output cells.

Keep the assay dimension in the target schema

The ogbg-molpcba specification defines a multitask molecular benchmark evaluated with task-averaged Average Precision. Each output column identifies a distinct assay task. Preserve that column mapping through preprocessing, checkpoint export and evaluation. A model with the correct number of outputs can still be wrong if columns are reordered independently of labels. A generic binary-classification interface should therefore carry task identity, not just a flat sequence of scores.

Do not fill missing targets with negative labels

The official molecular example masks unavailable labels in the supervised loss. Preserve that distinction when moving targets to an accelerator or converting their dtype. Replacing missing values with an inactive label creates training evidence that the dataset did not provide. Keep the mask separate if a storage format cannot represent missingness directly, and test its reconstruction before launching a long training run.

Choose loss normalization deliberately

After masking, define whether the loss averages over observed assay outcomes or uses another explicit task-weighting policy. Different assays can have different amounts of observed supervision. A change in reduction rule therefore changes which tasks dominate optimization, even when the model and examples are unchanged. Inspect a small batch with uneven observation counts and calculate its intended contribution manually. This establishes what the optimizer actually sees without assuming a familiar loss function name determines the weighting.

Preserve task-wise evaluation

The official graph evaluator handles missing labels within each task before aggregating its supported metric results. Flattening all observed cells into a pooled precision-recall calculation changes the weighting and the comparison population. Likewise, computing the final score separately per minibatch can produce a different result from collecting predictions over the full evaluation population. Preserve task columns and sample identity while accumulating scores.

Report the experiment rather than a biomedical shortcut

The resulting metric describes the specified molecular assay prediction setting. It does not establish a compound’s overall safety or effectiveness. Keep scaffold partitions, target masks and selected evaluator version in the reproduction record. The existing entity-group guide and authoritative-release guide support related dataset provenance. A useful report can explain which tasks had adequate labeled examples without hiding missing evidence behind a single large tensor or an apparently precise aggregate number.

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.

Explore GPU hosting
← All articles