[Paper Review] DES: a Challenge Problem for Nonmonotonic Reasoning Systems
This paper proposes DES as a benchmark for nonmonotonic reasoning systems by encoding the Data Encryption Standard as normal logic programs under stable model semantics. The direct and optimized encodings enable efficient key search via the Smodels system, demonstrating competitive performance against state-of-the-art SAT solvers, especially on optimized encodings, highlighting the viability of stable model semantics for industrial-strength reasoning problems.
The US Data Encryption Standard, DES for short, is put forward as an interesting benchmark problem for nonmonotonic reasoning systems because (i) it provides a set of test cases of industrial relevance which shares features of randomly generated problems and real-world problems, (ii) the representation of DES using normal logic programs with the stable model semantics is simple and easy to understand, and (iii) this subclass of logic programs can be seen as an interesting special case for many other formalizations of nonmonotonic reasoning. In this paper we present two encodings of DES as logic programs: a direct one out of the standard specifications and an optimized one extending the work of Massacci and Marraro. The computational properties of the encodings are studied by using them for DES key search with the Smodels system as the implementation of the stable model semantics. Results indicate that the encodings and Smodels are quite competitive: they outperform state-of-the-art SAT-checkers working with an optimized encoding of DES into SAT and are comparable with a SAT-checker that is customized and tuned for the optimized SAT encoding.
Motivation & Objective
- To establish DES as a practical, industrially relevant benchmark for nonmonotonic reasoning systems.
- To develop and compare two logic program encodings of DES—direct and optimized—using stable model semantics.
- To evaluate the computational efficiency of the Smodels system on DES key search tasks.
- To compare the performance of logic programming-based reasoning with state-of-the-art SAT solvers on DES encodings.
- To assess the feasibility and competitiveness of stable model semantics for complex, real-world problems like cryptographic analysis.
Proposed method
- Encoding DES using normal logic programs with default negation (not) to represent boolean functions under stable model semantics.
- Creating a direct encoding based on standard DES specifications for clarity and simplicity.
- Developing an optimized encoding by extending Massacci and Marraro’s SAT-encoding techniques for logic programs.
- Using the Smodels system to compute stable models, enabling DES key search through model-finding.
- Applying search heuristics and pruning techniques inherent in Smodels to improve performance on the encodings.
- Mapping the stable model finding problem to a satisfiability problem for comparative analysis with SAT solvers.
Experimental results
Research questions
- RQ1Can DES serve as a scalable, industrially relevant benchmark for nonmonotonic reasoning systems?
- RQ2How do logic program encodings of DES compare in efficiency to optimized SAT encodings for key search?
- RQ3What is the performance of stable model semantics via Smodels on DES key search across different rounds and blocks?
- RQ4Why does the optimized logic programming encoding outperform the direct encoding in propagation and search efficiency?
- RQ5To what extent can stable model semantics compete with highly tuned SAT solvers on real-world cryptographic problems?
Key findings
- The direct encoding of DES into logic programs with stable model semantics is simple, compact, and easier to understand than equivalent CNF encodings for SAT solvers.
- The optimized logic programming encoding significantly improves propagation efficiency compared to the direct encoding, especially for multi-round DES.
- Smodels outperforms general-purpose SAT solvers on the DES encoding, demonstrating the competitiveness of stable model semantics for industrial problems.
- For three-round DES with two blocks, Smodels with the optimized encoding required 8,900 branches and 6,400 seconds, while rel_sat required 141,291 branches and 920 seconds, showing Smodels is less efficient on this specific instance but still competitive overall.
- The performance of Smodels is stable across most instances, except for a three-orders-of-magnitude variation in runtime and search space for three rounds and two blocks, indicating sensitivity to problem structure.
- The results suggest that stable model semantics, particularly with compact logic program encodings, is a viable and efficient paradigm for real-world nonmonotonic reasoning tasks like cryptographic analysis.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.