Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

Learning to Classify Logical Formulas Based on Their Semantic Similarity

  • Conference paper
  • First Online:
PRIMA 2022: Principles and Practice of Multi-Agent Systems (PRIMA 2022)

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    Dagstuhl Seminar 22291, July 17–22, 2022.

  2. 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. 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. 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

  1. 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)

    Google Scholar 

  2. Anthony, M., Hammer, P.L.: A Boolean measure of similarity. Discrete Appl. Math. 154(16), 2242–2246 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  3. 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)

    Google Scholar 

  4. 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

  5. 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

    Chapter  Google Scholar 

  6. Bowles, G.: Propositional relevance. Informal Logic 2(12), 65–77 (1990)

    Google Scholar 

  7. Cheruvu, A., Radhakrishna, V.: A survey of similarity measures for time stamped temporal datasets. In: DATA, pp. 193–197. ACM (2021)

    Google Scholar 

  8. 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

    Article  Google Scholar 

  9. 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

    Chapter  Google Scholar 

  10. 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)

    Google Scholar 

  11. Hohenecker, P., Lukasiewicz, T.: Ontology reasoning with deep neural networks. J. Artif. Intell. Res. 68, 503–540 (2020)

    Article  MathSciNet  MATH  Google Scholar 

  12. Johnston, T., Scott, A.: Lipschitz bijections between boolean functions. Comb. Probab. Comput. 30, 513–525 (2021)

    Article  MathSciNet  Google Scholar 

  13. Makinson, D.: Propositional relevance through letter-sharing. J. Appl. Log. 7(4), 377–387 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  14. 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

  15. 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)

    Google Scholar 

  16. 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

    Chapter  Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Andrea G. B. Tettamanzi .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics