Designing Algorithms Empowered by Language Models: An Analytical Framework, Case Studies, and Insights
Yanxi Chen, Yaliang Li, Bolin Ding, Jingren Zhou

TL;DR
This paper introduces an analytical framework for designing and analyzing algorithms that incorporate large language models, aiming to optimize their accuracy and efficiency through systematic analysis and case studies.
Contribution
It provides a formal framework for analyzing LLM-based algorithms, reducing trial-and-error in their design, and offers insights validated through diverse case studies.
Findings
Framework effectively analyzes impact of design choices
Case studies demonstrate broad applicability
Insights generalize across different algorithm patterns
Abstract
This work presents an analytical framework for the design and analysis of LLM-based algorithms, i.e., algorithms that contain one or multiple calls of large language models (LLMs) as sub-routines and critically rely on the capabilities of LLMs. While such algorithms, ranging from basic LLM calls with prompt engineering to complicated LLM-powered agentic workflows and compound AI systems, have achieved remarkable empirical success, their design and optimization oftentimes require extensive trial-and-errors and case-by-case analysis. Our proposed framework serves as an attempt to mitigate such headaches, offering a formal and systematic approach for analyzing how the accuracy and efficiency of an LLM-based algorithm will be impacted by critical design choices, such as the pattern and granularity of task decomposition, or the prompt for each LLM call. Through a wide range of case studies…
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Algorithms and Applications · Advanced Sensor and Control Systems
