← Lab /Software

Differential privacy can be enforced in stream monitors with limited accuracy loss

The proposed method automatically enforces differential privacy in stream-based runtime monitoring while preserving output utility

Software arXiv 4 May 2026 Method Prototype evidence

Published as “Differentially Private Runtime Monitoring”

Why it matters

Enables deployment of runtime monitors in privacy-critical domains such as transportation, medical, or financial systems without manual privacy engineering.

Summary

The authors demonstrate that their automatically generated differentially private monitors achieve high accuracy, with variance significantly lower than baseline methods for larger windows, while incurring only modest runtime overhead (doubling but staying under a few seconds). They automatically analyze RTLola specifications to place noise injection points and use tree-based aggregation to improve utility. The approach is evaluated on synthetic public-transportation data, showing close agreement with true crowdedness during high-traffic periods.

What they found 3

  1. Tree-based aggregation yields significantly lower variance than sensitivity-based perturbation for larger windows

    “Figure 5 shows that for small windows, all three methods achieve similar utility. As the window size grows, the differences become more pronounced, with the tree-based approach yielding significantly lower variance than the sensitivity-based method.”

  2. During high-traffic periods the differentially private monitor closely matches true crowdedness; at night variance increases but estimates remain close

    “During high-traffic daytime hours, the differentially private estimates closely match the true crowdedness. At night, the smaller number of participants leads to a higher SD. But even during nighttime hours with fewer participants, the monitor output closely approximates the actual crowdedness.”

  3. Sliding-window aggregation amplifies sensitivity linearly; a single value contributes to three overlapping windows, giving sensitivity 45 for davg

    “The sliding window further amplifies this: A single value contributes to three overlapping windows, resulting in a sensitivity of 45 for davg.”

Caveats 3

  • We assume that the values at the individual input stream positions are independent, but this assumption does not hold in all applications.
  • We exclude cycles in the dependency graph from the privacy segment as they introduce unbounded sensitivity.
  • Our approach adopts an event-level adjacency notion; stronger privacy notions would require significantly more noise.

What’s new here 4

  • Automatic static analysis of temporal dependencies to compute sensitivities for stream-based monitors
  • Strategic placement of noise injection points (privacy barriers) to balance accuracy and privacy
  • Application of tree-based aggregation mechanisms to reduce variance for sliding-window and all-aggregations
  • Integration into the RTLola runtime monitoring framework with multiple heuristics for barrier selection