Artemis AI: Multi-LLM Framework for Code Optimisation
This paper introduces Artemis AI, a novel framework leveraging multiple Large Language Models (LLMs) optimise code performance. Artemis AI achieves significant performance improvements in highly-optimised code across diverse domains with minimal changes. We focus on three representative open-source projects: QuantLib (quantitative finance), Llama2.c (natural language processing), and OpenAI Whisper (automatic speech recognition) and one proprietary high performance codebase. Our multi-stage process involves extracting target code snippets, independent optimisation by multiple LLMs, and a search-based selection of the optimal solutions, achieving a 30 % reduction in execution time for QuantLib, a 52 % reduction for Llama2.c, and a 15% reduction for OpenAI Whisper. These results highlight the potential of multi-LLM collaboration for substantial performance gains that lead to greener software while preserving code readability and reliability.
Authors
- Rafail Giavrimis
- Roman Bauer (ORCID: https://orcid.org/0000-0002-7268-9359)
- Michail Basios
- Leslie Kanthan
- Fan Wu (ORCID: https://orcid.org/0009-0008-6936-0457)
Institutions
- University of Surrey (GB)
Publication Details
- Published
- 2025-05-05
- DOI
- https://doi.org/10.1109/cai64502.2025.00057
- Citations
- 1
- Primary Topic
- Simulation Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 2.11