Learning Formal Specifications from Membership and Preference Queries

Ameesh Shah, Marcell Vazquez-Chanlatte, Sebastian Junges, Sanjit A. Seshia
Proceedings of the International Conference on Neuro-symbolic Systems, PMLR 288:365-383, 2025.

Abstract

Active learning is a well-studied approach to learning formal specifications, such as automata. In this work, we extend active specification learning by proposing a novel framework that strategically requests a combination of membership labels and pair-wise preferences, a popular alternative to membership labels. We formalize the notion of using preference queries in the context of specification learning by introducing Membership Respecting Preferences (MemRePs), a class of pair-wise preferences that can be used in conjunction with membership queries. The combination of pair-wise preferences and membership labels allows for a more flexible approach to active specification learning, often reducing the number of membership queries required to learn specifications. We instantiate our framework for two different classes of specifications, demonstrating the generality of our approach. Our results suggest that learning from both modalities allows us to robustly and conveniently identify specifications via membership and preferences.

Cite this Paper


BibTeX
@InProceedings{pmlr-v288-shah25a, title = {Learning Formal Specifications from Membership and Preference Queries}, author = {Shah, Ameesh and Vazquez-Chanlatte, Marcell and Junges, Sebastian and Seshia, Sanjit A.}, booktitle = {Proceedings of the International Conference on Neuro-symbolic Systems}, pages = {365--383}, year = {2025}, editor = {Pappas, George and Ravikumar, Pradeep and Seshia, Sanjit A.}, volume = {288}, series = {Proceedings of Machine Learning Research}, month = {28--30 May}, publisher = {PMLR}, pdf = {https://raw.githubusercontent.com/mlresearch/v288/main/assets/shah25a/shah25a.pdf}, url = {https://proceedings.mlr.press/v288/shah25a.html}, abstract = {Active learning is a well-studied approach to learning formal specifications, such as automata. In this work, we extend active specification learning by proposing a novel framework that strategically requests a combination of membership labels and pair-wise preferences, a popular alternative to membership labels. We formalize the notion of using preference queries in the context of specification learning by introducing Membership Respecting Preferences (MemRePs), a class of pair-wise preferences that can be used in conjunction with membership queries. The combination of pair-wise preferences and membership labels allows for a more flexible approach to active specification learning, often reducing the number of membership queries required to learn specifications. We instantiate our framework for two different classes of specifications, demonstrating the generality of our approach. Our results suggest that learning from both modalities allows us to robustly and conveniently identify specifications via membership and preferences.} }
Endnote
%0 Conference Paper %T Learning Formal Specifications from Membership and Preference Queries %A Ameesh Shah %A Marcell Vazquez-Chanlatte %A Sebastian Junges %A Sanjit A. Seshia %B Proceedings of the International Conference on Neuro-symbolic Systems %C Proceedings of Machine Learning Research %D 2025 %E George Pappas %E Pradeep Ravikumar %E Sanjit A. Seshia %F pmlr-v288-shah25a %I PMLR %P 365--383 %U https://proceedings.mlr.press/v288/shah25a.html %V 288 %X Active learning is a well-studied approach to learning formal specifications, such as automata. In this work, we extend active specification learning by proposing a novel framework that strategically requests a combination of membership labels and pair-wise preferences, a popular alternative to membership labels. We formalize the notion of using preference queries in the context of specification learning by introducing Membership Respecting Preferences (MemRePs), a class of pair-wise preferences that can be used in conjunction with membership queries. The combination of pair-wise preferences and membership labels allows for a more flexible approach to active specification learning, often reducing the number of membership queries required to learn specifications. We instantiate our framework for two different classes of specifications, demonstrating the generality of our approach. Our results suggest that learning from both modalities allows us to robustly and conveniently identify specifications via membership and preferences.
APA
Shah, A., Vazquez-Chanlatte, M., Junges, S. & Seshia, S.A.. (2025). Learning Formal Specifications from Membership and Preference Queries. Proceedings of the International Conference on Neuro-symbolic Systems, in Proceedings of Machine Learning Research 288:365-383 Available from https://proceedings.mlr.press/v288/shah25a.html.

Related Material