Industrial LLM-based Code Optimization under Regulation: A Mixture-of-Agents Approach
Mari Ashiga, Vardan Voskanyan, Fateme Dinmohammadi, Jingzhi Gong, Paul Brookes, Matthew Truscott, Rafail Giavrimis, Mike Basios, Leslie Kanthan, and Wei Jie

TL;DR
This paper introduces a Mixture-of-Agents approach for industrial code optimization using LLMs, demonstrating cost and time savings in regulated environments and providing deployment insights for different model types.
Contribution
It is the first to apply MoA to industrial code optimization with real-world codebases and compares its effectiveness against existing ensemble and individual LLM methods.
Findings
MoA achieves 14.3% to 22.2% cost savings with open-source models
MoA is 28.6% to 32.2% faster in optimization times
Ensembles outperform individual LLMs in regulated environments
Abstract
Recent advancements in Large Language Models (LLMs) for code optimization have enabled industrial platforms to automate software performance engineering at unprecedented scale and speed. Yet, organizations in regulated industries face strict constraints on which LLMs they can use - many cannot utilize commercial models due to data privacy regulations and compliance requirements, creating a significant challenge for achieving high-quality code optimization while maintaining cost-effectiveness. We address this by implementing a Mixture-of-Agents (MoA) approach that directly synthesizes code from multiple specialized LLMs, comparing it against TurinTech AI's vanilla Genetic Algorithm (GA)-based ensemble system and individual LLM optimizers using real-world industrial codebases. Our key contributions include: (1) First MoA application to industrial code optimization using real-world…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Engineering Techniques and Practices · Machine Learning and Data Classification
