Break the Tie: Learning Cluster-Customized Category Relationships for Categorical Data Clustering

Mingjie Zhao, Zhanpei Huang, Yang Lu, Mengke Li, Yiqun Zhang, Weifeng Su, Yiu-ming Cheung · DOI

Introduction

Clustering numerical data is a well-understood task because values reside in a continuous space where Euclidean distance provides a natural measure of similarity. Categorical data, such as "occupation" or "color," lacks this inherent structure. Defining the mathematical distance between "lawyer" and "driver" is non-trivial and often context-dependent.

Traditional approaches rely on simple encodings like Hamming distance or learn a single, global distance metric for the entire dataset. However, these methods fail to capture subspace-specific relationships. For instance, the distance between "programmer" and "construction worker" might be negligible when clustering by health risks like contagious diseases, but significant when clustering by physical occupational hazards. This paper introduces DISC, a novel algorithm designed to learn cluster-customized category relationships dynamically.

The DISC Methodology

DISC (learning cluster-customized category relationships from cluster) addresses the limitations of rigid metrics by jointly optimizing cluster assignments and distance metrics. The algorithm follows a four-step process:

  1. Conditional Probability Distributions (CPDs): For each attribute within a specific cluster, DISC calculates the probability distribution of its values.
  2. Graph Construction: The algorithm models distances between categorical values as a fully connected graph. Edge weights are determined by the differences in their CPDs; values with similar distributions within a cluster are considered closer.
  3. Relation Trees: To resolve ambiguity from multiple paths, DISC extracts a Minimum Spanning Tree (MST) from the graph, termed a "relation tree." The shortest path on this tree defines the distance between categorical values for that specific cluster.
  4. Joint Optimization: The algorithm iteratively updates cluster assignments and re-infers cluster-specific relation trees until convergence, similar to the $k$-means paradigm.

A key theoretical contribution is the proof of Euclidean Compatibility. By reducing the relationship graph to an MST, the learned metric forms a 1D linear structure, making it strictly compatible with standard Euclidean distance. This allows DISC to seamlessly handle mixed-attribute datasets.

Experimental Evaluation

The authors evaluated DISC against 11 state-of-the-art baselines using 12 real-world benchmark datasets from the UCI Machine Learning Repository.

Performance comparison of DISC (Ours) against conventional and intermediate relationship modeling strategies across four datasets (CA, NU, AP, OB).

As shown in the figure above, the proposed cluster-customized approach consistently achieves higher clustering accuracy compared to uniform or globally weighted metrics. The "Insight Validation" baselines (Customized) demonstrate that while customization helps, the specific MST-based relation tree approach in DISC provides the most robust performance.

Comprehensive performance comparison of DISC against state-of-the-art categorical clustering algorithms. DISC achieves the best average rank across all metrics (ACC, ARI, CMP).

The quantitative results are definitive. Across the 12 benchmark datasets, DISC achieved an average rank of 1.25 for Accuracy (ACC), significantly outperforming the next best baseline (HARR), which had an average rank of 5.21. Similar dominance is observed in Adjusted Rand Index (ARI) and Compactness (CMP) metrics. Furthermore, DISC proved highly efficient, scaling linearly with the number of samples, attributes, and clusters ($O(nlk)$).

Conclusion

DISC represents a significant advancement in categorical data clustering by recognizing that category relationships are not static but context-dependent. By learning cluster-specific relation trees, the algorithm achieves state-of-the-art performance while maintaining compatibility with Euclidean distance for mixed-data applications. While the current implementation requires a predefined number of clusters ($k$), future work aims to automate cluster discovery and enhance robustness in high-dimensional, noisy environments.

Summary updated

BibTeX
@inproceedings{zhao2026break,
  author = {Mingjie Zhao and Zhanpei Huang and Yang Lu and Mengke Li and Yiqun Zhang and Weifeng Su and Yiu-ming Cheung},
  title = {{Break the Tie: Learning Cluster-Customized Category Relationships for Categorical Data Clustering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i34.40104},
}
Figure