SAGE: A Dataflow-Native Framework for Modular, Controllable, and Transparent LLM-Augmented Reasoning

Jun Liu, Peilin Liu, Ruicheng Zhang, Zhang Senlei, Yanbo Chen, Ziao Wang, Jinyun Yang, mingqi wang, Shuhao Zhang, Xiaofei Liao, Hai JinICML 2026

Modern Large Language Model (LLM) applications—such as Retrieval-Augmented Generation (RAG) systems and autonomous agents—are rarely standalone models. They are complex pipelines that weave together vector retrieval, stateful memory, context refinement, and iterative tool use. Today, developers typically build these systems by stitching together disparate services via Remote Procedure Calls (RPC).

However, this RPC-based approach is fundamentally flawed for production inference. Because each stage operates as an opaque box, the system lacks visibility into cross-stage queueing and resource interference. This leads to inconsistent performance under strict Service-Level Objectives (SLOs), fragmented state management, and a "black box" debugging nightmare where pinpointing bottlenecks across network glue, retrievers, and generators becomes nearly impossible.

To address these systemic flaws, researchers introduce SAGE (Streaming-Augmented Generative Execution), a full-stack framework that treats entire LLM inference pipelines as first-class compilation targets rather than loosely connected services.

A Dataflow-Native Architecture

SAGE shifts the paradigm from service composition to pipeline compilation. By making the entire pipeline visible to the compiler, SAGE can co-optimize resource sharing between bandwidth-sensitive stages (like retrieval) and latency-sensitive stages (like generation). The architecture relies on four key pillars:

  • Declarative Dataflow Model: Users define pipelines as Directed Acyclic Graphs (DAGs). Every operator declares an Operator Contract that specifies its resource needs (CPU/GPU affinity), state semantics (stateless vs. stateful), and I/O behavior (batching vs. streaming).
  • ExecutionGraph Lowering & Backpressure: A compiler transforms the logical DAG into a physical execution plan. Crucially, it enforces bounded-queue backpressure, naturally throttling upstream producers if a downstream stage (like the LLM) bottlenecks. This prevents memory exhaustion and cascading failures.
  • Unified Control Plane: SAGE provides a single layer for scheduling, batching, and admission control across heterogeneous CPU and GPU resources.
  • What-If Analysis Engine: By making the execution plan explicit, SAGE can replay historical traces to predict how architectural or scheduling changes will impact performance before deployment, transforming performance tuning into an evidence-based science.

Benchmarks and Key Results

The authors evaluated SAGE using an open benchmark suite across synthetic compute, end-to-end RAG, and mixed workloads. The hardware setup featured a 16-node CPU cluster connected to a dedicated GPU server running vLLM (Qwen2.5-3B-Instruct).

The results demonstrate significant improvements in both scalability and reliability:

  • Scalability: SAGE demonstrated near-linear efficiency, achieving 11.4× throughput scaling on a 16-node cluster (sustaining 16 requests/s at >700 tokens/request).
  • Latency Reduction: Under heavy multi-pipeline contention, SAGE’s admission control policies reduced P99 tail latency by 57% compared to standard simultaneous admission.
  • Efficiency & Overhead: The system maintains a 98% load balance across heterogeneous workloads using a "LoadAware-Spread" policy, while keeping median scheduling overhead to just 1 ms.
  • Predictability & Debugging: The What-If analysis tool predicts throughput and P99 latency with less than 5% error, while the system's automated attribution pinpoints bottleneck operators (compute, I/O, or scheduling) with 87.5% precision.

Limitations and Future Directions

While highly effective for typical LLM pipelines, SAGE's distributed coordination overhead can bottleneck extremely fine-grained tasks (under 10ms); the authors recommend task granularities above 100ms to amortize these costs. Additionally, SAGE currently relies on manual operator contracts for resource hints. If a user provides inaccurate hints, scheduling may be suboptimal.

Future iterations aim to introduce online recompilation with runtime profiling to automate resource allocation. Furthermore, while SAGE optimizes the pipeline itself, overall performance can still be constrained by centralized shared services (like a single massive vector database) if they are not scaled horizontally alongside the framework.

Summary updated

BibTeX
@inproceedings{liu2026sage,
  author = {Jun Liu and Peilin Liu and Ruicheng Zhang and Zhang Senlei and Yanbo Chen and Ziao Wang and Jinyun Yang and mingqi wang and Shuhao Zhang and Xiaofei Liao and Hai Jin},
  title = {{SAGE: A Dataflow-Native Framework for Modular, Controllable, and Transparent LLM-Augmented Reasoning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=TXcFJdT7at},
}
Figure