This framework provides a comprehensive audit process for ensuring reproducibility in ML/AI research labs. It includes a checklist for systematic evaluation, artifact validation procedures, issue triage criteria, and remediation timelines. Designed for auditors, researchers, or CI/CD pipelines, it targets key failure points: environment, code, data, randomness, and results.
Use this as a living document—run audits quarterly, post-experiment, or before publication. Tools recommended: Git, DVC (Data Version Control), Docker, Weights & Biases (or MLflow), and checksum utilities (e.g., sha256sum).
1. Reproducibility Checklist
Audit each experiment/paper/repo against these 20 items. Mark as PASS, FAIL, or N/A. Require 90%+ PASS for "Reproducible" status.
Environment (4 items)
Dependency list pinned (e.g., requirements.txt with exact versions or environment.yml).
Containerized setup available (Dockerfile or Singularity; builds without errors).
Hardware specs documented (GPU model, CUDA version, CPU/RAM).
OS and Python version specified and matched in repro instructions.
Code (5 items)
Code versioned (Git commit hash pinned in README; no uncommitted changes).
Full pipeline scriptable (single reproduce.sh or Jupyter-to-script conversion runs end-to-end).
Code linted and formatted (e.g., Black, isort; no syntax errors).
Documentation complete (README with setup, run commands, expected runtime/metrics).
Tests included (unit tests for core functions; 80%+ coverage).
Data (4 items)
Data sources/versioned (URLs/hashes; DVC or Hugging Face Hub tracked).
Preprocessing pipeline deterministic and documented (script with seeds).
Dataset checksums match (SHA256 for splits: train/val/test).
License/compliance noted (no proprietary data without access instructions).
Randomness & Execution (4 items)
All seeds fixed (numpy, torch, random; CUDA deterministic mode enabled).
Hyperparameters logged/versioned (e.g., YAML config with hash).
Training converges in <2x expected time on spec hardware.
No external APIs called without mocks/fallbacks.
Results & Artifacts (3 items)
Metrics match within 1% (e.g., exact loss/accuracy from original run).
Model checkpoints saved with hashes (e.g., .safetensors).
Logs/visualizations archived (TensorBoard/W&B links or files).