Introduction
This paper introduces Relational Data Factorization (ReDF), a framework that generalizes matrix factorization to the domain of relational databases. By utilizing Answer Set Programming (ASP), the authors provide a declarative method to decompose a single large relation into smaller "factor" relations. When joined, these factors approximate the original data while satisfying specific user-defined constraints.
Problem Statement
In traditional machine learning, Matrix Factorization (MF) is a standard technique for discovering latent structures, such as those used in recommendation systems. However, MF is restricted to two-dimensional grids. Real-world data is rarely so simple; it typically resides in relational databases with complex schemas and multiple tables.
While database theory has long addressed "decomposition," it usually focuses on lossless normalization to remove redundancy. ReDF tackles a different challenge: approximate relational decomposition for data mining. The goal is to identify the best smaller relations that explain a larger one, even if the fit is not perfect. Prior to this work, there was no unified, high-level way to express tasks like tiling, Boolean matrix factorization, and discriminative pattern mining within a single relational framework.
Methodology
ReDF treats factorization as a form of inverse querying. The process involves three main components:
- The Shape: A "factorization shape" is defined using a conjunctive query (a set of natural joins) describing how factor relations combine to form the approximation.
- The Constraints: Users specify hard constraints, such as "no overlapping tiles" or "no overcoverage."
- The Objective: A scoring function is defined, typically to minimize error or maximize similarity.
The problem is mapped to Answer Set Programming (ASP), a declarative logic programming paradigm. This allows users to switch between different mining tasks—such as Boolean Matrix Factorization or Block-Diagonalization—by simply modifying a few lines of logic rather than writing a custom algorithm.
To handle the computational intensity of searching for these factors, the authors implemented a Greedy Execution Model to find the best patterns one at a time. Additionally, they introduced Column Sampling, a technique that samples subsets of attributes to accelerate searches on large datasets, providing significant performance gains with minimal loss in quality.
Evaluation and Key Results
The authors evaluated ReDF on standard benchmarks (UCI Machine Learning Repository) and real-world relational sets, including publication records from DBLP and Microsoft Academic Search.
- Equivalence to Specialized Tools: On tiling tasks, ReDF achieved the same coverage as LTM-k, a specialized tiling algorithm, proving that the declarative model maintains high quality.
- Relational Discovery: In co-author experiments, ReDF successfully clustered authors, universities, and venues into coherent research "topics" (e.g., identifying a specific "Data Mining" cluster) purely through factorization.
- Discriminative Power: The model successfully learned rules to distinguish between researchers based on publication metadata with high precision and recall by adjusting penalty parameters for misclassifications.
Conclusion
ReDF represents a significant step in bringing latent variable modeling to the relational world. While the generality of using a generic ASP solver like clingo introduces some efficiency trade-offs compared to specialized algorithms, techniques like column sampling help mitigate these issues. Future work will explore integrating alternative solvers like Integer Linear Programming (ILP) and developing advanced local search heuristics to further improve scalability.
Summary updated