PopPy: Opportunistically Exploiting Parallelism in Python Agentic Workflows

Stephen Mell, David Mell, Harry Y. H. Li, Zhihao Jia, Konstantinos Kallas +2 more
5/18/2026
cs.DCcs.AIcs.PL

No confident code implementation found for this paper.

Abstract

Agentic workflows, which compose calls to ML models using a general-purpose programming language like Python, are widely used for a variety of user-facing tasks, from software engineering to enterprise automation, making their end-to-end latency a critical bottleneck. To improve their latency, developers can either manually parallelize them or use restricted agentic frameworks that cannot express or exploit all forms of parallelization.

Show full abstract

We address this by developing PopPy, a system that parallelizes external calls, e.g., AI models, in agentic workflows written in a very expressive subset of Python. PopPy combines an ahead-of-time compiler with a runtime, addressing three key challenges in extracting parallelism from Python applications: language complexity, dynamic dispatch, and variable mutation. On a set of real-world agentic workflows, PopPy achieves up to $6.7\times$ speedups in end-to-end execution time, compared to standard Python execution and several agentic frameworks, while preserving the sequential program semantics.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mell2026poppy,
  title  = {PopPy: Opportunistically Exploiting Parallelism in Python Agentic Workflows},
  author = {Stephen Mell and David Mell and Harry Y. H. Li and Zhihao Jia and Konstantinos Kallas and Steve Zdancewic and Osbert Bastani},
  year   = {2026},
  eprint = {2605.18697},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.18697v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.18697.svg)](https://codeofpaper.com/paper/2605.18697)

Discussion