Skip to main content
QUICK REVIEW

[Paper Review] Collective Mind, Part II: Towards Performance- and Cost-Aware Software Engineering as a Natural Science

Grigori Fursin, Abdul Wahid Memon|arXiv (Cornell University)|Jun 20, 2015
Parallel Computing and Optimization TechniquesComputer Science42 references10 citations
TL;DR

This paper proposes Collective Mind, a collaborative, publicly accessible infrastructure for performance- and cost-aware software engineering that enables continuous autotuning and knowledge sharing across diverse hardware platforms. By using lightweight wrappers and a centralized repository, it tracks optimizations across hardware configurations, enabling Pareto-optimal solutions for execution time, energy, and other costs via crowdsourced experimentation and machine learning.

ABSTRACT

Nowadays, engineers have to develop software often without even knowing which hardware it will eventually run on in numerous mobile phones, tablets, desktops, laptops, data centers, supercomputers and cloud services. Unfortunately, optimizing compilers are not keeping pace with ever increasing complexity of computer systems anymore and may produce severely underperforming executable codes while wasting expensive resources and energy. We present our practical and collaborative solution to this problem via light-weight wrappers around any software piece when more than one implementation or optimization choice available. These wrappers are connected with a public Collective Mind autotuning infrastructure and repository of knowledge (c-mind.org/repo) to continuously monitor various important characteristics of these pieces (computational species) across numerous existing hardware configurations together with randomly selected optimizations. Similar to natural sciences, we can now continuously track winning solutions (optimizations for a given hardware) that minimize all costs of a computation (execution time, energy spent, code size, failures, memory and storage footprint, optimization time, faults, contentions, inaccuracy and so on) of a given species on a Pareto frontier along with any unexpected behavior. The community can then collaboratively classify solutions, prune redundant ones, and correlate them with various features of software, its inputs (data sets) and used hardware either manually or using powerful predictive analytics techniques. Our approach can then help create a large, realistic, diverse, representative, and continuously evolving benchmark with related optimization knowledge while gradually covering all possible software and hardware to be able to predict best optimizations and improve compilers and hardware depending on usage scenarios and requirements.

Motivation & Objective

  • Address the growing challenge of optimizing software across heterogeneous, evolving hardware platforms without prior knowledge of deployment targets.
  • Overcome the limitations of current compilers that fail to exploit optimization opportunities due to the ever-expanding search space of compiler flags and configurations.
  • Create a scalable, community-driven system for sharing and tracking software optimizations, performance metrics, and hardware characteristics in real-world environments.
  • Enable continuous, reproducible experimentation and knowledge discovery by integrating crowdsourcing, big data analytics, and machine learning techniques.
  • Support practical software and hardware co-design by providing a growing, representative, and evolving benchmark with optimization knowledge for real-world applications.

Proposed method

  • Develop lightweight wrappers around software components (called 'computational species') to expose configuration options such as compiler flags, parallelization parameters, and algorithm variants.
  • Integrate these wrappers with a public Collective Mind repository and autotuning infrastructure to collect performance and cost metrics across diverse hardware platforms.
  • Leverage crowdsourcing via the Collective Mind Node to distribute time-consuming autotuning tasks across commodity Android devices and other systems.
  • Apply multi-objective optimization techniques to identify Pareto-optimal configurations that minimize multiple costs (execution time, energy, memory, code size, etc.) simultaneously.
  • Use JSON-based APIs and a web service to enable programmatic access to the knowledge repository and support integration with IDEs, Docker, and benchmarking tools.
  • Support both manual classification (like Wikipedia) and automated data analytics, including active learning and feature selection, to correlate optimization success with software inputs, hardware features, and system configurations.

Experimental results

Research questions

  • RQ1How can a collaborative, community-driven infrastructure improve the discovery and sharing of optimal software optimizations across diverse hardware platforms?
  • RQ2To what extent can crowdsourced autotuning across commodity devices reduce the time and cost of identifying high-performance software configurations?
  • RQ3Can a unified, continuously evolving repository of optimization knowledge improve compiler tuning and hardware validation in industrial settings?
  • RQ4How effective is the use of multi-objective optimization and Pareto frontier analysis in identifying trade-offs between competing performance and cost metrics?
  • RQ5In what ways can such a system support reproducible, sustainable, and artifact-evaluable research in software engineering and systems performance?

Key findings

  • The Collective Mind infrastructure successfully enabled the collection of around 15,000 data sets across approximately 300 software species, demonstrating scalability and real-world applicability.
  • Industrial partners used the system to enhance their in-house GCC compiler heuristics for ARM and Intel processors, achieving measurable performance improvements and detecting architectural errors during hardware validation.
  • A customer’s statically compiled image processing application was successfully transformed into a self-tuning system that maximized performance while minimizing energy, development time, and time-to-market.
  • The approach enabled the integration of advanced optimization techniques such as polyhedral source-to-source transformations and run-time adaptation into a unified, extensible framework.
  • The system supported the creation of a large-scale, realistic, and continuously evolving benchmark with optimization knowledge, facilitating cross-platform comparison and model training.
  • The public repository and open-source infrastructure promoted collaboration across academia and industry, supporting artifact evaluation and sustainable software engineering practices.

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.