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

Linear Programming for Quantitative Behavioral Similarity

This direction is split into other directions: polynomial-time state distance computation. Its last version stays readable and citable here.

Version 1 of 112 papers24 conceptsfrozen 2026-10-04

In classical computer science, two systems are either equivalent or they are not. This binary view—known as bisimulation—works well for simple circuits, but it fails when applied to the messy, probabilistic world of modern software. If a malware variant changes a single line of code, or a reinforcement learning (RL) agent encounters a slightly different reward structure, a binary check declares them "different."

To solve this, researchers have developed quantitative behavioral metrics. Instead of a "yes/no" answer, these metrics provide a distance—a number between 0 and 1—representing how much two systems differ in their long-term behavior. The breakthrough across this field is the discovery that these complex, infinite-horizon distances can be computed efficiently by reducing them to Linear Programming (LP) and Optimal Transport.

From Binary Logic to Metric Spaces

The shift began by moving away from strict algebraic equality toward metric spaces. Oleg Sokolsky, Insup Lee, and their colleagues proposed that program similarity should be treated as a stochastic game. By framing similarity as a quantitative value, they could identify malware families that were structurally different but behaviorally nearly identical.

This idea was later formalized into a modular toolkit for complex systems. Giorgio Bacci, Radu Mardare, and Gordon D. Plotkin showed that when we combine different "quantitative effects" (like probability or non-determinism), the resulting distance between terms naturally aligns with behavioral measures. This suggested that the distance between two processes isn't just an arbitrary number; it is an intrinsic property of the system's logical structure.

The Optimal Transport Bridge

The most significant theoretical leap in this area is the realization that measuring behavioral distance is equivalent to solving an Optimal Transport problem.

Imagine two Markov chains as two different ways of distributing "probability mass" across a set of states. To find the distance between them, we ask: what is the minimum "work" required to move the mass from one distribution to match the other? Sergio Calo, Anders Jonsson, and their team proved that bisimulation metrics and optimal transport distances are mathematically identical.

This equivalence is powerful because it allows us to use the Kantorovich metric—a staple of probability theory—to compare stochastic models. Giorgio Bacci and Kim G. Larsen demonstrated that while exact real-time specification differences are NP-hard to compute, the Kantorovich-based over-approximation can be solved in polynomial time using the ellipsoid method.

Solving the Infinite with Occupancy Couplings

If a system runs forever, how do we compare its behavior without simulating an infinite number of steps? The solution lies in discounted occupancy couplings.

Instead of looking at every possible path, we look at the "expected discounted frequency" of visiting pairs of states. This concept, championed by Sergio Calo and Javier Segovia-Aguas, transforms an infinite-horizon problem into a finite-dimensional linear program. By focusing on how much time a system spends in specific states, we can compute distances directly from sample trajectories without even knowing the underlying transition probabilities.

This reduction to LP is what makes the theory practical. Rupak Majumdar and Luca de Alfaro showed that for turn-based games and MDPs, these one-step distance calculations reduce to quadratic-size linear programs. This allows standard optimization solvers to calculate behavioral bounds that previously required exponential time.

Practical Impact: Tracking and Safety

These mathematical abstractions have immediate consequences for real-world engineering, particularly in multi-object tracking (MOT).

When a vision system tracks multiple people, it can make "identity swaps" or miss detections. Traditional metrics were often heuristic and inconsistent. Jia-Jie Zhu and José Bento introduced a mathematically consistent metric for sets of trajectories by formulating the error as a linear program.

Building on this, Ángel F. García‐Fernández and Lennart Svensson developed the GOSPA quasi-metrics. By using linear programming relaxation, they made it possible to assign asymmetric costs to different types of errors—such as penalizing a missed pedestrian more heavily than a false alarm—while maintaining the computational efficiency needed for safety-critical applications like autonomous driving.

Papers in this version

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_linear_programming_for_quantitative_beha_74505a8f,
  title = {Linear Programming for Quantitative Behavioral Similarity},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/linear-programming-for-quantitative-behavioral-similarity/rdr_74505a8feae74eddb1d255915e300b20},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-30},
}

This exact version (version 1, frozen text):

@misc{lacuna_linear_programming_for_quantitative_beha_74505a8f_v1,
  title = {Linear Programming for Quantitative Behavioral Similarity},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/linear-programming-for-quantitative-behavioral-similarity/rdr_74505a8feae74eddb1d255915e300b20/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-30},
}