Using meta-heuristics and machine learning for software optimization of parallel computing systems: a systematic literature review

Suejb Memeti, Sabri Pllana, Alécio Pedro Delazari Binotto, Joanna Kolodziej, Ivona Brandic

Executive Summary

This research provides a comprehensive systematic literature review (SLR) exploring the intersection of machine learning (ML), meta-heuristics (MH), and parallel computing optimization. By analyzing 65 primary studies published between 2000 and 2017, the authors demonstrate that automated, data-driven techniques can match or even surpass manual expert tuning in both compile-time and run-time environments.

The Challenge: The "Moving Target" of Parallel Optimization

Optimizing software for modern parallel systems is increasingly difficult. The transition from simple multi-core CPUs to complex heterogeneous architectures—incorporating GPUs, FPGAs, and many-core accelerators—has led to an explosion in tunable parameters. Factors such as loop unroll factors, thread counts, memory affinity, and workload distribution create a search space too vast for manual navigation.

Traditionally, compiler engineers relied on hard-coded heuristics. However, these manual rules are often brittle, failing to perform across different processor generations, and lack portability, requiring significant rewrites for new architectures. This paper investigates the shift toward using ML and MH to automate these complex optimization tasks.

Methodology

The authors followed the established Kitchenham and Charters guidelines for Systematic Literature Reviews.

Search and Selection Process

The review began with a broad search across major digital libraries, including ACM, IEEE, and Google Scholar.

The systematic literature search and selection process used to identify 65 key studies.

As shown in the process above, the initial pool of over 1,180 articles was rigorously filtered through manual selection and chain sampling to arrive at the final 65 primary studies.

Classification and Interactive Exploration

The research was categorized based on the software life-cycle:

  • Compile-time: Code optimization (e.g., loop unrolling) and code generation.
  • Run-time: Task scheduling and dynamic system adaptation.

To facilitate further research, the authors developed an interactive browser using the SurVis tool.

The SurVis interactive tool allows researchers to filter findings by optimization method, life-cycle activity, and architecture.

Key Insights

  • Machine Learning Dominance: ML techniques are more prevalent than meta-heuristics in this field. This is likely because ML models can leverage historical data to make predictions, whereas meta-heuristics often require searching the space from scratch for each new problem.
  • Feature Selection: Success depends on balancing static features (code characteristics like instruction counts) with dynamic features (runtime metrics like cache miss rates).
  • Source-to-Source Trends: There is a growing trend toward compilers like PetaBricks that automatically transform high-level code into optimized, device-specific implementations.
  • Self-Adaptation: Modern systems are moving toward "Observe-Decide-Act" loops, where the system monitors its own performance (e.g., throughput) and dynamically adjusts resources to meet goals.

Quantitative Results

The review highlights significant performance gains across various domains:

  • Compile-time: Support Vector Machines (SVMs) achieved 96% of the performance of hand-tuned code for automatic parallelization.
  • Run-time Scheduling: Artificial Neural Networks (ANNs) provided speedups of up to 3.2x over default OpenMP scheduling.
  • Workload Distribution: Decision Trees used for workload distribution resulted in speedups of up to 35.6x compared to sequential execution.
  • Search Efficiency: Genetic Algorithms reduced the search space for compiler flags from 10,000 evaluations to just one by utilizing profiling data.

Limitations and Future Directions

Despite these successes, several challenges remain:

  • Scope: Many solutions are currently tied to specific programming models (e.g., OpenMP) or application types.
  • Overhead: The "off-line" training phase for ML models can be data-intensive and time-consuming.
  • Code Bloat: Automated techniques sometimes generate multiple code versions, increasing executable size.

Future research should focus on developing portable frameworks that function across diverse architectures and reducing the data requirements for real-time system monitoring, particularly for exascale computing environments.

Summary updated

BibTeX
@article{memeti2019using,
  author = {Suejb Memeti and Sabri Pllana and Alécio Pedro Delazari Binotto and Joanna Kolodziej and Ivona Brandic},
  title = {{Using meta-heuristics and machine learning for software optimization of parallel computing systems: a systematic literature review}},
  journal = {Computing},
  year = {2019},
  doi = {10.1007/s00607-018-0614-9},
}
Figure