Hyperparameter Tuning Metadata guidelines
Guidance for documenting hyperparameter optimisation when it is part of the research process: search space, trials, selected trial, and evaluation metrics.
How to use this guideline
Use this page as the human-readable version of the MATSCI-NASU author guideline. The technical source and current package version are maintained in DataverseUA. Metadata should record only information supported by actual files, settings, logs, results, documentation, or researcher decisions; do not invent values for formal completeness.
Author Guidelines
HP Tuning Profile
Profile: MATSCI-NASU HP Tuning Profile
Profile version: v1.0
Metadata file: hp_tuning.json
Schema: hp_tuning_schema_EN.json (EN),
hp_tuning.schema.json (UA)
Empty template: hp_tuning.template.json
Basic rule. Record every configuration that was actually trained, including failed and rejected ones, with the values that were actually obtained. Do not omit trials that turned out badly and do not reconstruct missing results from memory.
1. Purpose
The HP Tuning Profile describes how the hyperparameters of a machine-learned interatomic potential (MLIP) were selected: the search method and criterion, which hyperparameters were fixed and which were varied, every configuration trained with its result, and which configuration was released as the final model.
hp_tuning.json belongs to the MLIP stage. It complements
mlip.json: the block hyperparameterSelection
in mlip.json gives a short summary (method, number of
trials, criterion, final values) and refers to this file through
tuningLogPath. The model card shows the summary;
hp_tuning.json keeps the complete record, which allows a
reader to see that the choice was not arbitrary and to repeat it.
The file does not replace the training logs or the checkpoints of the
trials. It is listed in manifest.json; the provenance of
the trials is described in provenance.json.
When the file is not needed. If the hyperparameters
were not searched but taken from the literature or from the defaults of
the training framework, mlip.json
hyperparameterSelection.method is
literature-defaults, the source is stated in
selectionCriterion, and hp_tuning.json is not
created.
2. General Rules for Completing the Record
- Include all trials that were trained to the end or stopped, including those that failed or were rejected. A record of only the best trials does not show how the choice was made.
- Use the key names of the training framework for hyperparameters
(
r_max,num_layers,l_max,learning_rate, …) and the same names infixedHyperparameters,searchSpace,trials[].hyperparametersandmlip.jsonfinalHyperparameters. - Use the same metric keys in every trial and give the unit of each
key in
metricUnits. - Numbers are given without unit text. Learning rates and other small
values are written as numbers (
0.005,1e-4), not as text. - Do not equate an unknown value with zero. If a value is unknown (for example the wall time of an old trial), omit the key.
nulland empty strings are not allowed in the final file. The empty template contains them only as placeholders: fill them or delete the optional keys you do not use.- The values of
methodandselectionCriterionmust be the same as inmlip.jsonhyperparameterSelection. - Paths are relative to the root of the package and point to files
listed in
manifest.json.
3. Structure of the Record and Mandatory Fields
In profile v1.0, the following top-level fields are required:
method, selectionCriterion,
searchSpace, trials,
selectedTrial and metricUnits. Each element of
trials requires trialId,
hyperparameters and status; for trials with
status = completed, metrics is
also required. All other fields are optional.
The file has no schemaVersion field; the profile version
is given in the name of the profile/schema.
4. Fields of the Profile
| Field | Meaning | How to complete | Example |
|---|---|---|---|
description |
Brief description of the search. | Which model, which hyperparameters were explored and why. | Grid search over cutoff and depth for SiC |
modelIdentifier |
Identifier of the model. | The same value as mlip.json
modelIdentity.identifier. |
sic-nequip-v1 |
framework |
Training package and version. | Object {name, version}, as in softwareUsed
of mlip.json. |
{"name": "NequIP", "version": "0.x.y"} |
method |
Method of selection. | manual, grid-search,
random-search, bayesian-optimization or
other. Required. |
grid-search |
methodOther |
Clarification of another method. | Complete if method = other. |
active learning loop |
selectionCriterion |
Criterion of the choice. | Metric and additional conditions; the same text as in
mlip.json. Required. |
Lowest validation force RMSE among stable runs |
selectionDataSplit |
Data on which configurations were compared. | validation, test or
cross-validation. |
validation |
fixedHyperparameters |
Hyperparameters not varied. | Key → value. | num_features: 32 |
searchSpace |
Hyperparameters varied. | Key → list of values or range (4.1). Required. | r_max: [4.0, 5.0, 6.0] |
trials |
Configurations trained. | One element per trial (4.2). Required. | — |
selectedTrial |
The released configuration. | trialId of a completed trial. Required. |
t08 |
metricUnits |
Units of the metrics. | Key → unit for every key in trials[].metrics.
Required. |
validation_forces_rmse: eV/Å |
The method manual covers selection by hand without a
systematic search; describe in description what was tried.
Comparing configurations on the test set
(selectionDataSplit = test) makes the test
errors in mlip.json optimistic; if this was done, state it
in mlip.json
resultsSummary.knownLimitations.
4.1. Search Space
searchSpace lists only the hyperparameters that were
varied. Each key has one of two forms:
| Form | When to use | Fields | Example |
|---|---|---|---|
| List of values | Grid search, manual selection, any discrete set. | Array of numbers, strings or booleans; at least one value. | "num_layers": [3, 4] |
| Range | Random or Bayesian search over a continuous or integer interval. | min, max (required); scale =
linear or log; step for integer
or discretised ranges. |
"learning_rate": {"min": 0.0001, "max": 0.01, "scale": "log"} |
Hyperparameters that kept the same value in all trials belong in
fixedHyperparameters, not in searchSpace.
4.2. Trials
| Field | Meaning | How to complete | Example |
|---|---|---|---|
trials[].trialId |
Identifier of the trial. | Unique within the file; short and stable (it may also be the run name in the tracker). Required. | t08 |
trials[].hyperparameters |
Values of the varied hyperparameters. | Keys as in searchSpace. Required. |
r_max: 5.0, num_layers: 4 |
trials[].status |
Outcome. | completed, failed or stopped
(see below). Required. |
completed |
trials[].epochsTrained |
Epochs actually trained. | Integer. | 1000 |
trials[].bestEpoch |
Epoch of the best checkpoint. | By the selection metric. | 842 |
trials[].metrics |
Results. | Key → number; same keys in every trial; required if
status = completed. |
validation_forces_rmse: 0.059 |
trials[].wallTimeHours |
Training time. | Hours. | 7.2 |
trials[].checkpointPath |
Best checkpoint of the trial. | Relative path, only if the checkpoint is kept in the package. | mlip/hp/t08/best.ckpt |
trials[].notes |
Reasons and observations. | Why the trial was rejected or chosen. | Unstable at 1500 K; rejected. |
Values of status:
completed— training finished (all epochs or early stopping); the trial has metrics and could be compared.failed— training ended with an error, a NaN loss or divergence; metrics may be absent. State the reason innotes.stopped— training was stopped before the end by the author or by the search algorithm (for example pruning in Bayesian search). Give the metrics reached, if any.
A trial that met the metric criterion but was rejected for another
reason (for example instability in a test MD run) keeps
status = completed; give the reason in
notes.
4.3. Selected Trial and Metric Units
selectedTrial is the trialId of the
configuration from which the released model was obtained. Its
hyperparameters, together with
fixedHyperparameters, must give the values in
mlip.json
hyperparameterSelection.finalHyperparameters, and its
bestEpoch normally equals mlip.json
checkpointSelection.selectedEpoch. If the released model
was retrained after the search (for example on train + validation), say
so in description and in mlip.json.
metricUnits gives the unit of every metric key:
meV/atom for energies, eV/Å for forces,
GPa or kbar for stresses. Write
dimensionless for the loss or other metrics without a
unit.
5. Starting from the Empty Template
hp_tuning.template.json contains every field of the
profile with an empty value. To use it:
- Copy the template to
mlip/hp_tuning.json(or another path, which is then given inmlip.jsontuningLogPath). - Fill the required fields:
method,selectionCriterion,searchSpace,trials,selectedTrial,metricUnits. - In
fixedHyperparameters,searchSpace,trials[].hyperparameters,trials[].metricsandmetricUnits, replace the empty key""with real keys; add one key per hyperparameter or metric. - Copy the trial object once per trial.
- Delete every optional key you do not fill; no
nullor""may remain. - Validate the file against the schema and list it in
manifest.json.
The template does not pass validation until it is filled; this is intended.
Validation, for example:
python3 -c "import json,jsonschema; jsonschema.validate(json.load(open('mlip/hp_tuning.json')), json.load(open('hp_tuning_schema_EN.json'))); print('valid')"Abridged filled example:
{
"modelIdentifier": "sic-nequip-v1",
"framework": { "name": "NequIP", "version": "0.x.y" },
"method": "grid-search",
"selectionCriterion": "Lowest validation force RMSE among runs stable in a 50 ps NVT test at 1500 K",
"selectionDataSplit": "validation",
"fixedHyperparameters": { "num_features": 32, "batch_size": 5 },
"searchSpace": { "r_max": [4.0, 5.0, 6.0], "num_layers": [3, 4], "l_max": [1, 2] },
"trials": [
{ "trialId": "t08", "hyperparameters": { "r_max": 5.0, "num_layers": 4, "l_max": 2 },
"status": "completed", "bestEpoch": 842,
"metrics": { "validation_energy_rmse": 1.8, "validation_forces_rmse": 0.059 },
"notes": "Selected." },
{ "trialId": "t11", "hyperparameters": { "r_max": 6.0, "num_layers": 4, "l_max": 2 },
"status": "completed", "bestEpoch": 655,
"metrics": { "validation_energy_rmse": 1.7, "validation_forces_rmse": 0.058 },
"notes": "Unstable in the 1500 K NVT test; rejected." }
],
"selectedTrial": "t08",
"metricUnits": { "validation_energy_rmse": "meV/atom", "validation_forces_rmse": "eV/Å" }
}If an experiment tracker (for example Weights & Biases) exports
its own sweep file, it may be shipped in addition, but
hp_tuning.json in this profile is the file referenced from
mlip.json.
6. Schema Checks and Separate Checks
The JSON Schema validates the form of the document: the types, the
required fields, the permitted values of method,
selectionDataSplit and status, the two forms
of searchSpace, the presence of metrics for
completed trials and the format of relative paths. Cross-field and
cross-file rules are checked by a separate validator:
- if
method=other,methodOthermust be specified; trialIdvalues are unique;selectedTrialis thetrialIdof a trial withstatus=completed;- the keys of every
trials[].hyperparametersare keys ofsearchSpace, and the values lie in the list or range given there; - no key appears both in
fixedHyperparametersand insearchSpace; - every key used in
trials[].metricshas a unit inmetricUnits; bestEpochdoes not exceedepochsTrainedwhere both are given;checkpointPathvalues correspond to files listed inmanifest.json;methodandselectionCriterionequalmlip.jsonhyperparameterSelection.methodandselectionCriterion;modelIdentifier, if given, equalsmlip.jsonmodelIdentity.identifier;- the number of trials with
status=completedequalsmlip.jsonhyperparameterSelection.numberOfTrials; - the hyperparameters of
selectedTrialtogether withfixedHyperparametersagree withmlip.jsonhyperparameterSelection.finalHyperparameters; hp_tuning.jsonis listed inmanifest.jsonat the path given inmlip.jsontuningLogPath.
7. Checklist before Submission
8. Basic Principle
hp_tuning.json should let a reader see which
configurations were tried, how each of them performed and why the
released one was chosen, and repeat the selection if needed. The record
should be complete and factual; it must not present a selective or
reconstructed history as if it were the full search.
Appendix. Corrections of 30 October 2026
The profile version stays v1.0. The schema was
corrected before the final release; the table lists what changed in this
module. Changes marked as renamed or removed values make records that
use the old values invalid; the example record in examples/
has been updated. The meaning of every field and value and its mapping
to external standards are given in
semantic/semantic_crosswalk_v1.0.csv.
| Field | Change |
|---|---|
framework |
Now an object {name, version} instead of one
string. |
metricUnits |
A value may be a symbol string or {symbol, unitURI}
with a QUDT IRI. |
Source and current version
Canonical source file: HP_Tuning_Guidelines_for_Authors_v1_0.md
The current Markdown source, JSON Schema, example record, and related technical materials
are maintained with the MATSCI-NASU research package in DataverseUA.
Suggested slug:
hyperparameter-tuning-metadata-guidelines