NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Oblivious Monitoring for Discrete-Time STL via Fully Homomorphic Encryption

Masaki Waga, Kotaro Matsuoka, Takashi Suwa, Naoki Matsumoto, Ryotaro Banno, Song Bian, Kohei Suenaga

Introduction

As Cyber-Physical Systems (CPS) become increasingly integrated into the cloud, the need for remote monitoring has grown. Whether tracking a patient’s blood glucose levels or managing the safety of autonomous vehicle fleets, centralized servers often process sensitive real-time data to ensure compliance with safety specifications. However, this architecture introduces a significant privacy dilemma: users must expose sensitive raw data to the server, while service providers must often reveal proprietary monitoring logic to the client. This paper presents a protocol for "oblivious" online monitoring that resolves this tension, allowing a server to evaluate complex Signal Temporal Logic (STL) rules without ever seeing the underlying data or exposing the specific parameters of the safety rules.

The Privacy Challenge in CPS Monitoring

Modern safety monitoring requires more than simple threshold checks. It involves evaluating real-valued signals against complex arithmetic and temporal constraints—for example, determining if an autonomous car is maintaining a safe following distance based on its current velocity and braking capacity.

Existing privacy-preserving solutions often rely on Boolean logic, which is insufficient for the arithmetic requirements of modern safety standards. To address this, the authors identify two primary privacy requirements:

  1. Data Privacy: The client’s sensor data (e.g., health metrics, GPS coordinates) must remain encrypted at all times.
  2. IP Privacy: The monitoring rules (the safety specifications) are often proprietary. The protocol must ensure the server can perform the check without sending the raw logic to the client's device.

A Hybrid FHE Framework

The core of the proposed solution is a hybrid approach utilizing Fully Homomorphic Encryption (FHE), a cryptographic technique that allows computation on encrypted data. Because no single FHE scheme is optimized for both arithmetic and logic, the authors combine two distinct schemes:

  • CKKS (Cheon-Kim-Kim-Song): Utilized for "number crunching." This scheme is highly efficient for polynomial arithmetic, such as the addition and multiplication required to evaluate mathematical predicates (e.g., calculating $x_{front} - x_{ego}$).
  • TFHE (Torus FHE): Utilized for Boolean logic. This scheme excels at evaluating "if-then" statements and state transitions within a Deterministic Finite Automaton (DFA) that represents the temporal logic of the safety rule.

The Workflow and Scheme Switching

The monitoring process follows a structured pipeline. First, the client encrypts sensor data using CKKS and transmits it to the server. The server then uses CKKS to evaluate the mathematical predicates of the safety rule.

The technical highlight of the paper is the Scheme Switching phase, where the server converts the CKKS result into a TFHE ciphertext. This transition is essential because while CKKS handles the math, TFHE is required to process the temporal logic that tracks safety over time. To optimize this computationally expensive step, the authors leverage "domain knowledge." By assuming the general range of the signals (e.g., knowing a vehicle's speed will not exceed a certain physical limit), they can ignore unnecessary bits during the conversion, resulting in a performance increase of approximately 30%.

Experimental Evaluation

The researchers evaluated the protocol using two distinct benchmarks representing different CPS domains:

  • BGLvl (Blood Glucose Level): A one-dimensional signal monitoring task for Type 1 diabetes management, checking health metrics against various safety thresholds.
  • RSS (Responsibility-Sensitive Safety): A high-dimensional (eight-dimensional) benchmark for autonomous vehicles. This involves complex polynomial inequalities regarding position, velocity, and acceleration for multiple vehicles.

Key Results

  • Real-Time Performance: For the complex RSS vehicle safety rules, the system achieved a mean runtime of less than 550 milliseconds per signal valuation. This latency is comparable to human reaction times, suggesting the protocol is viable for real-world driver-assist systems.
  • Scalability: The execution time scales linearly with the length of the data stream, ensuring that long-term continuous monitoring remains feasible.
  • Low Client Overhead: Testing on standard IoT hardware, including the Raspberry Pi 4 and NanoPi R6S, demonstrated that the encryption and decryption tasks are lightweight. Memory consumption remained under 400 MB, making it suitable for resource-constrained edge devices.

Conclusion and Future Work

This research demonstrates that oblivious monitoring of real-valued signals is not only theoretically possible but practically viable for modern CPS. By combining the arithmetic strengths of CKKS with the logical strengths of TFHE, the authors provide a framework that protects both user data and provider IP.

While the current protocol is limited to discrete-time signals and the "safety fragment" of STL (detecting when a safety violation occurs), it lays the groundwork for future expansions. Potential future directions include extending the logic to continuous-time signals and incorporating "Robust STL," which would provide a numerical measure of how close a system is to a safety violation rather than a simple binary result.

Summary updated

BibTeX
@inproceedings{waga2024oblivious,
  author = {Masaki Waga and Kotaro Matsuoka and Takashi Suwa and Naoki Matsumoto and Ryotaro Banno and Song Bian and Kohei Suenaga},
  title = {{Oblivious Monitoring for Discrete-Time STL via Fully Homomorphic Encryption}},
  booktitle = {RV},
  year = {2024},
  url = {https://openreview.net/forum?id=x9NQpbJm4o},
}
Figure