arXiv:2608.26930cs.DBAug 2026

Manuscript Offprint

arXiv:2608.26930

Incremental Delta-Shapley: A Standalone Runtime for Predicate Attribution on Sliding Windows

Pouya Khani, Ira Assent

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

Abstract

Continuous aggregate queries over sliding windows are common in real-time analytics, but most systems report what an aggregate is doing without attributing which predicates account for the result. A companion paper [?][?] shows that exact predicate-level Shapley attribution for SUM, COUNT, AVG, and variance needs only three additive predicate summaries with closed-form coefficients. Those results settle the mathematics, not how a runtime maintains summaries across slides, exposes attribution, answers unregistered predicates, or amortizes repeated ad hoc ones.

We present IDS (Incremental Delta-Shapley), a standalone single-node runtime that turns those closed forms into a deployable explanation system. IDS consumes window-maintenance deltas, updates global, marginal, and atom summaries, and evaluates any closed form in constant time. Overlapping predicates use atomic refinement, and a restricted SQL-like API exposes attribution and its per-slide change as first-class operators. Unregistered predicates are answered by a retained-state scan, an inverted index, or an amortized sliding-window sample with concentration guarantees; frequent ones are promoted by rebuilding the refinement. On synthetic, adversarial, NEXMark-style, and NYC taxi workloads, attribution matches exhaustive Shapley enumeration to floating-point precision; incremental maintenance is flat in N and up to 4.3×105×4.3 \times 10^{5} \times faster than per-window scans of the same form; and adaptive promotion cuts ad hoc cost by up to 9.2×9.2 \times on Zipfian traces.

CCS Concepts

• Information systems → Data management systems.