PopPy: Opportunistically Exploiting Parallelism in Python Compound AI Applications

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Mell, Stephen, Mell, David, Kallas, Konstantinos, Zdancewic, Steve, Bastani, Osbert
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909054534680576
author Mell, Stephen
Mell, David
Kallas, Konstantinos
Zdancewic, Steve
Bastani, Osbert
author_facet Mell, Stephen
Mell, David
Kallas, Konstantinos
Zdancewic, Steve
Bastani, Osbert
contents Compound AI applications, 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. In contrast to traditional applications, execution time is dominated by the external components, which cannot be handled by traditional language optimization systems, like optimizing compilers. To address this problem, we develop PopPy, a system that can uncover parallelization opportunities in Python applications that invoke these heavy external components, including those used in compound AI applications. PopPy supports a very expressive fragment of Python and requires minimal developer input to uncover parallelism. It 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 compound AI applications, PopPy achieves up to $6.4\times$ speedups in end-to-end execution time compared to standard Python execution while preserving the sequential program semantics.
format Preprint
id arxiv_https___arxiv_org_abs_2605_18697
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle PopPy: Opportunistically Exploiting Parallelism in Python Compound AI Applications
Mell, Stephen
Mell, David
Kallas, Konstantinos
Zdancewic, Steve
Bastani, Osbert
Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Programming Languages
Compound AI applications, 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. In contrast to traditional applications, execution time is dominated by the external components, which cannot be handled by traditional language optimization systems, like optimizing compilers. To address this problem, we develop PopPy, a system that can uncover parallelization opportunities in Python applications that invoke these heavy external components, including those used in compound AI applications. PopPy supports a very expressive fragment of Python and requires minimal developer input to uncover parallelism. It 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 compound AI applications, PopPy achieves up to $6.4\times$ speedups in end-to-end execution time compared to standard Python execution while preserving the sequential program semantics.
title PopPy: Opportunistically Exploiting Parallelism in Python Compound AI Applications
topic Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Programming Languages
url https://arxiv.org/abs/2605.18697