Skip to main content

Showing 1–18 of 18 results for author: Cummins, C

Searching in archive cs. Search in all archives.
.
  1. arXiv:2403.14714  [pdf, other

    cs.PL cs.LG

    Compiler generated feedback for Large Language Models

    Authors: Dejan Grubisic, Chris Cummins, Volker Seeker, Hugh Leather

    Abstract: We introduce a novel paradigm in compiler optimization powered by Large Language Models with compiler feedback to optimize the code size of LLVM assembly. The model takes unoptimized LLVM IR as input and produces optimized IR, the best optimization passes, and instruction counts of both unoptimized and optimized IRs. Then we compile the input with generated optimization passes and evaluate if the… ▽ More

    Submitted 18 March, 2024; originally announced March 2024.

  2. arXiv:2402.18734  [pdf, other

    cs.LG cs.CL cs.PF

    Priority Sampling of Large Language Models for Compilers

    Authors: Dejan Grubisic, Chris Cummins, Volker Seeker, Hugh Leather

    Abstract: Large language models show great potential in generating and optimizing code. Widely used sampling methods such as Nucleus Sampling increase the diversity of generation but often produce repeated samples for low temperatures and incoherent samples for high temperatures. Furthermore, the temperature coefficient has to be tuned for each task, limiting its usability. We present Priority Sampling, a s… ▽ More

    Submitted 28 February, 2024; originally announced February 2024.

  3. arXiv:2401.12470  [pdf, other

    cs.LG cs.AI

    Reinforcement Learning for Graph Coloring: Understanding the Power and Limits of Non-Label Invariant Representations

    Authors: Chase Cummins, Richard Veras

    Abstract: Register allocation is one of the most important problems for modern compilers. With a practically unlimited number of user variables and a small number of CPU registers, assigning variables to registers without conflicts is a complex task. This work demonstrates the use of casting the register allocation problem as a graph coloring problem. Using technologies such as PyTorch and OpenAI Gymnasium… ▽ More

    Submitted 22 January, 2024; originally announced January 2024.

  4. arXiv:2309.09112  [pdf, other

    cs.PL cs.AR

    Rewriting History: Repurposing Domain-Specific CGRAs

    Authors: Jackson Woodruff, Thomas Koehler, Alexander Brauckmann, Chris Cummins, Sam Ainsworth, Michael F. P. O'Boyle

    Abstract: Coarse-grained reconfigurable arrays (CGRAs) are domain-specific devices promising both the flexibility of FPGAs and the performance of ASICs. However, with restricted domains comes a danger: designing chips that cannot accelerate enough current and future software to justify the hardware cost. We introduce FlexC, the first flexible CGRA compiler, which allows CGRAs to be adapted to operations the… ▽ More

    Submitted 16 September, 2023; originally announced September 2023.

  5. arXiv:2309.07062  [pdf, other

    cs.PL cs.AI cs.CL cs.LG

    Large Language Models for Compiler Optimization

    Authors: Chris Cummins, Volker Seeker, Dejan Grubisic, Mostafa Elhoushi, Youwei Liang, Baptiste Roziere, Jonas Gehring, Fabian Gloeckle, Kim Hazelwood, Gabriel Synnaeve, Hugh Leather

    Abstract: We explore the novel application of Large Language Models to code optimization. We present a 7B-parameter transformer model trained from scratch to optimize LLVM assembly for code size. The model takes as input unoptimized assembly and outputs a list of compiler options to best optimize the program. Crucially, during training, we ask the model to predict the instruction counts before and after opt… ▽ More

    Submitted 11 September, 2023; originally announced September 2023.

  6. arXiv:2309.01825  [pdf, other

    cs.LG cs.PL

    LoopTune: Optimizing Tensor Computations with Reinforcement Learning

    Authors: Dejan Grubisic, Bram Wasti, Chris Cummins, John Mellor-Crummey, Aleksandar Zlateski

    Abstract: Advanced compiler technology is crucial for enabling machine learning applications to run on novel hardware, but traditional compilers fail to deliver performance, popular auto-tuners have long search times and expert-optimized libraries introduce unsustainable costs. To address this, we developed LoopTune, a deep reinforcement learning compiler that optimizes tensor computations in deep learning… ▽ More

    Submitted 8 November, 2023; v1 submitted 4 September, 2023; originally announced September 2023.

  7. arXiv:2305.12520  [pdf, other

    cs.PL cs.AI

    SLaDe: A Portable Small Language Model Decompiler for Optimized Assembly

    Authors: Jordi Armengol-Estapé, Jackson Woodruff, Chris Cummins, Michael F. P. O'Boyle

    Abstract: Decompilation is a well-studied area with numerous high-quality tools available. These are frequently used for security tasks and to port legacy code. However, they regularly generate difficult-to-read programs and require a large amount of engineering effort to support new programming languages and ISAs. Recent interest in neural approaches has produced portable tools that generate readable code.… ▽ More

    Submitted 15 February, 2024; v1 submitted 21 May, 2023; originally announced May 2023.

  8. arXiv:2303.01557  [pdf, other

    cs.LG cs.AI

    BenchDirect: A Directed Language Model for Compiler Benchmarks

    Authors: Foivos Tsimpourlas, Pavlos Petoumenos, Min Xu, Chris Cummins, Kim Hazelwood, Ajitha Rajan, Hugh Leather

    Abstract: The exponential increase of hardware-software complexity has made it impossible for compiler engineers to find the right optimization heuristics manually. Predictive models have been shown to find near optimal heuristics with little human effort but they are limited by a severe lack of diverse benchmarks to train on. Generative AI has been used by researchers to synthesize benchmarks into existing… ▽ More

    Submitted 2 March, 2023; originally announced March 2023.

    Comments: arXiv admin note: substantial text overlap with arXiv:2208.06555

  9. arXiv:2301.05104  [pdf, other

    cs.PL cs.AI cs.LG

    Learning Compiler Pass Orders using Coreset and Normalized Value Prediction

    Authors: Youwei Liang, Kevin Stone, Ali Shameli, Chris Cummins, Mostafa Elhoushi, Jiadong Guo, Benoit Steiner, Xiaomeng Yang, Pengtao Xie, Hugh Leather, Yuandong Tian

    Abstract: Finding the optimal pass sequence of compilation can lead to a significant reduction in program size and/or improvement in program efficiency. Prior works on compilation pass ordering have two major drawbacks. They either require an excessive budget (in terms of compilation steps) at compile time or fail to generalize to unseen programs. In this paper, for code-size reduction tasks, we propose a n… ▽ More

    Submitted 27 January, 2023; v1 submitted 9 January, 2023; originally announced January 2023.

  10. arXiv:2208.06555  [pdf, other

    cs.AI

    BenchPress: A Deep Active Benchmark Generator

    Authors: Foivos Tsimpourlas, Pavlos Petoumenos, Min Xu, Chris Cummins, Kim Hazelwood, Ajitha Rajan, Hugh Leather

    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. BenchPress steers benchmark generation towards desired target fea… ▽ More

    Submitted 15 August, 2022; v1 submitted 12 August, 2022; originally announced August 2022.

    Comments: To appear in PACT 2022

  11. arXiv:2112.14679  [pdf, other

    cs.PL cs.LG

    Profile Guided Optimization without Profiles: A Machine Learning Approach

    Authors: Nadav Rotem, Chris Cummins

    Abstract: Profile guided optimization is an effective technique for improving the optimization ability of compilers based on dynamic behavior, but collecting profile data is expensive, cumbersome, and requires regular updating to remain fresh. We present a novel statistical approach to inferring branch probabilities that improves the performance of programs that are compiled without profile guided optimizat… ▽ More

    Submitted 4 January, 2022; v1 submitted 24 December, 2021; originally announced December 2021.

  12. arXiv:2111.12116  [pdf, other

    cs.PL

    Caviar: An E-graph Based TRS for Automatic Code Optimization

    Authors: Smail Kourta, Adel Namani, Fatima Benbouzid-Si Tayeb, Kim Hazelwood, Chris Cummins, Hugh Leather, Riyadh Baghdadi

    Abstract: Term Rewriting Systems (TRSs) are used in compilers to simplify and prove expressions. State-of-the-art TRSs in compilers use a greedy algorithm that applies a set of rewriting rules in a predefined order (where some of the rules are not axiomatic). This leads to a loss of the ability to simplify certain expressions. E-graphs and equality saturation sidestep this issue by representing the differen… ▽ More

    Submitted 27 February, 2022; v1 submitted 23 November, 2021; originally announced November 2021.

    Comments: Accepted in the 31st Conference on Compiler Construction (CC 2022)

  13. arXiv:2109.08267  [pdf, other

    cs.PL cs.AI cs.LG cs.PF

    CompilerGym: Robust, Performant Compiler Optimization Environments for AI Research

    Authors: Chris Cummins, Bram Wasti, Jiadong Guo, Brandon Cui, Jason Ansel, Sahir Gomez, Somya Jain, Jia Liu, Olivier Teytaud, Benoit Steiner, Yuandong Tian, Hugh Leather

    Abstract: Interest in applying Artificial Intelligence (AI) techniques to compiler optimizations is increasing rapidly, but compiler research has a high entry barrier. Unlike in other domains, compiler and AI researchers do not have access to the datasets and frameworks that enable fast iteration and development of ideas, and getting started requires a significant engineering investment. What is needed is a… ▽ More

    Submitted 22 December, 2021; v1 submitted 16 September, 2021; originally announced September 2021.

    Comments: 12 pages. Source code available at https://github.com/facebookresearch/CompilerGym

  14. arXiv:2106.10544  [pdf, other

    cs.AI cs.LG cs.RO

    Learning Space Partitions for Path Planning

    Authors: Kevin Yang, Tianjun Zhang, Chris Cummins, Brandon Cui, Benoit Steiner, Linnan Wang, Joseph E. Gonzalez, Dan Klein, Yuandong Tian

    Abstract: Path planning, the problem of efficiently discovering high-reward trajectories, often requires optimizing a high-dimensional and multimodal reward function. Popular approaches like CEM and CMA-ES greedily focus on promising regions of the search space and may get trapped in local maxima. DOO and VOOT balance exploration and exploitation, but use space partitioning strategies independent of the rew… ▽ More

    Submitted 21 January, 2022; v1 submitted 19 June, 2021; originally announced June 2021.

    Journal ref: NeurIPS 2021

  15. arXiv:2012.01470  [pdf, other

    cs.PL cs.LG

    Deep Data Flow Analysis

    Authors: Chris Cummins, Hugh Leather, Zacharias Fisches, Tal Ben-Nun, Torsten Hoefler, Michael O'Boyle

    Abstract: Compiler architects increasingly look to machine learning when building heuristics for compiler optimization. The promise of automatic heuristic design, freeing the compiler engineer from the complex interactions of program, architecture, and other optimizations, is alluring. However, most machine learning methods cannot replicate even the simplest of the abstract interpretations of data flow anal… ▽ More

    Submitted 20 November, 2020; originally announced December 2020.

    Comments: 9 pages, plus appendices. arXiv admin note: text overlap with arXiv:2003.10536

  16. arXiv:2011.14486  [pdf, other

    cs.LG cs.AI

    Value Function Based Performance Optimization of Deep Learning Workloads

    Authors: Benoit Steiner, Chris Cummins, Horace He, Hugh Leather

    Abstract: As machine learning techniques become ubiquitous, the efficiency of neural network implementations is becoming correspondingly paramount. Frameworks, such as Halide and TVM, separate out the algorithmic representation of the network from the schedule that determines its implementation. Finding good schedules, however, remains extremely challenging. We model this scheduling problem as a sequence of… ▽ More

    Submitted 29 November, 2020; originally announced November 2020.

  17. arXiv:2003.10536  [pdf, other

    cs.LG cs.PF cs.PL stat.ML

    ProGraML: Graph-based Deep Learning for Program Optimization and Analysis

    Authors: Chris Cummins, Zacharias V. Fisches, Tal Ben-Nun, Torsten Hoefler, Hugh Leather

    Abstract: The increasing complexity of computing systems places a tremendous burden on optimizing compilers, requiring ever more accurate and aggressive optimizations. Machine learning offers significant benefits for constructing optimization heuristics but there remains a gap between what state-of-the-art methods achieve and the performance of an optimal heuristic. Closing this gap requires improvements in… ▽ More

    Submitted 23 March, 2020; originally announced March 2020.

    Comments: 20 pages, author preprint

  18. arXiv:1511.02490  [pdf, other

    cs.DC

    Autotuning OpenCL Workgroup Size for Stencil Patterns

    Authors: Chris Cummins, Pavlos Petoumenos, Michel Steuwer, Hugh Leather

    Abstract: Selecting an appropriate workgroup size is critical for the performance of OpenCL kernels, and requires knowledge of the underlying hardware, the data being operated on, and the implementation of the kernel. This makes portable performance of OpenCL programs a challenging goal, since simple heuristics and statically chosen values fail to exploit the available performance. To address this, we propo… ▽ More

    Submitted 6 January, 2016; v1 submitted 8 November, 2015; originally announced November 2015.

    Comments: 8 pages, 6 figures, presented at the 6th International Workshop on Adaptive Self-tuning Computing Systems (ADAPT '16)