PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
September 20, 20251 citations

POLO: An LLM-Powered Project-Level Code Performance Optimization Framework

View Full Paper
JBJing BaiRXRuozhou XuSWSai Wu

Key Points

  • POLO drastically improves runtime efficiency, achieving speedups between 1.34x and 21.5x in optimized programs.
  • The framework incorporates structural analysis and performance profiling to identify and mitigate bottlenecks effectively.
  • Iterative optimization by two LLM agents demonstrates a novel approach to address project-level code complexities.
  • Results from experiments on open-source and proprietary projects highlight POLO's ability to enhance code execution.

Abstract

Program performance optimization is essential for achieving high execution efficiency, yet it remains a challenging task that requires expertise in both software and hardware. Large Language Models (LLMs), trained on high-quality code from platforms like GitHub and other open-source sources, have shown promise in generating optimized code for simple snippets. However, current LLM-based solutions often fall short when tackling project-level programs due to the complexity of call graphs and the intricate interactions among functions. In this paper, we emulate the process a human expert might follow when optimizing project-level programs and introduce a three-phase framework POLO (PrOject-Level Optimizer) to address this limitation. First, we profile the program to identify performance bottlenecks using an iterative weighting algorithm. Next, we conduct structural analysis by scanning the project and generating a graph that represents the program's structure. Finally, two LLM agents collaborate in iterative cycles to rewrite and optimize the code at these hotspots, gradually improving performance. We conduct experiments on open-source and proprietary projects. The results demonstrate that POLO accurately identifies performance bottlenecks and successfully applies optimizations. Under the O3 compilation flag, the optimized programs achieved speedups ranging from 1.34x to 21.5x.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Bai et al. (2025) studied this question.

synapsesocial.com/papers/68d469d631b076d99fa66fefhttps://doi.org/10.24963/ijcai.2025/814
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Performance-Aligned LLMs for Generating Fast Code2024 · 1 citations
  2. 2Iterative or Innovative? A Problem-Oriented Perspective for Code Optimization2024
  3. 3Should AI Optimize Your Code? A Comparative Study of Current Large Language Models Versus Classical Optimizing Compilers2024 · 5 citations
  4. 4Opal: A Modular Framework for Optimizing Performance using Analytics and LLMs2025
  5. 5Beyond Single LLMs: Enhanced Code Generation via Multi-Stage Performance-Guided LLM Orchestration2025