Paper: arXiv 2603.13605 — Shahout et al., March 2026

GitHub: github.com/dorcha-inc/orla


Most teams building multi-agent LLM systems glue together orchestration code, LLM serving engines, and tool execution logic by hand. Orla argues this is the wrong abstraction layer. Instead of optimizing individual inference requests, Orla operates at the workflow level — sitting above backends like vLLM, SGLang, and Ollama to coordinate how multi-stage agent workflows are mapped, scheduled, and memory-managed across heterogeneous infrastructure.

The Problem

Current LLM serving stacks (vLLM, SGLang, etc.) optimize request-level execution: prefill scheduling, continuous batching, KV cache eviction. These are necessary but insufficient for agentic workloads, which have two properties that break the single-request model:

  1. Heterogeneity: Within a single workflow, stages have wildly different compute needs. A routing/classification step can run on a 4B-parameter model; a code-generation or policy-checking step needs 8B+. Different stages may also target different backends (SGLang on a datacenter GPU vs. Ollama on an edge device).
  1. Cross-stage coordination: Agentic workflows share context across stages. Consecutive calls reuse large context prefixes. KV cache from one stage is directly relevant to the next. Request-level backends don't see these dependencies — they treat each call in isolation.

The result: redundant prefilling, poor GPU memory utilization, and no mechanism to prioritize or schedule stages relative to each other.

Core Abstractions

Orla introduces three primitives:

  • Stage: The basic execution unit. A stage performs LLM inference on given context, may iteratively invoke tools, and produces output. Each stage specifies its model backend, inference parameters, and optional tools.
  • Workflow: A DAG of stages. Edges encode execution dependencies. A stage runs only after all upstream stages complete, and its input context is constructed from upstream outputs.
  • Backend: An LLM inference endpoint (SGLang, vLLM, Ollama, or a simulator). Backends are plug-and-play — Orla communicates via OpenAI-compatible HTTP API. Switching backends requires only changing the endpoint URL in stage configuration; no changes to workflow definitions, scheduling policies, or the memory manager.

Three Mechanisms

1. Stage Mapper

Assigns each stage to a model and backend. Two strategies:

  • Explicit mapping: Developer specifies which stage runs on which backend/model. Orla validates compatibility (catching config errors before execution).
  • Dynamic routing: The StageMapper interface supports pluggable routers. Orla ships with OneBitStageMapper, which makes a lightweight LLM call to classify requests as "simple" or "complex" and routes accordingly.

In the paper's customer support demo, the classify stage runs on SGLang with Qwen3-4B, while policycheck, reply, and routeticket stages run on a heavier SGLang backend with Qwen3-8B.

2. Workflow Orchestrator

Handles two concerns:

Scheduling: Hierarchical two-level scheduling. Each backend maintains a queue of requests, partitioned into per-stage sub-queues. A stage scheduler picks which stage's queue to serve next (FCFS by default, or priority-based). A request scheduler picks the next request within that queue. Adding a custom Shortest Job First scheduler based on prompt length takes under 20 lines of code.

Priority hints propagate downstream: after classify completes, its structured output (ticket category, escalation flag) assigns scheduling priorities to downstream stages. Billing/technical tickets get higher priority than general inquiries.

Resource and context management: When a stage completes, its output feeds into downstream stages via builder functions. The reply stage's builder consumes outputs from both classify and policycheck, branching its prompt based on the needsescalation flag. The orchestrator also keeps backends utilized during tool-call waits and dispatches ready stages concurrently.

3. Memory Manager

This is where Orla delivers its most novel optimization. In agentic workflows, consecutive stages on the same backend often share large context prefixes — each stage extends the previous context with tool outputs. Preserving KV cache across stages avoids redundant prefilling.

But GPU memory is finite. The memory manager makes workflow-aware decisions about when to keep KV cache and when to reclaim it, using signals invisible to request-level backends: stage dependencies, predicted reuse, backend transitions, and workflow completion.

The key insight: KV cache decisions should not be made at the level of individual inference calls. They need workflow-level context — knowing that stage B will reuse stage A's prefix, or that a workflow is about to complete so its cache can be freed.

Evaluation

Orla is evaluated on two datasets against a single-model vLLM baseline:

  • Stage mapping improves both latency and cost compared to routing every request through a single large model. Light stages benefit from smaller models; heavy stages get the capacity they need.
  • Workflow-level KV cache management reduces time-to-first-token (TTFT) by preserving cache across stages that share context prefixes, avoiding redundant prefill computation.

The paper also demonstrates Orla running a full customer support workflow on a CPU-only machine using Ollama, showing the simulator and lightweight backend integration work without GPUs.

Practical Takeaways

  1. Stop gluing orchestration to serving: Orla's separation of request execution from workflow-level policy is the right abstraction. If your agent system has more than 2–3 stages, you're likely reinventing these mechanisms poorly in application code.
  1. KV cache reuse across stages is a big win: Agentic workflows have high prefix overlap between stages. Managing this at the workflow level rather than leaving it to per-request cache eviction can meaningfully reduce TTFT.
  1. Stage-level model selection is low-hanging fruit: Not every inference step needs a frontier model. Routing classification/routing stages to smaller models and reserving large models for reasoning-heavy stages cuts cost and latency simultaneously.
  1. Research testbed: Orla's parametric simulator lets you study scheduling and cache policies in controlled, reproducible settings — without GPU infrastructure. This is useful for systems researchers.
  1. Open source: The code is at github.com/dorcha-inc/orla. The library design is lightweight — it doesn't replace your serving stack, it sits above it.

Limitations

The evaluation is focused on two datasets and a single workflow (customer support). The paper doesn't yet provide numbers for multi-workload concurrent scenarios or head-to-head comparisons with hand-optimized serving pipelines at production scale. The memory manager's eviction policies are basic (FCFS-based cache retention) and could benefit from more sophisticated prediction of future cache utility. Dynamic routing with OneBitStageMapper is a starting point — richer routing policies that consider prompt characteristics, backend load, and cost would be natural extensions.

Bottom Line

Orla identifies a real gap: LLM serving engines optimize individual requests, but agentic workflows need cross-stage coordination. The stage mapper + orchestrator + memory manager decomposition is clean and composable. If you're building multi-agent systems that span multiple models and backends, this is worth watching — and worth trying if your orchestration logic is growing unwieldy.