Engineering PapersSearch

DOE OSTI · 3364516

Performance-Aligned LLMs for Generating Fast HPC Code

Abstract

Optimizing scientific software is a difficult task because codebases are often large and complex, and performance can depend upon several factors including the algorithm, its implementation, and hardware among others. Causes of poor performance can originate from disparate sources and be difficult to diagnose. Recent years have seen a multitude of work that use large language models (LLMs) to assist in software development tasks. However, these tools are trained to model the distribution of code as text, and are not specifically designed to understand performance aspects of code. In this work, we introduce a reinforcement learning based methodology to align the outputs of code LLMs with performance. This allows us to build upon the current code modeling capabilities of LLMs and extend them to generate better performing code. Here, we demonstrate that our fine-tuned model improves the expected speedup of generated code over base models for a set of benchmark tasks from 0.9 to 1.6 for serial code and 1.9 to 4.5 for OpenMP parallel code.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Nichols, Daniel [Lawrence Livermore National Laboratory (LLNL), Livermore, CA (United States)] (ORCID:0000000235386164), Polasam, Pranav [University of Maryland, College Park, MD (United States)], Menon, Harshitha [Lawrence Livermore National Laboratory (LLNL), Livermore, CA (United States)] (ORCID:0000000347079580), Marathe, Aniruddha [Lawrence Livermore National Laboratory (LLNL), Livermore, CA (United States)], Gamblin, Todd [Lawrence Livermore National Laboratory (LLNL), Livermore, CA (United States)] (ORCID:0000000278572805), Bhatele, Abhinav [University of Maryland, College Park, MD (United States)] (ORCID:0000000330693701). 2026-03-18. Performance-Aligned LLMs for Generating Fast HPC Code. https://doi.org/10.1109/tpds.2026.3675550

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related reports

Expanding Access to Science Participation: A FAIR Framework for Petascale Data Visualization and Analytics

The massive data generated by scientists daily serve as both a major catalyst for new discoveries and innovations, as well as a significant roadblock that restricts access to the data. Here, our paper introduces a new approach to removing Big Data barriers and democratizing access to petascale data for the broader scientific community. Our novel data fabric abstraction layer allows user-friendly querying of scientific information while hiding the complexities of dealing with file systems or cloud services. We enable FAIR (Findable, Accessible, Interoperable, and Reusable) access to datasets such as NASA’s petascale climate datasets. Our paper presents an approach to managing, visualizing, and analyzing petabytes of data within a browser on equipment ranging from the top NASA supercomputer to commodity hardware like a laptop. Our novel data fabric abstraction utilizes state-of-the art progressive compression algorithms and machine-learning insights to power scalable visualization dashboards for petascale data. The result provides users with the ability to identify extreme events or trends dynamically, expanding access to scientific data and further enabling discoveries. We validate our approach by improving the ability of climate scientists to visually explore their data via three fully interactive dashboards. We further validate our approach by deploying the dashboards and simplified training materials in the classroom at a minority-serving institution. These dashboards, released in simplified form to the general public, contribute significantly to a broader push to democratize the access and use of climate data.

Computer science