FasterPy: An LLM-based Code Execution Efficiency Optimization Framework
- lab CatalyzeX
- lab DagsHub
- lab Gotit.pub
- lab Hugging Face
- lab arXivLabs
- location arXiv
- person Peng Liang
- product FasterPy
A research team has introduced FasterPy, a framework that applies large language models to automatically improve the execution speed of Python programs, according to a paper posted on arXiv. The system combines retrieval-augmented generation with parameter-efficient fine-tuning to suggest performance-enhancing code edits [1]. The paper, authored by Peng Liang and colleagues, was first submitted in December 2025 and revised in June 2026 [1]. The authors argue that conventional rule-based optimization tools require manual upkeep for each class of performance bug, such as redundant loops or repeated computations, making them labor-intensive and narrow in scope [1]. Machine-learning approaches have offered alternatives, but they typically depend on specialized program representations and carefully curated training datasets, which raises development costs and limits scalability [1]. FasterPy addresses these constraints by pairing a retrieval-augmented generation module with Low-Rank Adaptation, a technique that fine-tunes a large language model by updating only a small set of parameters [1]. The retrieval component draws on a knowledge base built from existing pairs of slow and fast Python code, along with their corresponding performance measurements, to ground the model’s suggestions in prior optimization examples [1]. The researchers evaluated FasterPy on the Performance Improving Code Edits benchmark, a standardized test used to compare models on code-optimization tasks [1]. Language model benchmarks of this kind typically supply a dataset and a set of evaluation metrics, which can include not only accuracy but also throughput and energy efficiency [5]. The paper states that FasterPy outperformed existing models on multiple metrics, though the authors did not disclose specific numerical results in the abstract [1]. The framework’s design emphasizes low cost and efficiency, a combination the authors say makes it practical for broader adoption [1]. The code and experimental data have been released on GitHub, allowing other researchers to reproduce the findings or adapt the system for related tasks [1]. The work lands as interest grows in using large language models for software engineering beyond code generation, including maintenance and performance tuning, though independent validation of the reported gains remains pending.
tool-releaseresearch-papermodel-releaseproduct-launchbenchmark
Background sources we checked (9)
- arxiv.org ↗ Code often suffers from performance bugs. These bugs necessitate the research and practice of code optimization. Traditional rule-based methods rely on manually designing and maintaining rules for specific performance bugs (e.g., redundant loops, repeated computations), making th…
- en.wikipedia.org ↗ This glossary of artificial intelligence is a list of definitions of terms and concepts relevant to the study of artificial intelligence (AI), its subdisciplines, and related fields. Related glossaries include Glossary of computer science, Glossary of robotics, Glossary of machin…
- en.wikipedia.org ↗ Michael Karl Gschwind is an American computer scientist at Nvidia in Santa Clara, California. He is recognized for his seminal contributions to the design and exploitation of general-purpose programmable accelerators, as an early advocate of sustainability in computer design and …
- en.wikipedia.org ↗ A language model benchmark is a standardized test designed to evaluate the performance of language models on various natural language processing tasks. These tests are intended for comparing different models' capabilities in areas such as language understanding, generation, and r…
- arxiv.org ↗ CatalyzeX Code Finder for Papers (What is CatalyzeX?) ... DagsHub Toggle ... DagsHub (What is DagsHub?)…
- arxiv.org ↗ With the creation of new datasets, the question arises of whether the data in them is complementary to other datasets for training ML models (see recent reviews for a perspective of catalysts informatics22, 23, 24). This is especially important when consolidating data with a vari…
- arxiv.org ↗ CatalyzeX Code Finder for Papers (What is CatalyzeX?) ... DagsHub Toggle ... DagsHub (What is DagsHub?)…
- en.wikipedia.org ↗ Sustainable Development Goals (abbr. SDGs) were adopted in 2015 by all United Nations (UN) members for the 2030 Agenda for Sustainable Development. The aim of the 17 global goals is "peace and prosperity for people and the planet", tackling climate change, and working to preserv…
- en.wikipedia.org ↗ In molecular biology, a transcription factor (TF) (or sequence-specific DNA-binding factor) is a protein that controls the rate of transcription of genetic information from DNA to messenger RNA, by binding to DNA sequences. Specificity can be due to sequence motifs, or epigenetic…
Sources covering this (2)
- export.arxiv.org — FasterPy: An LLM-based Code Execution Efficiency Optimization Framework ↗
- export.arxiv.org — Bridging Functional Correctness and Runtime Efficiency Gaps in LLM-Based Code Translation · Global