TECHNOLOGY

yProv4ML provenance: PROV-JSON records and retained model state

In this article
THE QUICK TAKE

A structured provenance export records declared evidence; reproducibility still requires retained artifacts, correct run identity and a verified state-restoration path.

yProv4ML records machine-learning experiment provenance in a structured graph. Its useful contribution is connecting logged parameters, metrics and artifacts across an execution, rather than turning a log file into proof that the complete experiment can be reproduced. The distinction matters when a model architecture is recorded but its trained state is not retained.

Separate architecture logging from a saved checkpoint

The original paper describes a Python library with explicit run boundaries and logging functions. Its log_model operation records model structure and related information, while save_model_version saves a PyTorch checkpoint as an artifact. These are different operations: an architecture description does not contain every trained parameter or optimizer state.

For a proposed acceptance check, select a small training run with a visible parameter change. Inspect what the provenance export identifies, then independently verify that the retained checkpoint restores the intended model. Reporting a loss value or listing layers cannot establish that restoration. If continued training matters, include progress and optimizer state in the restoration contract.

Read PROV-JSON at its documented status

The PROV-JSON specification represents provenance entities, activities, agents and their relationships in JSON. Its W3C page identifies it as a Member Submission and explicitly distinguishes publication from W3C endorsement. Calling this particular serialization a W3C Recommendation would overstate its formal status.

A structured relation records an assertion about an execution. It does not independently verify that the recorded artifact was actually consumed or that the measurement was accurate. Export compatibility is useful for inspection and exchange, while trustworthy provenance additionally needs consistent identifiers and a connection to retained evidence.

Preserve runs and distributed participants

The current documentation distinguishes experiments from individual runs and tracks global rank for multiprocess execution. The author repository supplies the implementation and examples. A collection of files from multiple workers still needs an explicit mapping to the same execution and its participants.

For a distributed review, check that records from an unsuccessful worker remain visible. Preserve run identity, rank, artifact references and logging intervals before combining metrics. An export generated independently by each process should not be treated as one synchronized hardware measurement simply because the files share an experiment directory.

Pin the software generation before using an example

The PyPI release history lists version 2.0.4 from December 9, 2025 and a newer 3.2.3 release from June 16, 2026. The paper and a historical package link therefore do not describe one interchangeable current API. Preserve the installed package revision when evaluating integration behavior.

This review does not establish feature parity across every training framework or production readiness of a separate tracking-system integration. A familiar logging interface does not prove that an external server or registry has been configured. Likewise, recording an energy estimate does not make it an independently calibrated whole-machine energy measurement.

The useful deliverable is an inspectable provenance bundle whose references can be resolved and whose omissions are understood. Test reconstruction of a bounded run before relying on a graph visualization as evidence of completeness.

Dataset metadata and replay explains retained-data requirements. Checkpoint state versus score reporting explains why logging and restoration are separate responsibilities.

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