Saved in:
Bibliographic Details
Main Authors: Ashiga, Mari, Voskanyan, Vardan, Dinmohammadi, Fateme, Gong, Jingzhi, Brookes, Paul, Truscott, Matthew, Giavrimis, Rafail, Basios, Mike, Kanthan, Leslie, Jie, Wei
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2508.03329
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909724524412928
author Ashiga, Mari
Voskanyan, Vardan
Dinmohammadi, Fateme
Gong, Jingzhi
Brookes, Paul
Truscott, Matthew
Giavrimis, Rafail
Basios, Mike
Kanthan, Leslie
Jie, Wei
author_facet Ashiga, Mari
Voskanyan, Vardan
Dinmohammadi, Fateme
Gong, Jingzhi
Brookes, Paul
Truscott, Matthew
Giavrimis, Rafail
Basios, Mike
Kanthan, Leslie
Jie, Wei
contents 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 codebases; (2) Empirical evidence that MoA excels with open-source models, achieving 14.3% to 22.2% cost savings and 28.6% to 32.2% faster optimization times for regulated environments; (3) Deployment guidelines demonstrating GA's advantage with commercial models while both ensembles outperform individual LLMs; and (4) Real-world validation across 50 code snippets and seven LLM combinations, generating over 8,700 variants, addresses gaps in industrial LLM ensemble evaluation. This provides actionable guidance for organizations balancing regulatory compliance with optimization performance in production environments.
format Preprint
id arxiv_https___arxiv_org_abs_2508_03329
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Industrial LLM-based Code Optimization under Regulation: A Mixture-of-Agents Approach
Ashiga, Mari
Voskanyan, Vardan
Dinmohammadi, Fateme
Gong, Jingzhi
Brookes, Paul
Truscott, Matthew
Giavrimis, Rafail
Basios, Mike
Kanthan, Leslie
Jie, Wei
Software Engineering
Artificial Intelligence
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 codebases; (2) Empirical evidence that MoA excels with open-source models, achieving 14.3% to 22.2% cost savings and 28.6% to 32.2% faster optimization times for regulated environments; (3) Deployment guidelines demonstrating GA's advantage with commercial models while both ensembles outperform individual LLMs; and (4) Real-world validation across 50 code snippets and seven LLM combinations, generating over 8,700 variants, addresses gaps in industrial LLM ensemble evaluation. This provides actionable guidance for organizations balancing regulatory compliance with optimization performance in production environments.
title Industrial LLM-based Code Optimization under Regulation: A Mixture-of-Agents Approach
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2508.03329