Skip to main content
QUICK REVIEW

[Paper Review] The Collective Knowledge project: making ML models more portable and reproducible with open APIs, reusable best practices and MLOps

Grigori Fursin|arXiv (Cornell University)|Jun 12, 2020
Machine Learning and Data ClassificationComputer Science7 citations
TL;DR

The Collective Knowledge (CK) project introduces a unified framework for making machine learning and systems research more portable, reproducible, and reusable through open APIs, reusable components, and DevOps-inspired workflows. By packaging code, models, data, and configurations into standardized, versioned components with JSON metadata and CLI/Python interfaces, CK enables automated benchmarking, cross-platform deployment, and collaborative optimization across diverse hardware and software stacks, demonstrated through successful co-design of efficient object detection systems.

ABSTRACT

This article provides an overview of the Collective Knowledge technology (CK or cKnowledge). CK attempts to make it easier to reproduce ML&systems research, deploy ML models in production, and adapt them to continuously changing data sets, models, research techniques, software, and hardware. The CK concept is to decompose complex systems and ad-hoc research projects into reusable sub-components with unified APIs, CLI, and JSON meta description. Such components can be connected into portable workflows using DevOps principles combined with reusable automation actions, software detection plugins, meta packages, and exposed optimization parameters. CK workflows can automatically plug in different models, data and tools from different vendors while building, running and benchmarking research code in a unified way across diverse platforms and environments. Such workflows also help to perform whole system optimization, reproduce results, and compare them using public or private scoreboards on the CK platform (https://cKnowledge.io). For example, the modular CK approach was successfully validated with industrial partners to automatically co-design and optimize software, hardware, and machine learning models for reproducible and efficient object detection in terms of speed, accuracy, energy, size, and other characteristics. The long-term goal is to simplify and accelerate the development and deployment of ML models and systems by helping researchers and practitioners to share and reuse their knowledge, experience, best practices, artifacts, and techniques using open CK APIs.

Motivation & Objective

  • Address the critical challenge of reproducibility in ML and systems research due to evolving software, hardware, and ad-hoc experiment setups.
  • Reduce the time and effort required to reproduce research results and deploy models in production by standardizing artifacts and workflows.
  • Enable collaborative benchmarking and optimization across heterogeneous platforms through reusable, versioned components with unified interfaces.
  • Support end-to-end automation of model deployment, from code and data acquisition to configuration, benchmarking, and integration with production systems.
  • Facilitate co-design of software, hardware, and models by providing a portable, extensible framework for performance trade-off analysis across speed, accuracy, energy, and size.

Proposed method

  • Decompose ML and systems research into reusable components with standardized JSON metadata, CLI, and Python API for portability and interoperability.
  • Use unified configuration and dependency management to automatically detect and install required software, hardware, models, and datasets across platforms.
  • Implement portable workflows that dynamically compose components and adapt to different environments, including CPUs, GPUs, mobile devices, and cloud platforms.
  • Integrate DevOps and MLOps principles to automate building, testing, benchmarking, and deployment of ML systems in a consistent, version-controlled manner.
  • Expose optimization parameters and enable automatic exploration of the Pareto frontier for performance trade-offs using public and private scoreboards on cKnowledge.io.
  • Enable integration with live dashboards and web-based interfaces (e.g., browser webcam inference) to support real-time collaboration and validation.

Experimental results

Research questions

  • RQ1How can ML and systems research be made more reproducible across evolving software, hardware, and data environments?
  • RQ2What mechanisms enable seamless reuse and composition of ML models, datasets, and tools across diverse platforms and deployment targets?
  • RQ3Can a unified framework reduce the overhead of integrating new tools, models, and benchmarks into existing research and production pipelines?
  • RQ4How can collaborative benchmarking and optimization be automated across heterogeneous systems while maintaining reproducibility?
  • RQ5To what extent can a component-based, API-driven approach enable co-design of software, hardware, and models for optimal system performance?

Key findings

  • The CK framework successfully enabled automated, reproducible, and portable deployment of object detection models across diverse platforms, including Linux, macOS, Windows, Android, and GPU servers.
  • Industrial partners validated the modular CK approach for co-designing efficient object detection systems, achieving optimized trade-offs in speed, accuracy, energy, and model size.
  • The use of standardized JSON metadata and open CK APIs allowed seamless integration of models, data, and tools from different vendors into a single, unified workflow.
  • Users could benchmark their systems using the cKnowledge.io platform and compare results with official MLPerf scores and community contributions in real time.
  • The framework reduced manual configuration and repetitive setup by automating software detection, dependency management, and pre/post-processing script generation.
  • The integration of CK workflows with live dashboards and web-based interfaces (e.g., real-time webcam inference) demonstrated practical deployment potential in production-like environments.

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.