Abstract
Traditional constrained clustering is limited to simple "must-link" or "cannot-link" pairs. This paper introduces a framework that supports complex logical combinations, such as "if-then" or "either-or" statements, expressed in Conjunctive Normal Form (CNF). By reformulating the clustering objective as a Quadratic Programming (QP) problem, the authors demonstrate a method that is up to 1,000 times faster than existing constrained spectral techniques while providing more expressive user guidance.
Introduction
Clustering is a fundamental unsupervised learning task, yet real-world applications often benefit from "side information" to guide the process. Standard approaches rely on Must-Link (ML) and Cannot-Link (CL) constraints. However, human knowledge often involves conditional or hierarchical relationships that these simple pairs cannot capture. For example, a user might want to specify that if a document is classified as "Biology," it should not also be in a "Physics" cluster, or that a set of images should be partitioned based on a specific hierarchy of tags.
Furthermore, existing spectral clustering algorithms that attempt to incorporate constraints often face computational bottlenecks, particularly as the number of constraints scales. This paper addresses both the expressivity of constraints and the efficiency of the underlying optimization.
Methodology
The proposed approach bridges the gap between formal logic and numerical optimization through two key steps:
- Logic to Linear Inequalities: The authors prove that any logical statement in CNF can be mapped to a set of linear inequalities. For instance, a disjunction (OR) of literals is represented as a linear inequality where the sum of indicator variables exceeds a threshold.
- Quadratic Programming (QP) Formulation: Spectral clustering typically involves an eigenvalue problem with a non-linear hypersphere constraint. To accommodate linear inequalities efficiently, the authors replace the hypersphere constraint with a hyperplane constraint ($e_j^T v = 1$). This shift allows the use of standard QP solvers, such as the Projective Preconditioned Conjugate Gradient (PPCG) method.
By minimizing the graph "cut" objective under these linear logical constraints, the framework ensures that domain knowledge is strictly respected during the optimization process.
Experimental Evaluation
The framework was evaluated across three diverse datasets:
- Personal Information Management (PIM): 500 images with associated locations and tags, requiring complex relational clustering.
- 20 Newsgroups: A text dataset used to test the algorithm's ability to handle hierarchical constraints.
- Synthetic Data: Used for benchmarking computational scaling relative to the number of nodes and constraints.
Key Results
The QP formulation demonstrated significant performance gains over state-of-the-art Constrained Spectral Clustering (CSC).
Computational Efficiency
As shown in Figure 5, the QP approach is orders of magnitude faster than CSC. For standard conjunctions, the speedup reached 1,000x, and even with complex disjunctions, it remained approximately 10x faster. This efficiency stems from avoiding the full eigendecomposition required by traditional spectral methods.
Hierarchical Discovery and Accuracy
On the PIM dataset, the QP method improved the success rate to 0.7285 from a baseline of 0.5950. In the 20 Newsgroups experiments, the algorithm successfully identified the correct level of the category hierarchy as more constraints were added. Figure 6 illustrates how the frequency of correctly identified hierarchical levels shifts as the number of documents used to generate constraints increases.
Conclusion
This research provides a robust mathematical bridge between propositional logic and graph-based clustering. By leveraging QP solvers, the authors enable the use of complex, human-readable constraints without sacrificing computational performance. Future work will investigate the theoretical convergence properties of the hyperplane relaxation and explore the integration of probabilistic or "soft" logical constraints.
Summary updated