Cognify: Supercharging Gen-AI Workflows With Hierarchical Autotuning
Zijian He, Reyna Abhyankar, Vikranth Srivatsa, Yiying Zhang

TL;DR
Cognify introduces AdaSeek, an adaptive hierarchical autotuning algorithm that systematically optimizes complex gen-AI workflows, significantly improving quality, reducing costs, and decreasing latency.
Contribution
The paper presents AdaSeek, a novel hierarchical search algorithm for autotuning gen-AI workflows, addressing their unique properties and optimizing tuning across multiple layers.
Findings
Cognify improves workflow quality by up to 2.8x.
Reduces execution cost by up to 10x.
Decreases end-to-end latency by 2.7x.
Abstract
Today's gen-AI workflows that involve multiple ML model calls, tool/API calls, data retrieval, or generic code execution are often tuned manually in an ad-hoc way that is both time-consuming and error-prone. In this paper, we propose a systematic approach for automatically tuning gen-AI workflows. Our key insight is that gen-AI workflows can benefit from structure, operator, and prompt changes, but unique properties of gen-AI workflows require new optimization techniques. We propose AdaSeek, an adaptive hierarchical search algorithm for autotuning gen-AI workflows. AdaSeek organizes workflow tuning methods into different layers based on the user-specified total search budget and distributes the budget across different layers based on the complexity of each layer. During its hierarchical search, AdaSeek redistributes the search budget from less useful to more promising tuning…
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
TopicsScientific Computing and Data Management · Explainable Artificial Intelligence (XAI)
