paper-with-me

홈 › Papers

Cognify: Supercharging Gen-AI Workflows With Hierarchical Autotuning

2025-02-12 · Zijian He, Reyna Abhyankar, Vikranth Srivatsa, Yiying Zhang

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.

📄 PDF Abstract BibTeX arXiv:2502.08056

Code (1)

GenseeAI/cognify 공식 구현

Tasks

RAGText to SQLText-To-SQL

Similar Papers 제목 키워드 기반

Autotuning PolyBench Benchmarks with LLVM Clang/Polly Loop Optimization Pragmas Using Bayesian Optimization (extended version)

2021-04-27 · Xingfu Wu, Michael Kruse, Prasanna Balaprakash, Hal Finkel 외

In this paper, we develop a ytopt autotuning framework that leverages Bayesian optimization to explore the parameter space search and compare four different supervised learning methods within Bayesian optimization and ev…

Bayesian Optimization

Transfer-Learning-Based Autotuning Using Gaussian Copula

2024-01-09 · Thomas Randall, Jaehoon Koo, Brice Videau, Michael Kruse 외

As diverse high-performance computing (HPC) systems are built, many opportunities arise for applications to solve larger problems than ever before. Given the significantly increased complexity of these HPC systems and ap…

Transfer Learning

Surrogate-based Autotuning for Randomized Sketching Algorithms in Regression Problems

2023-08-30 · Younghyun Cho, James W. Demmel, Michał Dereziński, Haoyun Li 외

Algorithms from Randomized Numerical Linear Algebra (RandNLA) are known to be effective in handling high-dimensional computational problems, providing high-quality empirical performance as well as strong probabilistic gu…

regression

Autotuning PolyBench Benchmarks with LLVM Clang/Polly Loop Optimization Pragmas Using Bayesian Optimization

2020-10-15 · Xingfu Wu, Michael Kruse, Prasanna Balaprakash, Hal Finkel 외

An autotuning is an approach that explores a search space of possible implementations/configurations of a kernel or an application by selecting and evaluating a subset of implementations/configurations on a target platfo…

Bayesian Optimization

Autotuning Apache TVM-based Scientific Applications Using Bayesian Optimization

2023-09-13 · Xingfu Wu, Praveen Paramasivam, Valerie Taylor

Apache TVM (Tensor Virtual Machine), an open source machine learning compiler framework designed to optimize computations across various hardware platforms, provides an opportunity to improve the performance of dense mat…

Bayesian OptimizationGPU