← Latest papers
💻 computer science

A New Syntax and Semantics for Probabilistic Trace Expressions

This paper proposes a refined syntax and semantics for Probabilistic Trace Expressions (PTEs) that associates probabilities with enabled event types rather than transitions, enabling principled belief-based monitoring under partial observability and subsuming classical models like Hidden Markov Models.

Original authors: Davide Ancona, Angelo Ferrando, Viviana Mascardi

Published 2026-08-19
📖 5 min read🧠 Deep dive

Original authors: Davide Ancona, Angelo Ferrando, Viviana Mascardi

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the world of software engineering, reliability is not just a luxury; it is a fundamental requirement. For decades, experts have defined a reliable system as one that is usable, correct, and trustworthy, delivering services exactly as promised. To ensure this, researchers developed a field called runtime verification, which acts like a continuous quality control check. Instead of waiting until a system fails, these techniques watch the system while it runs, comparing its actual behavior against a set of rules to catch deviations immediately. However, this method traditionally relies on a perfect assumption: that the monitor can see every single event the system produces. In the real world, this is rarely true. Signals get lost, sensors fail, and communication channels are imperfect. When a monitor misses an event, a gap appears in the record, leaving the system's true state uncertain. This creates a difficult puzzle: how can you verify a system's behavior when you cannot see the whole picture?

A team of researchers from Italy has proposed a new way to solve this puzzle by refining a tool called Trace Expressions. Originally developed to describe how systems should behave over time, these expressions act as a flexible blueprint for expected events. The researchers realized that the old way of adding probability to these blueprints was too rigid, often requiring the entire structure to be rewritten whenever uncertainty was introduced. They have now developed a new syntax and semantics for what they call Probabilistic Trace Expressions. This updated framework allows the system to handle missing information gracefully. Instead of treating a missing event as a failure of the monitor, the new method treats it as a gap that can be filled with a calculated guess based on what is known. It distinguishes between two ways of thinking about these gaps: one that simply tracks what was observed, and another that actively guesses what likely happened in the silence, using probability to weigh the most plausible explanations.

To understand why this matters, imagine a rover exploring the surface of Mars. In a typical mission, the rover operates autonomously but receives periodic instructions from Earth. Due to the vast distance, communication is slow and expensive, and messages can be lost in transit. If the rover expects a command every thirty minutes and none arrives, it faces a gap in its knowledge. It does not know if the command was a simple "keep going," a "stop" order, or a change in speed. In the past, the rover might have had to guess blindly or halt operations entirely. With the new framework, the rover can use a probabilistic model to reason about the missing message. It can calculate that a "keep going" command is statistically the most likely outcome, while still acknowledging that other possibilities exist. This allows the system to continue operating with a high degree of confidence, even when the data stream is incomplete.

The researchers demonstrated this approach by modeling a communication protocol between a ground control station and the rover. They showed that their new method could represent the same complex behaviors as older models but with a much simpler structure. Crucially, they proved that their system is mathematically equivalent to a well-known statistical tool called a Hidden Markov Model, which is widely used to predict sequences of events. This connection is significant because it means the new framework is not just a theoretical idea; it inherits the proven reliability of established statistical methods while offering much greater flexibility. Unlike older models that are limited to simple, finite states, this new approach can handle complex, infinite patterns of behavior, such as those found in nested data structures or recursive processes.

The paper also explores how this technology can be used in distributed systems, where multiple agents, like a fleet of rovers, work together. In a scenario where several rovers are communicating, a single central monitor might struggle to keep track of everything, especially if messages are lost. The researchers suggest that by splitting the monitoring task among several decentralized units, the system can become more robust. If one rover misses a message, it can ask its neighbors what they heard. By comparing their observations, the group can fill in the gaps with informed guesses, pruning away unlikely scenarios and converging on a shared understanding of what actually happened. This collaborative approach turns individual uncertainty into collective clarity.

Beyond the specific application to space exploration, the work addresses a broader challenge in software verification: how to deal with uncertainty without sacrificing precision. The researchers implemented their ideas in a programming language known for its logical reasoning capabilities, creating a prototype that can automatically generate monitors from the probabilistic blueprints. Their experiments showed that the system can handle the explosion of possibilities that arises when gaps occur, efficiently managing the different potential paths a system might take. While the current work focuses on the foundational theory and a proof-of-concept implementation, the authors see a clear path forward. They plan to test these methods in real-world settings and integrate them into broader monitoring languages, aiming to make software verification more resilient to the messy, imperfect reality of the digital world.

The core achievement of this research is a shift in perspective. Instead of viewing missing data as a fatal flaw in the verification process, the new framework treats it as a manageable variable. By separating the definition of the system's rules from the probabilities of its events, the researchers have created a tool that is both modular and powerful. It allows engineers to build systems that can reason about their own uncertainty, making informed decisions even when the full picture is not visible. As software systems become more distributed and operate in increasingly unpredictable environments, the ability to verify behavior under partial observability will become essential. This work provides a solid foundation for that future, offering a way to keep systems reliable even when the signals are faint or the path is obscured.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →