[Paper Review] A Collective Knowledge workflow for collaborative research into multi-objective autotuning and machine learning techniques
This paper proposes a portable, collaborative workflow using the Collective Knowledge (CK) framework to enable reproducible, multi-objective autotuning and machine learning for software/hardware co-design. It demonstrates compiler autotuning across Raspberry Pi 3 devices, achieving up to 40% reduction in execution time and code size, while enabling crowd-sourced optimization, model sharing, and machine learning-based prediction of optimal configurations through a standardized JSON API and public knowledge repository.
Developing efficient software and hardware has never been harder whether it is for a tiny IoT device or an Exascale supercomputer. Apart from the ever growing design and optimization complexity, there exist even more fundamental problems such as lack of interdisciplinary knowledge required for effective software/hardware co-design, and a growing technology transfer gap between academia and industry. We introduce our new educational initiative to tackle these problems by developing Collective Knowledge (CK), a unified experimental framework for computer systems research and development. We use CK to teach the community how to make their research artifacts and experimental workflows portable, reproducible, customizable and reusable while enabling sustainable R&D and facilitating technology transfer. We also demonstrate how to redesign multi-objective autotuning and machine learning as a portable and extensible CK workflow. Such workflows enable researchers to experiment with different applications, data sets and tools; crowdsource experimentation across diverse platforms; share experimental results, models, visualizations; gradually expose more design and optimization choices using a simple JSON API; and ultimately build upon each other's findings. As the first practical step, we have implemented customizable compiler autotuning, crowdsourced optimization of diverse workloads across Raspberry Pi 3 devices, reduced the execution time and code size by up to 40%, and applied machine learning to predict optimizations. We hope such approach will help teach students how to build upon each others' work to enable efficient and self-optimizing software/hardware/model stack for emerging workloads.
Motivation & Objective
- To address the growing technology transfer gap between academia and industry in computer systems research.
- To overcome the lack of standardized, portable, and reusable research workflows for multi-objective autotuning and machine learning.
- To enable researchers to share, customize, and build upon experimental artifacts and results in a sustainable and reproducible manner.
- To facilitate collaborative optimization across diverse hardware platforms, including Raspberry Pi 3, through crowd-sourced experimentation.
- To accelerate the deployment of state-of-the-art techniques into real-world systems via standardized evaluation and artifact sharing.
Proposed method
- The paper introduces a unified experimental framework based on the open-source Collective Knowledge (CK) workflow system to standardize research artifacts and workflows.
- It uses a JSON-based API to describe and expose design and optimization choices, enabling portability and extensibility across platforms.
- The framework integrates a cross-platform package manager to automatically adapt compilation and execution to different environments and hardware.
- Multi-objective autotuning is implemented as a reusable CK workflow, supporting optimization for execution time, code size, power, and memory.
- Crowd-fuzzing is applied by distributing autotuning tasks across volunteer-provided Raspberry Pi 3 devices to collect and aggregate performance data.
- Machine learning models—including decision trees, k-NN, and deep learning—are trained on collected optimization data to predict optimal configurations for unseen workloads.
Experimental results
Research questions
- RQ1How can a standardized, portable, and reusable workflow framework improve collaboration and reproducibility in multi-objective autotuning and machine learning research?
- RQ2To what extent can crowd-sourced autotuning across heterogeneous devices like Raspberry Pi 3 improve optimization efficiency and reduce execution time and code size?
- RQ3Can machine learning models trained on shared optimization data predict optimal compiler flags and configurations for new workloads with high accuracy?
- RQ4How can a unified API and metadata standard enable sustainable technology transfer from academia to industry?
- RQ5What impact does a shared, community-driven knowledge repository have on accelerating innovation in software/hardware co-design?
Key findings
- The CK-based workflow reduced execution time and code size by up to 40% through collaborative autotuning of diverse workloads on Raspberry Pi 3 devices.
- The framework successfully enabled crowd-sourced autotuning by distributing tasks across volunteer-provided Raspberry Pi 3 devices, collecting and storing results in a public, reproducible knowledge repository.
- Machine learning models, including decision trees and k-Nearest Neighbors, were able to predict optimal compiler configurations with high accuracy based on shared optimization data.
- The use of a standardized JSON API and metadata enabled seamless integration and reuse of applications, kernels, datasets, and tools across different research groups and platforms.
- The approach demonstrated a viable path toward sustainable, collaborative, and reproducible research by enabling continuous improvement and community-driven optimization of the software/hardware stack.
- The framework was successfully applied to benchmark inference performance across deep learning frameworks, models, and Android devices, with results published in a live, interactive scoreboard at cKnowledge.org/repo.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.