SysLLMatic: Large Language Models are Software System Optimizers

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Peng, Huiyun, Gupte, Arjun, Hasler, Ryan, Eliopoulos, Nicholas John, Ho, Chien-Chou, Mantri, Rishi, Deng, Leo, Läufer, Konstantin, Thiruvathukal, George K., Davis, James C.
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915981633257472
author Peng, Huiyun
Gupte, Arjun
Hasler, Ryan
Eliopoulos, Nicholas John
Ho, Chien-Chou
Mantri, Rishi
Deng, Leo
Läufer, Konstantin
Thiruvathukal, George K.
Davis, James C.
author_facet Peng, Huiyun
Gupte, Arjun
Hasler, Ryan
Eliopoulos, Nicholas John
Ho, Chien-Chou
Mantri, Rishi
Deng, Leo
Läufer, Konstantin
Thiruvathukal, George K.
Davis, James C.
contents Automatic software system optimization can improve software speed, reduce operating costs, and save energy. Traditional approaches to optimization rely on manual tuning and compiler heuristics, limiting their ability to generalize across diverse codebases and system contexts. Recent methods using Large Language Models (LLMs) introduce automation on simple programs, but they do not scale effectively to the complexity and size of real-world software systems. We present SysLLMatic, a system that integrates LLMs with performance diagnostics and a curated catalog of 43 optimization patterns to automatically optimize software systems. By leveraging profiling to identify performance hotspots, our approach enables LLMs to optimize real-world software beyond isolated code snippets. We evaluate it on three benchmark suites: HumanEval_CPP (competitive programming in C++), SciMark2 (scientific kernels in Java), and DaCapo (large-scale software systems in Java). Results show that SysLLMatic can improve software system performance, including latency, throughput, energy efficiency, memory usage, and CPU utilization. It consistently outperforms state-of-the-art LLM baselines on microbenchmarks. On large-scale application codes, to which prior LLM approaches have not scaled, it surpasses compiler optimizations, achieving average relative improvements of 1.54x in latency (vs. 1.01x for the compiler) and 1.24x in energy (vs. 1.08x for the compiler). Our findings demonstrate that LLMs, guided by performance knowledge through the optimization pattern catalog and appropriate performance diagnostics, can serve as viable software system optimizers. We further identify limitations of our approach and the challenges involved in handling complex applications. This work provides a foundation for generating optimized code across various languages, benchmarks, and program sizes in a principled manner.
format Preprint
id arxiv_https___arxiv_org_abs_2506_01249
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SysLLMatic: Large Language Models are Software System Optimizers
Peng, Huiyun
Gupte, Arjun
Hasler, Ryan
Eliopoulos, Nicholas John
Ho, Chien-Chou
Mantri, Rishi
Deng, Leo
Läufer, Konstantin
Thiruvathukal, George K.
Davis, James C.
Software Engineering
Performance
Automatic software system optimization can improve software speed, reduce operating costs, and save energy. Traditional approaches to optimization rely on manual tuning and compiler heuristics, limiting their ability to generalize across diverse codebases and system contexts. Recent methods using Large Language Models (LLMs) introduce automation on simple programs, but they do not scale effectively to the complexity and size of real-world software systems. We present SysLLMatic, a system that integrates LLMs with performance diagnostics and a curated catalog of 43 optimization patterns to automatically optimize software systems. By leveraging profiling to identify performance hotspots, our approach enables LLMs to optimize real-world software beyond isolated code snippets. We evaluate it on three benchmark suites: HumanEval_CPP (competitive programming in C++), SciMark2 (scientific kernels in Java), and DaCapo (large-scale software systems in Java). Results show that SysLLMatic can improve software system performance, including latency, throughput, energy efficiency, memory usage, and CPU utilization. It consistently outperforms state-of-the-art LLM baselines on microbenchmarks. On large-scale application codes, to which prior LLM approaches have not scaled, it surpasses compiler optimizations, achieving average relative improvements of 1.54x in latency (vs. 1.01x for the compiler) and 1.24x in energy (vs. 1.08x for the compiler). Our findings demonstrate that LLMs, guided by performance knowledge through the optimization pattern catalog and appropriate performance diagnostics, can serve as viable software system optimizers. We further identify limitations of our approach and the challenges involved in handling complex applications. This work provides a foundation for generating optimized code across various languages, benchmarks, and program sizes in a principled manner.
title SysLLMatic: Large Language Models are Software System Optimizers
topic Software Engineering
Performance
url https://arxiv.org/abs/2506.01249