﻿# OQMD: negative formation energy does not establish stability against every competing phase

Interpret OQMD formation-energy and stability targets by separating elemental-reference energy from convex-hull distance, preserving competing-phase and database context in materials ML.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-oqmd-formation-energy-versus-hull-distance/
Language: en

## Read the two fields as different comparisons

The [OQMD analysis documentation](https://static.oqmd.org/static/docs/analysis.html) distinguishes formation energy and distance from the convex hull. Formation energy uses an elemental reference, while hull distance depends on competing phases in the selected chemical space. A compound can be favorable relative to separated elements yet unfavorable relative to a mixture of other compounds. Preserve this distinction before converting a regression table into a binary stability label.

## Keep the competitor set with the derived target

A hull-derived quantity depends on more than the candidate structure alone. Changing the reference phase collection can change the comparison even if the candidate's calculated energy remains fixed. Save the database and analysis context used to construct labels. When updating a training corpus, check whether a revised target reflects new candidate calculations, new competitors or changed processing. Calling every change a model correction obscures the origin of the scientific comparison.

## Do not use a convenient threshold on the wrong quantity

A sign test on formation energy is not an equivalent replacement for a hull-distance criterion. Define the target field first, then justify any classification threshold for the specific research question. Do not interpret a low predicted hull distance as a general guarantee of synthesis, persistence under arbitrary conditions or experimental accessibility. Those questions include additional physics and evidence beyond the declared calculated reference comparison and the supervised dataset used to fit the model.

## Preserve the query and row identity

The [OQMD REST documentation](https://static.oqmd.org/static/docs/restful.html) exposes formation-energy and stability fields along with identifiers and filtering options. Record the requested fields, filters, duplicate policy and pagination process when exporting examples. A query that retains only already favorable entries changes the prediction population and may remove the cases needed for evaluation. Validate that all pages were collected and that original identifiers survived before joining structural features or saved predictions.

## Evaluate energy prediction and derived stability separately

The [qmpy repository](https://github.com/wolverton-research-group/qmpy) provides the analysis implementation context. A model predicting formation energy can feed a separate phase-comparison calculation, but the error of that composed process need not match raw energy error. Evaluate both when both matter to the task. The existing [entity-group guide](/journal/data-guide-entity-group-split-design/) and [authoritative-release guide](/journal/data-guide-google-research-authoritative-release/) support related grouping and provenance records. Report the actual target and reference comparison rather than treating the broad word stability as a complete experimental definition.
