[Paper Review] Adapting to a Cambrian AI/SW/HW explosion with open co-design competitions and Collective Knowledge
This paper proposes a collaborative, open-source framework called Collective Mind (cM) that enables continuous, community-driven performance and cost-aware software engineering through automated autotuning and knowledge sharing. By instrumenting software with lightweight wrappers and connecting them to a public repository, the system tracks optimization trade-offs across diverse hardware via Pareto frontier analysis, enabling real-time, multi-objective tuning and improving compiler efficiency and application portability.
The original presentation was shared via SlideShare. Slides from the ARM's Research Summit'17 about the "Community-Driven and Knowledge-Guided Optimization of AI Applications Across the Whole SW/HW Stack": cKnowledge.org cKnowledge.org/repo cKnowledge.org/repo-beta cKnowledge.org/android-apps.html cKnowledge.org/ai developer.arm.com/research/summit Co-designing the whole AI/SW/HW stack in terms of speed, accuracy, energy consumption, size, costs, and other metrics has become extremely complex, long and costly. With no rigorous methodology for analyzing performance and accumulating optimisation knowledge, we are simply destined to drown in the ever growing number of design choices, system<br> features and conflicting optimisation goals.<br> <br> We present our novel community-driven approach to solve the above problems. Originating from natural sciences, this approach is embodied in Collective Knowledge (CK), our open-source cross-platform workflow framework and repository for automatic, collaborative and reproducible experimentation. CK helps organize, unify and share representative workloads, data sets, AI frameworks, libraries, compilers, scripts, models and other artifacts as customizable and reusable components with a common JSON API.<br> <br> CK helps bring academia, industry and end-users together to gradually expose optimisation choices at all levels (e.g. from parameterized models and algorithmic skeletons to compiler flags and hardware configurations) and autotune them across diverse inputs and platforms. Optimization knowledge gets continuously aggregated in public or private repositories such as cKnowledge.org/repo in a reproducible way, and can be then mined and extrapolated to predict better AI algorithm choices, compiler transformations and hardware designs.<br> <br> We also demonstrate how we use this approach in practice together with ARM and other companies to adapt to a Cambrian AI/SW/HW explosion by creating an open repository of reusable AI artifacts, and then collaboratively optimising and co-designing the whole deep learning stack (software, hardware and models).
Motivation & Objective
- Address the growing challenge of optimizing software across heterogeneous, rapidly evolving hardware platforms.
- Overcome the limitations of traditional compilers that fail to exploit optimization opportunities due to vast, unexplored design spaces.
- Create a scalable, community-driven infrastructure for sharing and reusing optimization knowledge across software and hardware configurations.
- Enable practical, reproducible, and sustainable performance engineering through continuous benchmarking and collective experimentation.
- Support self-tuning systems by predicting optimal configurations based on real-world data and machine learning.
Proposed method
- Develop lightweight wrappers around software components (‘computational species’) to expose optimization parameters such as compiler flags, threading models, and algorithmic variants.
- Integrate wrappers with a public Collective Mind (cM) autotuning infrastructure and repository to collect performance and cost metrics across real hardware.
- Use crowdsourced execution on Android devices and commodity hardware to continuously benchmark and tune software under realistic conditions.
- Apply Pareto frontier analysis to identify optimal trade-offs across multiple objectives (e.g., execution time, energy, memory, code size).
- Enable manual and automated classification, pruning, and correlation of optimization solutions with software features, inputs, and hardware characteristics.
- Leverage JSON-based APIs and big data analytics to support extensible, reusable, and interoperable performance tracking and knowledge sharing.
Experimental results
Research questions
- RQ1How can software engineering be transformed into a continuous, data-driven process akin to natural sciences?
- RQ2Can a community-driven, open infrastructure effectively track and optimize software performance across diverse hardware and configurations?
- RQ3How can multi-objective autotuning be scaled and automated to handle the growing complexity of modern systems?
- RQ4What role can collaborative knowledge sharing and machine learning play in improving compiler optimization and system reliability?
- RQ5Can real-world, large-scale performance data be used to predict optimal configurations and reduce tuning effort?
Key findings
- The Collective Mind framework successfully enabled the collection of over 15,000 datasets and 300 software species across diverse hardware platforms, demonstrating scalability and real-world applicability.
- Industry partners reported measurable improvements in GCC compiler optimization heuristics for ARM and Intel processors, including detection of architectural errors during hardware validation.
- A statically compiled image processing application was successfully converted into a self-tuning system that met real-time constraints while minimizing energy, memory, and development costs.
- The framework supports continuous, reproducible benchmarking and enables researchers to validate new optimization techniques on a large, realistic, and representative hardware-software substrate.
- The integration with tools like Docker, Phoronix, and Eclipse enhances automation and adoption, enabling seamless dependency tracking and plugin integration.
- The approach supports long-term sustainability of software engineering by promoting artifact evaluation and reducing reliance on non-representative or synthetic benchmarks.
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.