Skip to main content
QUICK REVIEW

[Paper Review] Deep Learning Reproducibility and Explainable AI (XAI)

Anastasia Leventi-Peetz, T. Östreich|arXiv (Cornell University)|Feb 23, 2022
Explainable Artificial Intelligence (XAI)Computer Science7 citations
TL;DR

This paper investigates the impact of deep learning (DL) training nondeterminism on model explainability and proposes a framework for achieving deterministic, reproducible deep learning models. By fixing random seeds and eliminating hardware-dependent variance, the authors demonstrate reproducible inference and explainable AI (XAI) using Grad-CAM on two CNN architectures, achieving consistent model predictions and explanations across different hardware platforms.

ABSTRACT

The nondeterminism of Deep Learning (DL) training algorithms and its influence on the explainability of neural network (NN) models are investigated in this work with the help of image classification examples. To discuss the issue, two convolutional neural networks (CNN) have been trained and their results compared. The comparison serves the exploration of the feasibility of creating deterministic, robust DL models and deterministic explainable artificial intelligence (XAI) in practice. Successes and limitation of all here carried out efforts are described in detail. The source code of the attained deterministic models has been listed in this work. Reproducibility is indexed as a development-phase-component of the Model Governance Framework, proposed by the EU within their excellence in AI approach. Furthermore, reproducibility is a requirement for establishing causality for the interpretation of model results and building of trust towards the overwhelming expansion of AI systems applications. Problems that have to be solved on the way to reproducibility and ways to deal with some of them, are examined in this work.

Motivation & Objective

  • To investigate how training nondeterminism in deep learning affects the explainability and reproducibility of neural network models.
  • To address the reproducibility crisis in machine learning by achieving deterministic training outcomes despite algorithmic and hardware-level variability.
  • To demonstrate that deterministic model inference and explainable AI (XAI) are feasible in practice using controlled training configurations.
  • To provide open-source code and technical guidelines for achieving hardware-agnostic, reproducible deep learning models with consistent explanations.
  • To explore the feasibility of integrating model properties like implementation invariance and completeness into training pipelines for trustworthy AI.

Proposed method

  • Fixed random seeds across all stochastic components (e.g., weight initialization, data shuffling, dropout) to eliminate algorithmic randomness.
  • Trained two distinct CNN architectures (ConvNet and a second prototype) under identical software and hardware conditions to ensure reproducibility.
  • Executed training and inference on CPU-only environments (AMD Zen architecture) to isolate hardware-dependent variance.
  • Validated deterministic behavior across multiple runs using identical code, data, and hyperparameters.
  • Applied Grad-CAM for visual explanation of predictions, ensuring that explanations were reproducible across runs.
  • Investigated the impact of GPU usage on reproducibility and demonstrated deterministic inference even with GPU acceleration for one model.

Experimental results

Research questions

  • RQ1To what extent can deep learning training be made deterministic despite inherent algorithmic and hardware-level variability?
  • RQ2Can reproducible model predictions be achieved and maintained when using different hardware platforms, including GPUs?
  • RQ3How does training nondeterminism affect the consistency and reliability of explainable AI (XAI) methods like Grad-CAM?
  • RQ4What technical measures are required to achieve implementation invariance in deep learning models across different hardware and software environments?
  • RQ5Can reproducible training serve as a foundation for developing causally interpretable, trustworthy AI systems in safety-critical domains?

Key findings

  • Deterministic training was successfully achieved for two CNN architectures by fixing random seeds and using consistent hardware (CPU-only AMD Zen), resulting in identical model parameters and predictions across runs.
  • The first model (deterministic ConvNet) achieved reproducible inference not only on CPU but also when using GPU support, demonstrating that GPU acceleration need not compromise determinism.
  • Reproducible Grad-CAM explanations were visually confirmed for both models, showing consistent attention maps across repeated inferences.
  • Despite identical code and data, implementation-level variance in deep learning frameworks (e.g., TensorFlow, cuDNN) and hardware platforms (e.g., different CPUs/GPUs) can still introduce non-deterministic behavior.
  • The study confirmed that even functionally equivalent models can produce different attributions across hardware platforms, violating implementation invariance.
  • The authors demonstrated that reproducibility is essential for trust, fault tolerance, and objective evaluation of model properties such as robustness and explainability in safety-critical applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.