APWA: A Distributed Architecture for Parallelizable Agentic Workflows

Evan Rose, Tushin Mallick, Matthew D. Laws, Cristina Nita-Rotaru, Alina OpreaarXiv 2026

TL;DR

Large Language Model (LLM) multi-agent systems struggle to scale when tasks involve massive datasets or highly parallelizable workloads due to coordination overhead and context window limits. This paper introduces the Agent-Parallel Workload Architecture (APWA), a distributed architecture that borrows concepts from classic parallel computing (like MapReduce) to dynamically decompose complex tasks into independent, non-interfering subtasks. Built on the Ray framework, APWA scales seamlessly to thousands of concurrent agents, successfully executing large-scale workflows where traditional multi-agent frameworks completely fail.

What Problem Does This Paper Address?

Multi-agent LLM systems are excellent at breaking down complex goals, but they hit a wall when scaling up. Current architectures rely heavily on synchronized message passing through a central LLM orchestrator. As the number of agents or the volume of data grows, this orchestrator becomes a massive bottleneck.

Furthermore, LLMs suffer from "context window exhaustion" and degraded reasoning when forced to handle large datasets—or even just the metadata of millions of objects. Existing frameworks lack the abstractions needed to handle large-scale data processing or to execute thousands of independent subtasks in parallel without drowning in global coordination overhead.

Methods

APWA introduces a hierarchical architecture split into system-level and distributed-level abstractions, implemented on top of the Ray distributed computing framework.

Figure 1: Overview of APWA. APWA dynamically decomposes tasks into parallelizable workflows leveraging agent workers and executes them in a distributed environment.

System-Level Abstractions:

  • Manager: The single orchestrator with a global view, responsible for "meta-planning" and partitioning the main task into independent subtasks.
  • Worker: Autonomous agents (running in sandboxed Docker containers or a lightweight LLM-only mode) that execute specific subtasks using local context and tools.
  • Executor: The underlying engine that handles low-level distributed computing details like resource allocation, timeouts, and automatic retries.

Distributed-Level Abstractions:

  • Data Tables: A logical, read-only representation of data that uses a strict schema and tracks data lineage. This allows LLMs to reason over massive datasets using compact metadata without overloading their context windows.
  • Subtask Delegation via Templates: Allows the Manager to deploy batches of thousands of subtasks simultaneously using placeholders, decoupling the task logic from the data scale.
Figure 2: APWA Distributed System Architecture.

Datasets

The authors evaluated APWA against three diverse benchmarks:

  1. PII-300k: A data-redaction task focused on identifying and masking sensitive fields across unstructured records.
  2. SchemaBench: A structured content extraction benchmark requiring valid JSON generation from heterogeneous document formats (LaTeX, XML, CSV, HTML).
  3. SummaryBench: A newly introduced hierarchical summarization benchmark based on literary corpora of varying sizes (Romeo and Juliet, The Dynasts, and The History of the Decline and Fall of the Roman Empire), scaling up to 10.5 MB.
  4. WebSurfer: A technical report synthesis task utilizing web browsing agents across small (10), medium (20), and large (100) topic sets.

Key Insights and Ideas

  • The "MapReduce" Moment for Agents: Instead of treating multi-agent coordination as a conversational problem (like AutoGen), APWA treats it as a distributed dataflow problem. By enforcing a rule of no cross-communication between workers, it eliminates the coordination bottleneck entirely.
  • Metadata is Too Big for LLMs: In traditional systems, metadata easily fits in memory. For LLMs, enumerating thousands of file IDs can cause a total collapse in reasoning. APWA's Data Tables and relational algebra abstractions solve this by giving LLMs a highly compressed, structured way to interact with data.
  • Dynamic Routing for Efficiency: APWA intelligently switches between a full Docker-sandboxed agent environment and a lightweight "LLM-only" mode based on subtask complexity, boosting throughput by 10–100× for simple tasks like summarization.

Key Results

APWA significantly outperformed baselines (Direct LLM, Magentic-One, MegaAgent) in both scalability and accuracy.

  • Zero Failure at Scale: On the largest datasets (like the 10.5 MB Roman history corpus or PII-4096), all baselines failed completely due to context explosion or orchestration timeouts. APWA maintained a 0% failure rate.
  • Sublinear Scaling: In the WebSurfer experiment, increasing the workload by 10× (from 10 to 100 topics) resulted in only a 4.2× increase in runtime, demonstrating excellent amortization of execution overhead.
  • High Fidelity: APWA consistently preserved structural and semantic integrity across all scales, running over 2,500 agents concurrently with minimal runtime inflation.

Quantitative breakdowns can be seen in the evaluation tables below:

Table 1: Failure rates and wall-clock runtimes for SummaryBench and PII-300k. APWA leverages parallelization to efficiently solve tasks with increasingly large input sizes. All settings use GPT-5.4 mini, except MegaAgent using GPT-4.1 mini. Wall-clock runtimes reflected only for trials that produced output. FR = failure rate, WC = wall-clock time (seconds).
Table 2: Structural and semantic scores for SummaryBench and PII-300k. APWA preserves structural and semantic integrity with increasingly large input sizes. All settings use GPT-5.4 mini, except MegaAgent using GPT-4.1 mini. Scores computed only for trials that produced output. Str. = structural score, Sem. = semantic score.

Limitations and Future Work

  • Isolated Workers: Because workers cannot communicate with each other directly, APWA is poorly suited for workflows that require complex cross-subtask coordination or negotiation.
  • Pattern Generalization: The system's task planning currently relies on a specific set of parallelization templates; its ability to generalize to entirely novel parallel patterns remains unproven.
  • Security Vulnerabilities: The current architecture does not incorporate guardrails against prompt injection, malicious tool usage, or data leakage, which becomes a heightened risk given the system's high autonomy and throughput.

Summary updated

BibTeX
@misc{rose2026apwa,
  author = {Evan Rose and Tushin Mallick and Matthew D. Laws and Cristina Nita-Rotaru and Alina Oprea},
  title = {{APWA: A Distributed Architecture for Parallelizable Agentic Workflows}},
  year = {2026},
  eprint = {2605.15132},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.15132},
}
Figure