Conference item icon

Conference item

Specification-guided synthesis of deadlock-free communication protocol refinements with large language models

Abstract:
Ensuring behavioural correctness in communication protocols is a central challenge in distributed software systems, as subtle inconsistencies can lead to deadlocks. In such settings, protocol refinement – the safe substitution of a protocol that preserves correctness and compatibility with other components – is essential. Large language models (LLMs) have demonstrated strong capabilities in code generation and program synthesis, yet lack mechanisms to reliably produce outputs with correct behaviour. Formal specification approaches, such as multiparty session types (MPST), offer rigorous guarantees, including deadlock freedom, but provide limited support for automatically constructing protocol refinements. In this paper, we present Syntropy, a framework for synthesising protocol refinements guided by MPST specifications and LLMs. It incorporates refinement constraints directly into the generation process, ensuring the generated variants satisfy these guarantees. Our comprehensive evaluation indicates that Syntropy achieves 95.6%– 99.5% validity while maintaining high syntactic correctness, and produces diverse, non-trivial refinements across multiple LLMs.
Publication status:
Accepted
Peer review status:
Peer reviewed

Actions

Access Document

Files:

Authors

More by this author
Institution:
University of Oxford
Division:
MPLS
Department:
Computer Science
Role:
Author
More by this author
Institution:
University of Oxford
Division:
MPLS
Department:
Computer Science
Role:
Author
More by this author
Institution:
University of Oxford
Division:
MPLS
Department:
Computer Science
Role:
Author


More from this funder
Funder identifier:
https://ror.org/001aqnf71
Grant:
10066667
More from this funder
Funder identifier:
https://ror.org/0439y7842
Grant:
EP/N028201/1 - 72043/2
EP/X015955/1 - 316931
EP/T006544/2
EP/T014709/2
EP/N027833/2
RE21850
309899


Publisher:
IEEE
Acceptance date:
2026-07-28
Event title:
41st IEEE/ACM International Conference on Automated Software Engineering (ASE 2026)
Event location:
Munich, Germany
Event website:
https://conf.researchr.org/home/ase-2026
Event start date:
2026-10-12
Event end date:
2026-10-16


Language:
English
Keywords:
Pubs id:
2450286
Local pid:
pubs:2450286
Deposit date:
2026-08-13
ARK identifier:

Terms of use


Views and Downloads






If you are the owner of this record, you can report an update to it here: Report update to this record

TO TOP