Introduction
Runtime Verification (RV) is a critical practice in software engineering and business process management, ensuring that executing systems adhere to formal specifications, such as "a user must log in before accessing sensitive data." Traditionally, these specifications are expressed in Linear Temporal Logic (LTL). However, traditional RV systems struggle with scalability when monitoring thousands of concurrent processes and suffer from brittleness, as static formal rules cannot easily adapt to changing environments.
RuleRunner is a novel framework designed to bridge the gap between formal logic and neural networks. By translating Finite Linear Temporal Logic (FLTL) into recurrent neural networks (RNNs), RuleRunner enables massive parallelization on GPUs and allows formal rules to be refined through standard machine learning techniques.
Methodology
Rule Generation and 3-Valued Logic
The first stage of the RuleRunner pipeline involves decomposing an FLTL formula into a set of "Evaluation" and "Reactivation" rules. A significant challenge in LTL monitoring is the "branching curse," where uncertain future states lead to an explosion of possible worlds. RuleRunner avoids this by employing a specialized 3-valued logic (True, False, Undecided) enhanced with qualifiers (e.g., $?_L, ?_R, ?_B$). These qualifiers track which part of a sub-formula is responsible for the "Undecided" status, allowing the system to maintain a single, deterministic state.
Neural-Symbolic Translation
Once the rules are defined, they are mapped onto an RNN architecture using the Connectionist Inductive Learning and Logic Programming (CILP) algorithm. In this translation:
- Neurons represent specific observations or logical sub-formulae.
- Weights encode the logical dependencies (conjunctions, disjunctions, etc.) between these elements.
- A dedicated $[UPDATE]$ neuron synchronizes the network, toggling it between evaluating the current state and preparing for the next time-step.
This mapping transforms the monitoring task into a series of matrix multiplications, which are highly optimized for GPU execution.
Evaluation
The authors evaluated RuleRunner using randomly generated FLTL formulae of varying complexity and large sets of synthetic traces. A key focus was the "GPU sweet spot": while simple rules may be faster on a CPU due to data transfer overhead, the GPU's performance remains relatively flat as formula complexity increases. For instance, increasing formula complexity from 2 to 32 leaves caused a 16x slowdown on a CPU-based implementation, whereas the GPU-accelerated version was only ~1.5x slower.
Furthermore, the framework's learning capability was demonstrated through a "consecutive logins" scenario. By applying supervised learning, the network was able to "relax" a security rule for a specific trusted context (e.g., a known safe network) to reduce false positives, while maintaining the original logic for all other contexts.
Conclusion and Future Work
RuleRunner demonstrates that neural network architectures can serve as mathematically sound engines for formal logic. This "white box" approach provides the performance of deep learning without sacrificing the interpretability of formal rules. Future work includes exploring deeper architectures for high-dimensional pattern recognition and integrating the framework with distributed computing models like MapReduce for planetary-scale process monitoring.
Summary updated