Abstract
This paper introduces Relational Decomposition (RD), a novel framework that treats data mining as the "inverse" of database querying. By leveraging the declarative power of Answer Set Programming (ASP), the authors demonstrate how diverse tasks like tiling and matrix factorization can be solved using a single, flexible modeling approach rather than specialized, rigid algorithms.
Introduction
In traditional data mining, researchers often develop highly optimized, "hard-coded" algorithms for specific tasks—such as finding "tiles" (dense areas) in a boolean matrix or performing matrix factorization. While efficient, these algorithms are difficult to adapt. If a user wants to add a new constraint (e.g., "tiles can overlap by exactly two elements"), they often have to rewrite the entire algorithm from scratch.
The authors address this lack of flexibility by proposing a declarative modeling paradigm. They bridge the gap between Knowledge Representation (KR) and Data Mining by defining mining tasks as a form of "inverse querying": given the result of a query (the dataset), can we find the component relations that produced it?
The Relational Decomposition Framework
The core contribution is the formalization of Relational Decomposition (RD). In RD, you are given a relation $r$ and a conjunctive query template $q \leftarrow q_1 \wedge \dots \wedge q_n$. The goal is to find the contents (extensions) of the relations $q_i$ such that their join approximates $r$ ($r \approx q$).
This conceptual shift is powerful: if querying is $Relations \to Result$, then mining is $Result \to Relations$. Unlike standard Matrix Factorization, which is inherently numeric, Relational Decomposition naturally handles symbolic and categorical data, making it more suitable for traditional relational databases.
Implementation via Answer Set Programming
To solve RD problems, the authors use Answer Set Programming (ASP), specifically the clingo solver. Key aspects of their approach include:
- Model + Solver Paradigm: Instead of writing a "how-to" algorithm, the user writes a "what-is" logic program defining the constraints and the optimization goal (e.g., "maximize coverage").
- Constraint Flexibility: The model can be easily modified to handle overlapping tiles, boolean matrix factorization, or discriminative pattern mining by changing just a few lines of logic.
Evaluation and Results
The authors evaluated their ASP-based approach on several standard benchmarks from the UCI Machine Learning Repository (e.g., Congressional Voting Records, Mushroom, Chess).
Key findings include:
- Generalization: The authors successfully proved that Tiling, Boolean Matrix Factorization (BMF), and Discriminative Pattern Set Mining are all specific instances of the RD framework.
- Performance: For medium-sized datasets like Animals or Voting, the system found optimal tiles in seconds. However, for very large datasets like Chess, the general-purpose solver struggled, taking hours to compute a handful of tiles.
- Grounding vs. Solving: The ratio of solving time to grounding time can be as high as 161:1, confirming that search complexity is the primary hurdle.
Conclusion
While flexible, general-purpose ASP solvers cannot yet compete with the raw speed of specialized algorithms on massive datasets. Future work involves integrating local search heuristics directly into the ASP solver to combine the flexibility of logic with the speed of specialized solvers.
Summary updated