BenchPress: A Deep Active Benchmark Generator

Foivos Tsimpourlas, Pavlos Petoumenos, Min Xu, Chris Cummins, Kim Hazelwood +2 more
8/13/2022
cs.AI
benchmark-dataset

Official code: fivosts/BenchPress (22 stars, Python, GPL-3.0, last commit 2023-03-15).

Abstract

We develop BenchPress, the first ML benchmark generator for compilers that is steerable within feature space representations of source code. BenchPress synthesizes compiling functions by adding new code in any part of an empty or existing sequence by jointly observing its left and right context, achieving excellent compilation rate.

Show full abstract

BenchPress steers benchmark generation towards desired target features that has been impossible for state of the art synthesizers (or indeed humans) to reach. It performs better in targeting the features of Rodinia benchmarks in 3 different feature spaces compared with (a) CLgen - a state of the art ML synthesizer, (b) CLSmith fuzzer, (c) SRCIROR mutator or even (d) human-written code from GitHub. BenchPress is the first generator to search the feature space with active learning in order to generate benchmarks that will improve a downstream task. We show how using BenchPress, Grewe's et al. CPU vs GPU heuristic model can obtain a higher speedup when trained on BenchPress's benchmarks compared to other techniques. BenchPress is a powerful code generator: Its generated samples compile at a rate of 86%, compared to CLgen's 2.33%. Starting from an empty fixed input, BenchPress produces 10x more unique, compiling OpenCL benchmarks than CLgen, which are significantly larger and more feature diverse.

View on arXivView PDF

Code Implementations(1)

fivosts/BenchPressOfficial100%
GPL-3.0

:orange_book: Source code for "BenchPress: A Deep Active Benchmark Generator", PACT 2022

224Python, CApr 11, 20203 years agoGPL-3.0

Similar Papers

Cite this paper

@article{tsimpourlas2022benchpress,
  title  = {BenchPress: A Deep Active Benchmark Generator},
  author = {Foivos Tsimpourlas and Pavlos Petoumenos and Min Xu and Chris Cummins and Kim Hazelwood and Ajitha Rajan and Hugh Leather},
  year   = {2022},
  eprint = {2208.06555},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.06555}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2208.06555.svg)](https://codeofpaper.com/paper/2208.06555)

Discussion