arXiv:2610.22731cs.DCOct 2026

Manuscript Offprint

arXiv:2610.22731

Accelerated Dataflow: scaling inference in streaming data analytics with efficiency

RuiLong Jiang, Dustin Rhodes, Danny McCormick, Yuta Labur, Reza Rokni

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Streaming data analytics helps businesses identify opportunities and spot risks in a timely fashion. As large language model (LLM) usage grows, people are exploring incorporating agents or LLMs in streaming data pipelines to help find patterns in datasets without supervision or interpret natural languages for content moderation. However, most streaming systems are currently optimized for data movement and perform poorly on GPU intensive workloads such as performing inference with LLMs. We introduce a system on Google Cloud Dataflow designed to tackle hybrid streaming machine learning workloads with co-designed autoscaling on heterogeneous worker pools and prefix-aware batching. This increases throughput 1.5x to 2x for streaming pipelines using LLMs while maintaining similar latency with up to 75% peak resource savings and 84% lower peak tail latency compared with existing streaming data processing systems.

1 INTRODUCTION

As machine learning and large language models prevail, optimizations today focus on serving inference both on the worker level (Kwon et al., 2023; Sheng et al., 2023; Agrawal et al., 2024) and the system level (Crankshaw et al., 2017; Romero et al., 2021; Yu et al., 2022; Patel et al., 2024; Su et al., 2025), designed to push throughput and latency to the limit. But for streaming data analytics specifically, systems either lack the ability to adopt inference workloads natively or do not support exactly once streaming processing with the windowing semantics mandatory for common data analytics workloads (Carbone et al., 2015; Akidau et al., 2015; Moritz et al., 2018). Without an integrated solution, one has to deploy two systems separately in order to benefit from the innovations on LLMs, increasing setup complexity and cost. This also incurs the overhead and cost of materializing data to share it across the analytics system and the inference system. Calling external clusters is also subject to noisy neighbor issues where serving latency is heavily influenced by other usage of the same cluster, putting SLOs at risk.

A naively integrated solution using LLMs for inference in one of the current streaming systems (Carbone et al., 2015; Akidau et al., 2015) fails to achieve high throughput and resource utilization due to problems stemming from violating the assumptions made when such systems were designed. The problem can be split in the following categories:

• GPU resources: hardware utilization, especially GPU signals, can be deceiving and late to actuation (Recasens et al., 2025). This confuses existing autoscaling algorithms that were designed to be hands-free. The special need for VRAM on inference also presents a unique issue because the system has to balance CPU and RAM hungry stages with VRAM intensive stages. The existing rigid parallelism management in state-of-the-art streaming systems will often underutilize one or the other (Wu et al., 2022; Vasiliadis et al., 2022; Luan et al., 2025).

• Request locality: recent advancements in large language model inference include many caching strategies (Gim et al., 2024; Zheng et al., 2024) that benefit from routing similar requests to the same worker. These are crucial for scalability and performance (Srivatsa et al., 2025; Qin et al., 2025). The work dispatch techniques of streaming processing frameworks do not take these into account and can suffer on throughput even when the hardware utilization is the same.

• Long processing times: longer processing time compared to traditional messages and different resource consumption patterns break many traditional streaming optimizations. Long processing time causes task timeout and lease expiration (Gray & Cheriton, 1989; Akidau et al., 2013) and often forces the engine to restart its work. Collectively, this wastes valuable hardware accelerator cycles.

1^{1}Google, Sunnyvale, CA, USA. Correspondence to: RuiLong Jiang ruilongjiang@google.com.

We present system design improvements to address these challenges and to improve the performance of inference

Preprint.

workloads in hybrid with traditional CPU intensive transforms in Cloud Dataflow pipelines (Akidau et al., 2015). This allows the streaming data processing framework to integrate local inference while maintaining high throughput and utilization. The co-designed autoscaling allows the whole stack to work together with global context instead of local component optimizations which can work against each other blindly. Prefix-aware batching that leverages prior knowledge of the input traffic also allows large language model inference workloads to achieve higher cache hit rates, leading to higher throughput and lower latency.

References (27)