TECHNOLOGY

QM9 loaders: verify target order and energy units before comparing errors

In this article
THE QUICK TAKE

QM9 wrappers can reorder and convert property columns; equal tensor dimensions do not establish that two reported errors measure the same target in the same units.

Start with the named physical property

The original QM9 collection contains multiple computed molecular properties. A target column should therefore be identified by its physical name and definition, not only by an integer position in a local tensor. Different wrappers may expose those properties in different arrangements. Record the selected property, raw source field and processed output position together before training or comparing a score with another implementation. The collection record establishes provenance; current direct archive download has not been verified here.

Inspect conversions at the loading boundary

The PyG QM9 implementation explicitly reorders targets and applies property-dependent unit conversions. This is a processing contract, not a change to molecular physics. Avoid applying the raw-file conversion again to an already converted loader output. Conversely, do not compare an error in raw energy units directly with an error in the wrapper’s units. Verify a small traceable molecule through both paths and compare the decoded physical quantity.

Distinguish energy from an atom-reference residual

Subtracting reference atomic contributions can define a useful regression target, but it changes the reported quantity. Record whether predictions represent total energy, an atomization-related quantity or a locally standardized residual. Preserve the reference values and how they are restored during evaluation. A model can have a small residual error while an incorrect restoration introduces a composition-dependent offset. Unit correctness alone does not detect that target-definition mismatch.

Preserve filtering and identity through preprocessing

The PyG dataset documentation describes its processed dataset representation. The implementation also applies an exclusion list when processing raw molecules. Do not assume positional indices in a processed cache equal positions in an unfiltered source archive. Retain original molecular identifiers and chosen exclusions with the split manifest. This prevents a label vector or saved prediction from being joined to a different molecule after a loader or filtering policy changes.

Compare a complete measurement contract

For a reproducible score, report the named property, unit, molecular population, partition and any normalization or reference subtraction. Calculate inverse transforms before interpreting the error in physical units, and fit normalization only on the intended training population. The existing entity-group guide and authoritative-release guide provide related organization methods. An error value becomes comparable only after its target and population are aligned, even when the same familiar QM9 label appears in every experiment title.

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