Discovering Dataset Nature through Algorithmic Clustering based on String Compression
Ana Granados, Kostadin Koroutchev, Francisco de Borja Rodríguez
TL;DR
This work tackles the problem of choosing a representation that preserves or discards text structure for clustering diverse text datasets. It employs Normalized Compression Distance (NCD) with three compressor types (LZMA, BZIP2, PPMD) and a distortion method that progressively removes frequent words while preserving structure to reveal dataset nature. The study shows that structural datasets benefit from structure-aware models (higher PPMD orders) whereas keyword-driven datasets benefit from structure-agnostic representations, and validates these findings with artificial grammar data and multidimensional projection comparisons. The approach provides a principled, compressor-based means to tailor text representations to dataset characteristics, with implications for more effective clustering and retrieval.
Abstract
Text datasets can be represented using models that do not preserve text structure, or using models that preserve text structure. Our hypothesis is that depending on the dataset nature, there can be advantages using a model that preserves text structure over one that does not, and viceversa. The key is to determine the best way of representing a particular dataset, based on the dataset itself. In this work, we propose to investigate this problem by combining text distortion and algorithmic clustering based on string compression. Specifically, a distortion technique previously developed by the authors is applied to destroy text structure progressively. Following this, a clustering algorithm based on string compression is used to analyze the effects of the distortion on the information contained in the texts. Several experiments are carried out on text datasets and artificially-generated datasets. The results show that in strongly structural datasets the clustering results worsen as text structure is progressively destroyed. Besides, they show that using a compressor which enables the choice of the size of the left-context symbols helps to determine the nature of the datasets. Finally, the results are contrasted with a method based on multidimensional projections and analogous conclusions are obtained.
