Abstract
An important task in logic, given a formula and a knowledge base which represents what an agent knows of the current state of the world, is to be able to guess the truth value of the formula. Logic reasoners are designed to perform inferences, that is, to decide whether a formula is a logical consequence of the knowledge base, which is stronger than that and can be intractable in some cases. In addition, under the open-world assumption, it may turn out impossible to infer a formula or its negation. In many practical situations, however, when an agent has to make a decision, it is acceptable to resort to heuristic methods to determine the probable veracity or falsehood of a formula, even in the absence of a guarantee of correctness, to avoid blocking the decision-making process and move forward. This is why we propose a method to train a classification model based on available knowledge in order to be able of accurately guessing whether an arbitrary, unseen formula is true or false. Our method exploits a kernel representation of logical formulas based on a model-theoretic measure of semantic similarity. The results of experiments show that the proposed method is highly effective and accurate.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
Dagstuhl Seminar 22291, July 17–22, 2022.
- 2.
Two formulas may be said to be totally unrelated if knowing the truth value of one does not give any information about the truth value of the other.
- 3.
All the code and data used for the experiments described in this paper can be found in the following repository: https://github.com/ali-ballout/Learning-to-Classify-Logical-Formulas-based-on-their-Semantic-Similarity.
- 4.
The dataset for universe \(\varOmega _{12}\) has 272 false formulas and 227 true ones (1 missing because it was a duplicate), for universe \(\varOmega _{20}\) 278 false and 222 true, and for universe \(\varOmega _{30}\) 300 false and 200 true; of course, these figures vary (between training and test set) for every fold obtained from these datasets.
References
Amgoud, L., David, V.: Measuring similarity between logical arguments. In: Thielscher, M., Toni, F., Wolter, F. (eds.) Principles of Knowledge Representation and Reasoning: Proceedings of the Sixteenth International Conference, KR 2018, Tempe, Arizona, 30 October–2 November 2018, pp. 98–107. AAAI Press (2018)
Anthony, M., Hammer, P.L.: A Boolean measure of similarity. Discrete Appl. Math. 154(16), 2242–2246 (2006)
Antoniou, G., Ghose, A.: What is default reasoning good for? applications revisited. In: 32nd Annual Hawaii International Conference on System Sciences (HICSS-32), 5–8 January 1999, Maui, Hawaii, USA. IEEE Computer Society (1999)
Badreddine, S., d’Avila Garcez, A., Serafini, L., Spranger, M.: Logic tensor networks. Artif. Intell. 303, 103649 (2022). https://doi.org/10.1016/j.artint.2021.103649
Blee, J., Billington, D., Sattar, A.: Reasoning with levels of modalities in BDI logic. In: Ghose, A., Governatori, G., Sadananda, R. (eds.) PRIMA 2007. LNCS (LNAI), vol. 5044, pp. 410–415. Springer, Heidelberg (2009). https://doi.org/10.1007/978-3-642-01639-4_39
Bowles, G.: Propositional relevance. Informal Logic 2(12), 65–77 (1990)
Cheruvu, A., Radhakrishna, V.: A survey of similarity measures for time stamped temporal datasets. In: DATA, pp. 193–197. ACM (2021)
Chicco, D., Jurman, G.: The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genomics 21(1), 1–13 (2020). https://doi.org/10.1186/s12864-019-6413-7
Esteva, F., Godo, L., Rodriguez, R.O., Vetterlein, T.: On Ruspini’s models of similarity-based approximate reasoning. In: Lesot, M.-J., et al. (eds.) IPMU 2020. CCIS, vol. 1237, pp. 3–13. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-50146-4_1
Fišer, P., Kubalík, P., Kubátová, H.: Output grouping method based on a similarity of Boolean functions. In: Proceedings of 7th International Workshop on Boolean Problems (IWSBP), Freiberg (Germany), 21–22 September, pp. 107–113 (2006)
Hohenecker, P., Lukasiewicz, T.: Ontology reasoning with deep neural networks. J. Artif. Intell. Res. 68, 503–540 (2020)
Johnston, T., Scott, A.: Lipschitz bijections between boolean functions. Comb. Probab. Comput. 30, 513–525 (2021)
Makinson, D.: Propositional relevance through letter-sharing. J. Appl. Log. 7(4), 377–387 (2009)
Shi, S., Chen, H., Ma, W., Mao, J., Zhang, M., Zhang, Y.: Neural logic reasoning. In: d’Aquin, M., Dietze, S., Hauff, C., Curry, E., Cudré-Mauroux, P. (eds.) CIKM 2020: The 29th ACM International Conference on Information and Knowledge Management, Virtual Event, Ireland, 19–23, 2020 October, pp. 1365–1374. ACM (2020). https://doi.org/10.1145/3340531.3411949
Tran, T., Le, V., Le, H., Le, T.M.: From deep learning to deep reasoning. In: KDD 2021: Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, pp. 4076–4077 (2021)
Wendler, J., Bach, J.: Recognizing and predicting agent behavior with case based reasoning. In: Polani, D., Browning, B., Bonarini, A., Yoshida, K. (eds.) RoboCup 2003. LNCS (LNAI), vol. 3020, pp. 729–738. Springer, Heidelberg (2004). https://doi.org/10.1007/978-3-540-25940-4_72
Acknowledgments
This work has been partially supported by the French government, through the 3IA Côte d’Azur “Investments in the Future” project managed by the National Research Agency (ANR) with the reference number ANR-19-P3IA-0002, as well as through the ANR CROQUIS (Collecte, représentation, complétion, fusion et interrogation de données de réseaux d’eau urbains hétérogènes et incertaines) project, grant ANR-21-CE23-0004 of the French National Research Agency (ANR).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Ballout, A., da Costa Pereira, C., Tettamanzi, A.G.B. (2023). Learning to Classify Logical Formulas Based on Their Semantic Similarity. In: Aydoğan, R., Criado, N., Lang, J., Sanchez-Anguix, V., Serramia, M. (eds) PRIMA 2022: Principles and Practice of Multi-Agent Systems. PRIMA 2022. Lecture Notes in Computer Science(), vol 13753. Springer, Cham. https://doi.org/10.1007/978-3-031-21203-1_22
Download citation
DOI: https://doi.org/10.1007/978-3-031-21203-1_22
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-21202-4
Online ISBN: 978-3-031-21203-1
eBook Packages: Computer ScienceComputer Science (R0)