Skip to main content
QUICK REVIEW

[Paper Review] Comparison of SAT-based and ASP-based Algorithms for Inconsistency Measurement

Isabelle Kuhlmann, Anna Gessler|arXiv (Cornell University)|Apr 28, 2023
Logic, Reasoning, and KnowledgeComputer Science3 citations
TL;DR

This paper proposes and compares SAT-based and ASP-based algorithms for computing six propositional inconsistency measures on the first level of the polynomial hierarchy. Results show that ASP-based approaches consistently outperform SAT-based and naive baseline methods in runtime, with performance differences attributed to encoding size and search space complexity across measures and knowledge base characteristics.

ABSTRACT

We present algorithms based on satisfiability problem (SAT) solving, as well as answer set programming (ASP), for solving the problem of determining inconsistency degrees in propositional knowledge bases. We consider six different inconsistency measures whose respective decision problems lie on the first level of the polynomial hierarchy. Namely, these are the contension inconsistency measure, the forgetting-based inconsistency measure, the hitting set inconsistency measure, the max-distance inconsistency measure, the sum-distance inconsistency measure, and the hit-distance inconsistency measure. In an extensive experimental analysis, we compare the SAT-based and ASP-based approaches with each other, as well as with a set of naive baseline algorithms. Our results demonstrate that overall, both the SAT-based and the ASP-based approaches clearly outperform the naive baseline methods in terms of runtime. The results further show that the proposed ASP-based approaches perform superior to the SAT-based ones with regard to all six inconsistency measures considered in this work. Moreover, we conduct additional experiments to explain the aforementioned results in greater detail.

Motivation & Objective

  • To develop and evaluate SAT-based and ASP-based algorithms for computing inconsistency measures in propositional knowledge bases.
  • To compare the performance of SAT-based and ASP-based approaches against naive baseline implementations.
  • To analyze the impact of knowledge base size, structure, and measure-specific encoding complexity on runtime performance.
  • To identify factors influencing scalability and guide practical selection of inconsistency measures and solving paradigms.
  • To provide publicly available datasets and insights for future work on preprocessing, approximation, and alternative paradigms like MaxSAT or ILP.

Proposed method

  • Formalize six inconsistency measures—contension, forgetting-based, hitting set, max-distance, sum-distance, and hit-distance—within propositional logic, all with decision problems on the first level of the polynomial hierarchy.
  • Develop SAT-based encodings that reduce each inconsistency measure computation to a series of SAT solver calls, using iterative or bounded search strategies.
  • Design ASP-based encodings that represent the inconsistency computation as a logic program, leveraging answer set solvers to compute the desired measure values.
  • Implement both SAT and ASP approaches using standard tools (e.g., MiniSAT for SAT, clingo for ASP), ensuring consistency and correctness of encodings.
  • Conduct extensive experiments on five diverse datasets, including two from prior work and three newly introduced, to evaluate runtime and scalability.
  • Analyze runtime composition, focusing on solving time as the dominant factor, and correlate performance with knowledge base size, signature size, and formula complexity.
(a) Contension inconsistency measure ( $\mathcal{I}{{}_{\mathrm{c}}}$ )
(a) Contension inconsistency measure ( $\mathcal{I}{{}_{\mathrm{c}}}$ )

Experimental results

Research questions

  • RQ1How do SAT-based and ASP-based algorithms compare in terms of runtime for computing six different inconsistency measures on propositional knowledge bases?
  • RQ2To what extent do knowledge base characteristics—such as size, signature size, and formula complexity—affect the performance of SAT and ASP solvers?
  • RQ3Why do some inconsistency measures exhibit significantly different runtimes despite all being on the same complexity level (first level of the polynomial hierarchy)?
  • RQ4Can preprocessing strategies, such as initial satisfiability checks, improve performance, especially when inconsistency degrees are expected to be low?
  • RQ5What are the limitations of current SAT and ASP approaches, and which alternative paradigms (e.g., MaxSAT, ILP, QBF) show promise for future scalability?

Key findings

  • Both SAT-based and ASP-based approaches significantly outperform naive baseline implementations in terms of runtime across all six inconsistency measures.
  • ASP-based approaches consistently outperform SAT-based approaches, with only a few exceptions, across all datasets and measures, indicating superior efficiency in encoding and solving.
  • The solving phase accounts for the largest fraction of total runtime in both SAT and ASP methods, highlighting solver performance as the key bottleneck.
  • Larger knowledge bases with more formulas, larger signatures, and complex connectives lead to longer runtimes due to increased encoding size and search space.
  • Despite being on the same complexity level, the six inconsistency measures exhibit varying runtimes due to differences in encoding size and structural complexity of the underlying logic programs or CNFs.
  • The SC dataset from the SAT competition 2020 proved particularly challenging due to its large knowledge bases, demonstrating scalability limits of current approaches.
(b) Forgetting-based inconsistency measure ( $\mathcal{I}_{\mathrm{f}}$ )
(b) Forgetting-based inconsistency measure ( $\mathcal{I}_{\mathrm{f}}$ )

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.