← Latest papers
🤖 AI

Tensor Probabilistic Model Checking of Finite-Horizon Markov Chains (Extended Version)

This paper introduces Tessa, a novel approach that casts finite-horizon Markov chain model checking as dense tensor computations to leverage hardware accelerators and achieve massive speedups over existing methods, particularly in dense transition regimes.

Original authors: Jianlin Li, Nick Guo, Peter Ye, Yizhou Zhang

Published 2026-08-04
📖 7 min read🧠 Deep dive

Original authors: Jianlin Li, Nick Guo, Peter Ye, Yizhou Zhang

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

Imagine you are trying to predict the future of a chaotic system, like a massive game of "telephone" played by thousands of people, or a city where every traffic light changes based on the mood of the drivers. In the world of computer science, this is called probabilistic model checking. It's a way to mathematically prove how likely a system is to reach a specific goal (like "all professors finish their meeting") within a certain time, even when the system is full of randomness and chance. The problem is that as you add more people or parts to the system, the number of possible scenarios explodes. It's like trying to count every single grain of sand on a beach while the beach is also growing; the math gets so heavy that even the fastest supercomputers can get stuck, running out of memory or time before they can give you an answer.

For years, the best tools to solve this have been like trying to navigate a maze by looking at a detailed, hand-drawn map of every single dead end. These tools are great when the maze has lots of empty space (sparse dynamics), but they struggle when the maze is packed tight with paths (dense dynamics). They rely on old-school methods that don't play well with the super-fast, parallel processors found in modern graphics cards (GPUs), which are the engines behind today's video games and AI.

Enter a new approach called Tessa, developed by researchers at the University of Waterloo. Instead of trying to draw a map of every single possibility, Tessa decides to treat the entire system like a giant, multi-dimensional block of data, known in math as a tensor. Think of a tensor not as a boring spreadsheet, but as a hyper-cube of numbers that can be squished, stretched, and spun all at once. By translating the problem of "will the system reach the goal?" into a language that these modern graphics cards understand perfectly, Tessa can crunch the numbers for massive, complex systems in a fraction of the time it takes older tools.

The researchers didn't just guess this would work; they proved it mathematically to be sound and then built a tool to test it. When they ran Tessa against the current state-of-the-art tools on some tricky, crowded scenarios (like a model with 17 processors or 10 queues), Tessa was over 100 times faster. In one specific test involving a horizon of 500 steps, it was more than 300 times faster. The paper shows that by shifting how we represent the problem—from a sparse map to a dense, parallelizable block of data—we can unlock the ability to verify systems that were previously too big to check. It's not a magic wand that fixes everything (it works best on dense, crowded systems, not sparse ones), but it opens up a whole new playground for solving problems that were previously out of reach.

The Story of Tessa: Turning Chaos into a Dance

Let's dive deeper into how Tessa pulls off this magic trick. Imagine you are watching a group of N professors trying to finish a poll on their phones. Each professor is in one of three states: Away (ignoring the phone), Doodling (looking at the poll), or Done (finished). Every second, a professor might notice the email, get distracted, or finally hit submit. The catch? They can all get interrupted at any time.

To figure out the chance that everyone finishes within a certain time limit, traditional tools try to list every single combination of states. If you have 10 professors, that's 3103^{10} (59,049) combinations. If you have 20, that's over 3 billion. Traditional tools try to store these combinations in a giant, sparse list (like a dictionary with mostly blank pages). This works okay for small groups, but when the group gets big and the interactions get messy (dense), the list becomes too huge to fit in memory, and the computer chokes.

Tessa's Insight: The Hyper-Cube
Tessa looks at this problem differently. Instead of a list, it sees the professors' states as a dense tensor—a multi-dimensional grid. If you have 10 professors, Tessa doesn't make a list of 59,049 items; it creates a 10-dimensional cube where each side has 3 slots. It's like a Rubik's cube, but with 10 layers instead of 3.

Why is this cool? Because modern graphics cards (GPUs) are built to handle these cubes. They are designed to perform the same math operation on millions of numbers simultaneously. Tessa translates the rules of the professors (the "if-then" logic of the Markov chain) into a set of instructions for this cube. Instead of walking through the maze step-by-step, Tessa tells the GPU to "squish" the whole cube at once.

The "Compiler" Magic
The paper highlights that Tessa uses a tool called JAX and a compiler called XLA. Think of JAX as a translator that turns the professor's rules into a language the GPU speaks fluently. XLA is the conductor that tells the GPU how to play the music most efficiently. It fuses many small steps into one big, smooth motion, so the GPU doesn't waste time stopping and starting. This is why Tessa is so fast; it stops fighting the hardware and starts dancing with it.

The Results: Speeding Up Time
The researchers tested Tessa on three famous "hard" problems from the literature:

  1. Queues: Imagine 10 different lines of people waiting for service. Tessa was over 100 times faster than the next best tool.
  2. Weather Factories: A model where factories switch between working and striking based on the weather. Again, Tessa was over 100 times faster.
  3. Herman's Protocol: A classic problem about processors trying to agree on a leader. Here, Tessa was over 300 times faster than the competition when looking at 500 steps into the future.

The paper is very clear about the limits, too. Tessa isn't a silver bullet for every problem. If the system is very sparse (lots of empty space, few connections), the old tools might still be better because they use less memory. Tessa shines when the system is "dense"—when everything is connected to everything else, creating a massive web of possibilities.

Beyond Just Checking: Finding the Perfect Settings
There's one more cool thing Tessa can do. Because it turns the problem into a smooth, mathematical function (a tensor program), it can use gradient descent. This is the same math used to train AI to recognize cats or drive cars. It means Tessa can not only check if a system works, but it can also search for the perfect settings to make it work.

In the paper, they used this to solve a "Knuth-Yao die roller" problem. They wanted to find the perfect bias for two coins (values pp and qq) to make a computer roll a fair die. Tessa treated the coin biases as knobs it could turn. It calculated how changing the knobs affected the result, and then automatically adjusted them to minimize the error. It found the perfect values (p=0.5p=0.5 and q=0.5q=0.5) in just a few seconds, showing that Tessa can be used for optimization, not just verification.

The Bottom Line
The paper proves that by changing how we represent the problem—from a sparse list to a dense tensor—we can unlock the massive power of modern hardware. It's a shift from "counting every grain of sand" to "using a bulldozer to move the whole beach at once." While it doesn't solve the problem of state explosion (the number of states still grows exponentially), it pushes the boundary of what we can solve much further, making it possible to verify systems that were previously impossible to check. The authors are confident in their math (they proved it sound) and their results (they measured it on real benchmarks), offering a powerful new tool for the toolbox of computer scientists.

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 →