Agentic Superoptimization of Bioimaging Analysis Workflows.
Authors
Affiliations (4)
Affiliations (4)
- Caltech.
- Cornell.
- UT Austin.
- Rensselaer Polytechnic Institute.
Abstract
Data-driven scientific discovery relies on complex computational workflows to process large, high-dimensional experimental datasets. However, a fundamental bottleneck exists: adapting carefully engineered computational tools to bespoke datasets studied by individual labs demands substantial manual tuning and custom code development, consuming weeks or months of expert time and slowing scientific progress. To address this bottleneck, we introduce agentic superoptimization, a new paradigm for leveraging generative AI to autonomously write customized code that can surpass human-expert-engineered solutions. We study a proof-of-concept agentic framework for superoptimizing data preparation functions directly in real-world, production-level scientific workflows, without requiring additional annotations or training. We validate our approach on challenging biology and medical imaging tasks, consistently outperforming expert baselines. Notably, our agent-generated code achieved the first-ever successful deployment into a production-level scientific pipeline. Our work lays the foundation towards human-AI agent collaborative discovery in complex, real-world environments.