Cognify: Supercharging Gen-AI Workflows With Hierarchical Autotuning
Not on the map. Why?
Abstract (arXiv)
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 configurations based on workflow-level evaluation results. We implement AdaSeek in a workflow autotuning framework called Cognify and evaluate Cognify using six types of workflows such as RAG-based QA and text-to-SQL transformation. Overall, Cognify improves these workflows' generation quality by up to 2.8x, reduces execution monetary cost by up to 10x, and reduces end-to-end latency by 2.7x.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 11 of its 52 references that are in the map. First posted on arXiv 12 Feb 2025.
Builds on
11 of 52 references.
References · 11
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 554
- 2018BOHB: Robust and Efficient Hyperparameter Optimization at Scalecited by 466
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 270
- 2018Neural Architecture Search with Bayesian Optimisation and Optimal Transportcited by 192
- 2023Tree-Structured Parzen Estimator: Understanding Its Algorithm Components and Their Roles for Better Empirical Performancecited by 143
- 2024MatPlotAgent: Method and Evaluation for LLM-Based Agentic Scientific Data Visualizationcited by 98
- 2024Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMscited by 62
Built on by
Citing papers per year: 2025: 7.
7 papers.
- 2025KVFlow: Efficient Prefix Caching for Accelerating LLM-Based Multi-Agent Workflowscited by 56
- 2025Cache-to-Cache: Direct Semantic Communication Between Large Language Modelscited by 54
- 2025Single-agent or Multi-agent Systems? Why Not Both?cited by 28
- 2025A Survey on Agent Workflow -- Status and Futurecited by 14
- 2025Demystifying and Enhancing the Efficiency of Large Language Model Based Search Agentscited by 5
- 2025HedraRAG: Coordinating LLM Generation and Database Retrieval in Heterogeneous RAG Servingcited by 3
- 2025Access Paths for Efficient Ordering with Large Language Modelscited by 1
- 2025Cache-to-Cache: Direct Semantic Communication Between Large Language Models3 Oct 2025
- 2025Access Paths for Efficient Ordering with Large Language Models30 Aug 2025
- 2025A Survey on Agent Workflow -- Status and Future2 Aug 2025
- 2025HedraRAG: Coordinating LLM Generation and Database Retrieval in Heterogeneous RAG Serving12 Jul 2025
- 2025KVFlow: Efficient Prefix Caching for Accelerating LLM-Based Multi-Agent Workflows10 Jul 2025
- 2025Single-agent or Multi-agent Systems? Why Not Both?23 May 2025
- 2025Demystifying and Enhancing the Efficiency of Large Language Model Based Search Agents17 May 2025
Similar, not cited
Close in wording, no citation either way
- 2026From Search to Synthesis: Training LLMs as Zero-Shot Workflow Generators
- 2026It Takes Workflows to Evolve Better Workflows
- 2024Generating a Low-code Complete Workflow via Task Decomposition and RAG
- 2025AutoSynth: Automated Workflow Optimization for High-Quality Synthetic Dataset Generation via Monte Carlo Tree Search
- 2024AutoFlow: Automated Workflow Generation for Large Language Model Agents
- 2025AdaptFlow: Adaptive Workflow Optimization via Meta-Learning
- 2026FlowEvo: Self-Evolving Agents through the Co-Evolution of Workflows and Executable Skills
- 2025EvoFlow: Evolving Diverse Agentic Workflows On The Fly