TL;DR
Model-Based Diagnosis (MBD) often struggles in real-world applications like software debugging because it cannot efficiently handle multiple failing observations simultaneously. This paper introduces a novel approach using Implicit Hitting Set Dualization (IHSD) that diagnoses multiple failures concurrently while maintaining a single copy of the system model. This eliminates the formula size blowup plaguing existing methods, achieving massive speedups and superior scalability.
What Problem Does This Paper Address?
Standard Model-Based Diagnosis (MBD) aims to identify faulty components by finding a minimal set of components whose abnormal behavior explains the inconsistency between a system description and an observation. While highly effective for a single failing observation, real-world tasks—such as software fault localization and spreadsheet debugging—frequently present hundreds or thousands of failing test cases (multiple observations).
Existing methods to handle multiple observations fall into two problematic categories:
- Separate Analysis: Diagnosing each observation independently and combining the results later. This approach often generates an exponentially large number of irrelevant local diagnoses ("red herrings") that are eventually discarded, wasting massive computational effort.
- Aggregated Analysis: Creating a single monolithic formula that replicates the entire system description for every single observation. This causes a catastrophic blowup in formula size, making it completely unscalable for large systems or high numbers of test cases.
The authors tackle this dilemma by developing a method that considers all observations simultaneously without duplicating the underlying system model.
Methods
The authors propose an Iterative Hitting Set Dualization (IHSD) algorithm, implemented in a prototype tool called DEx (Diagnosis Extractor).
Instead of eagerly replicating the system description $r$ times for $r$ observations, the IHSD approach keeps just a single copy of the system description. The algorithm operates in a tight loop:
- Hitting Set Step: A hitting set solver computes a candidate minimal hitting set (a proposed diagnosis) based on a collection of currently known conflicts (explanations).
- Consistency Check Step: The algorithm checks this candidate diagnosis against each observation replica individually using a standard SAT solver.
- Lazy Conflict Extraction: If an observation is inconsistent with the candidate diagnosis, the algorithm extracts a new minimal explanation (a Minimal Unsatisfiable Subset, or MUS) from that specific observation and adds it to the conflict set. This immediately guides the hitting set solver to find a better candidate in the next iteration.
- Termination: If the candidate diagnosis satisfies all observations, it is confirmed as a valid global diagnosis.
This framework elegantly modernizes Raymond Reiter’s seminal 1987 MBD foundations by utilizing state-of-the-art MaxSAT solvers and minimal correction subset (MCS) enumerators (like the LBX algorithm) to compute hitting sets implicitly.
Datasets
The authors evaluated their approach using a family of 1,140 synthetic "buggy CNF encoder" benchmarks. These benchmarks were specifically designed to mimic complex debugging scenarios where separate analysis fails due to a combinatorial explosion of local diagnoses.
In these scenarios:
- The number of observations ($r$) varied from 10 to 300.
- The internal complexity parameter ($k$) varied from 2 to 300.
The classic ISCAS85 C17 circuit scenarios were also utilized to illustrate the core MBD formulations and observation mappings.
Key Insights and Ideas
- Global Cooperation Filters Noise: Multiple failing observations shouldn't be treated as isolated problems. Analyzing them together drastically constrains the search space, filtering out thousands of local diagnoses that look promising for one test case but fail globally.
- Lazy beats Eager Replication: Eagerly copying the entire system architecture for every test case breaks modern solvers due to memory constraints. Checking observations sequentially and lazily extracting conflicts keeps the problem representation compact and manageable.
- Duality is Key: The close relationship between minimal diagnoses (MCSes) and minimal explanations (MUSes) can be exploited dynamically. You don't need to know all conflicts upfront; you only need to discover the ones that invalidate your current best guess.
Key Results
The experimental results highlight a stark contrast in scalability between the proposed IHSD method and traditional approaches:
- 100% Success Rate: The proposed tool,
DEx, successfully solved all 1,140 benchmarks, taking a mere 0.1 seconds for the largest instance. - Failure of Separate Analysis: Traditional separate analysis (using state-of-the-art MCS enumerators LBX and RS) timed out or ran out of memory on over 80% of the instances, failing as soon as the complexity parameter $k$ exceeded 7.
- Formula Size Control: For aggregated analysis, the formula size exploded exponentially. For instance, an original formula with 100,000 clauses ballooned to 300 million clauses when aggregated across 300 observations. In contrast, the IHSD approach kept the formula size strictly bounded to the original system dimensions.
Limitations and Future Work
- Focus on Subset-Minimality: The primary focus of the experimental evaluation was on computing subset-minimal diagnoses. Although the algorithm natively supports cardinality-minimal diagnoses (by swapping in a cardinality-minimal hitting set solver), comprehensive performance validation for cardinality-minimality is left for future work.
- Real-World Deployment: The authors note that the next step is to apply this implicit hitting set framework directly to diverse, large-scale practical application domains, such as production-grade software fault localization and complex spreadsheet debugging tools.
Summary updated