SAGE: A Dataflow-Native Framework for Modular, Controllable, and Transparent LLM-Augmented Reasoning
Abstract
Lay Summary
Modern applications built with large language models often do much more than call a single model. They may retrieve documents, maintain memory, refine context, invoke tools, and generate responses through several connected stages. When these stages are assembled as separate services, it becomes difficult to understand where delays come from, how resources are shared, and why the final system becomes slow or unstable. This paper presents SAGE, a system for building and running such multi-stage LLM applications as explicit dataflow pipelines. In SAGE, each stage is represented as an operator with declared resource needs, state behavior, and input-output behavior. This allows the system to compile the full pipeline into an execution plan, monitor individual stages, and make scheduling or admission-control decisions at the pipeline level rather than treating each service in isolation. The goal of SAGE is to make LLM applications more modular, controllable, and transparent. For developers and researchers, this can make it easier to diagnose bottlenecks, compare execution policies, and manage complex applications such as retrieval-augmented generation systems. The paper evaluates SAGE on multi-stage workloads and shows that pipeline-level control can improve throughput and tail latency under resource contention.