English

mlf-core: a framework for deterministic machine learning

Mathematical Software 2022-06-17 v2 Machine Learning Quantitative Methods Machine Learning

Abstract

Machine learning has shown extensive growth in recent years and is now routinely applied to sensitive areas. To allow appropriate verification of predictive models before deployment, models must be deterministic. However, major machine learning libraries default to the usage of non-deterministic algorithms based on atomic operations. Solely fixing all random seeds is not sufficient for deterministic machine learning. To overcome this shortcoming, various machine learning libraries released deterministic counterparts to the non-deterministic algorithms. We evaluated the effect of these algorithms on determinism and runtime. Based on these results, we formulated a set of requirements for deterministic machine learning and developed a new software solution, the mlf-core ecosystem, which aids machine learning projects to meet and keep these requirements. We applied mlf-core to develop deterministic models in various biomedical fields including a single cell autoencoder with TensorFlow, a PyTorch-based U-Net model for liver-tumor segmentation in CT scans, and a liver cancer classifier based on gene expression profiles with XGBoost.

Keywords

Cite

@article{arxiv.2104.07651,
  title  = {mlf-core: a framework for deterministic machine learning},
  author = {Lukas Heumos and Philipp Ehmele and Luis Kuhn Cuellar and Kevin Menden and Edmund Miller and Steffen Lemke and Gisela Gabernet and Sven Nahnsen},
  journal= {arXiv preprint arXiv:2104.07651},
  year   = {2022}
}

Comments

https://mlf-core.com and https://github.com/mlf-core/mlf-core

R2 v1 2026-06-24T01:12:48.889Z