Can Large Language Models Reason about Event-Time Stream-Processing Semantics?
Abstract
Streaming systems increasingly hand work to large language models (LLMs): writing pipelines, triaging alerts, reading logs. All of it assumes the model knows how event-time stream processing behaves, and we test that assumption directly. StreamReason-Bench asks a model to stand in for an event-time stream processor. Given a windowed query and a stream of out-of-order events, it reports which windows fire, with their aggregates, and which events are dropped as late. The answer key comes from a small reference implementation of Dataflow-model semantics, so we can grade exactly, and with a partial-credit row-F1, without running an engine. On 600 generated items covering tumbling, hopping, session, and processing-time windows, the models do poorly on event time. When told to answer directly, no model that actually follows the instruction clears 34% exact match; chain-of-thought (CoT) roughly doubles that for several of them (GPT-4o goes from 0.34 to 0.48), and only one frontier model that reasons by default comes near solving the set (0.85). A processing-time control, with no watermarks and nothing late, is almost solved by every capable model. The gap points to event-time and late-data handling, not windowing or arithmetic, as the hard part. Sorting errors by window type tells the same story: late-data mistakes dominate the event-time windows and vanish on the control, while session windows mostly fail on where the session boundaries fall.
Create a lesson
Metadata
- Categories
- cs.DB, cs.AI
Related papers
Language-Native Materials Processing Design by Lightly Structured Text Database and Reasoning Large Language Model
Shared title terminologycs.DBYuze Liu, Zhaoyuan Zhang, Xiangsheng Zeng et al.
CADENZA: Compiling Natural-Language Intent into Task-Specific Operator DAGs for Semantic Query Processing
Shared title terminologycs.DBJaehyun Ha, Yongjoo Park, Wook-Shin Han
Shoonya: Zero-Socket In-Process Small Language Models for Graph Databases with Schema-Epoch KV Caching, Live Catalog Logit Masking, and Verifier-Advantage Distillation
Shared title terminologycs.DBMadhulatha Mandarapu, Sandeep Kunkunuru
FlinkEval: A Synthetic Corpus for Evaluating Natural Language Interfaces to Streaming SQL
Shared title terminologycs.DBAlfio Massimiliano Gliozzo, Nandana Mihindukulasooriya, Gaetano Rossiello et al.
Streaming Model Cascades for Semantic SQL
Shared title terminologycs.DBPaweł Liskowski, Kyle Schmaus
From Textual Columns to Query Plans: A Unified Relational-Semantic Execution Framework for Hybrid Query Processing
Shared title terminologycs.DBNima Shahbazi, Seiji Maekawa, Nikita Bhutani et al.