← Lab /AI/ML

RL framework automatically discovers more and shorter Tamarin proofs

The authors assert their reinforcement learning approach finds more proofs and produces shorter proofs than Tamarin's standard search.

AI/ML arXiv 22 May 2026 Method Prototype evidence

Published as “Less Effort, Shorter Proofs: Reinforcement Learning for Security Protocol Analysis in Tamarin”

Why it matters

The method can dramatically cut the person-months of manual heuristic engineering needed to verify complex security protocols.

Summary

The RL-guided proof search solves many more lemmas than Tamarin's built-in heuristics, e.g., 73 of 85 WPA2 lemmas versus 43 for the baseline, and produces substantially shorter proofs. It works out of the box via a new stateless REST API and requires no human-engineered heuristics. Evidence comes from 16 case studies covering classical, complex, and protocols, though performance drops on existential lemmas and on the SPDM model.

What they found 2

  1. The RL system solves far more WPA2 lemmas than the baseline heuristics.

    “On the models, we continue to outperform the baseline significantly, solving 73 of 85 WPA2 lemmas (baseline: 43) and 9 of 20 5G Handover XN lemmas (baseline: 3).”

  2. Proofs found by the RL approach are considerably shorter than those from baseline heuristics.

    “Our approach finds significantly shorter proofs than the baseline heuristics and often shorter proofs than the original, human-engineered heuristics.”

Caveats 6

  • On the SPDM model the method solves only 37 of 49 lemmas, worse than the baseline's 43.
  • The approach underperforms on existential lemmas, which often require deeper search.
  • When conducting our experiments, we observed that our approach underperforms on existential lemmas.
  • Our models learn from completed (sub-)proofs. A subproof through finding a solved constraint system immediately finishes the proof on these lemmas, hence we cannot learn from this data within the same search.
  • A single node expansion can take up to 90 minutes, with an average of 30 minutes. This significantly limits the search space we can explore and thus the performance of our approach.
  • Thus, it is an open question whether transfer learning across protocols is effective.

What’s new here 4

  • Provides a reusable stateless REST API that lets external clients control Tamarin's proof search.
  • Combines Monte Carlo Tree Search with a transformer-based policy/value network trained from self-generated subproofs.
  • Learns entirely from scratch on each protocol without needing large pre-training corpora.
  • Achieves higher lemma-solving rates and shorter proofs than Tamarin's default and human-written heuristics on most evaluated protocols.