Tuning LLM-based Code Optimization via Meta-Prompting: An Industrial Perspective
Not on the map. Why?
Abstract (arXiv)
There is a growing interest in leveraging multiple large language models (LLMs) for automated code optimization. However, industrial platforms deploying multiple LLMs face a critical challenge: prompts optimized for one LLM often fail with others, requiring expensive model-specific prompt engineering. This cross-model prompt engineering bottleneck severely limits the practical deployment of multi-LLM systems in production environments. We introduce Meta-Prompted Code Optimization (MPCO), a framework that automatically generates high-quality, task-specific prompts across diverse LLMs while maintaining industrial efficiency requirements. MPCO leverages metaprompting to dynamically synthesize context-aware optimization prompts by integrating project metadata, task requirements, and LLM-specific contexts. It is an essential part of the ARTEMIS code optimization platform for automated validation and scaling. Our comprehensive evaluation on five real-world codebases with 366 hours of runtime benchmarking demonstrates MPCO's effectiveness: it achieves overall performance improvements up to 19.06% with the best statistical rank across all systems compared to baseline methods. Analysis shows that 96% of the top-performing optimizations stem from meaningful edits. Through systematic ablation studies and meta-prompter sensitivity analysis, we identify that comprehensive context integration is essential for effective meta-prompting and that major LLMs can serve effectively as meta-prompters, providing actionable insights for industrial practitioners.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 24 of its 74 references that are in the map. First posted on arXiv 2 Aug 2025.
Builds on
24 of 74 references.
References · 24
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
- 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 431
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 233
- 2025AIDE: AI-Driven Exploration in the Space of Codecited by 226
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 178
- 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffoldingcited by 117
- 2023Learning Performance-Improving Code Editscited by 106
12 more
- 2023Large Language Models for Compiler Optimizationcited by 52
- 2023Explainable Automated Debugging via Large Language Model-driven Scientific Debuggingcited by 40
- 2024Meta Large Language Model Compiler: Foundation Models of Compiler Optimizationcited by 39
- 2024Exploration of LLM Multi-Agent Application Implementation Based on LangGraph+CrewAIcited by 35
- 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimizationcited by 30
- 2023A Comparative Analysis of Large Language Models for Code Documentation Generationcited by 24
- 2022MetaPrompting: Learning to Learn Better Promptscited by 19
- 2024LangProp: A code optimization framework using Large Language Models applied to drivingcited by 18
- 2023Meta Prompting for AI Systemscited by 16
- 2024RePrompt: Planning by Automatic Prompt Engineering for Large Language Models Agentscited by 16
- 2025Language Models for Code Optimization: Survey, Challenges and Future Directionscited by 15
- 2023Self-Pro: A Self-Prompt and Tuning Framework for Graph Neural Networkscited by 8
Built on by
Citing papers per year: 2025: 3; 2026: 4.
7 papers.
- 2025Evolving Excellence: Automated Optimization of LLM-based Agentscited by 4
- 2026Analyzing Message-Code Inconsistency in AI Coding Agent-Authored Pull Requestscited by 4
- 2025GA4GC: Greener Agent for Greener Code via Multi-Objective Configuration Optimizationcited by 3
- 2025FasterPy: An LLM-based Code Execution Efficiency Optimization Frameworkcited by 3
- 2026Lean Refactor: Multi-Objective Controllable Proof Optimization via Agentic Strategy Searchcited by 1
- 2026OMEGA: Optimizing Machine Learning by Evaluating Generated Algorithmscited by 0
- 2026COMPAS: Difficulty-Aware Joint Search for Optimizing Code Generationcited by 0
- 2026COMPAS: Difficulty-Aware Joint Search for Optimizing Code Generation5 Aug 2026
- 2026Lean Refactor: Multi-Objective Controllable Proof Optimization via Agentic Strategy Search18 May 2026
- 2026OMEGA: Optimizing Machine Learning by Evaluating Generated Algorithms29 Apr 2026
- 2026Analyzing Message-Code Inconsistency in AI Coding Agent-Authored Pull Requests8 Jan 2026
- 2025FasterPy: An LLM-based Code Execution Efficiency Optimization Framework28 Dec 2025
- 2025Evolving Excellence: Automated Optimization of LLM-based Agents9 Dec 2025
- 2025GA4GC: Greener Agent for Greener Code via Multi-Objective Configuration Optimization5 Oct 2025