Industrial LLM-based Code Optimization under Regulation: A Mixture-of-Agents Approach
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
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.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 24 of its 31 references that are in the map. First posted on arXiv 5 Aug 2025.
Builds on
24 of 31 references.
References · 24
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2024Mixtral of Expertscited by 1,823
- 2024Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preferencecited by 1,184
- 2022Editing Models with Task Arithmeticcited by 1,120
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 853
- 2023TIES-Merging: Resolving Interference When Merging Modelscited by 818
- 2023Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunchcited by 694
- 2023LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusioncited by 564
- 2024Mixture-of-Agents Enhances Large Language Model Capabilitiescited by 438
- 2023Reward Model Ensembles Help Mitigate Overoptimizationcited by 231
- 2024Evolutionary Optimization of Model Merging Recipescited by 208
12 more
- 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 143
- 2024Knowledge Fusion of Large Language Modelscited by 115
- 2024Improving Reinforcement Learning from Human Feedback with Efficient Reward Model Ensemblecited by 44
- 2024Evolving Code with A Large Language Modelcited by 43
- 2024Routoo: Learning to Route to Large Language Models Effectivelycited by 34
- 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimizationcited by 30
- 2024Performance-Aligned LLMs for Generating Fast Codecited by 21
- 2025Ensemble Learning for Large Language Models in Text and Code Generation: A Surveycited by 9
- 2023PerfRL: A Small Language Model Framework for Efficient Code Optimizationcited by 8
- 2024LLM-Aided Compilation for Tensor Acceleratorscited by 8
- 2025Re-evaluating Open-ended Evaluation of Large Language Modelscited by 8
- 2024Knowledge Fusion of Chat LLMs: A Preliminary Technical Reportcited by 6
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026FormulaCode: Evaluating Agentic Optimization on Large Codebases
- 2026Opti-Agent-Bench: Benchmarking End-to-End Optimization R&D Agents on Real-World Business Problems
- 2026Developing LLM-based Multi-Agent Systems in Software Engineering: A Mixed-Method Experience Report
- 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimization
- 2025A Survey on Code Generation with LLM-based Agents
- 2025Rethinking Technology Stack Selection with AI Coding Proficiency
- 2026EffiSkill: Agent Skill Based Automated Code Efficiency Optimization
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence