A Phrase-Based Method for Hierarchical Clustering of Web Snippets

Zhao Li, Xindong WuAAAI 2010

Introduction

Traditional search engine results are typically presented as a ranked list, which can be cumbersome for users seeking specific information. Clustering these results into a hierarchical structure offers a more navigable interface. However, standard hierarchical clustering algorithms often struggle with web snippets—the short titles and abstracts seen in search results—due to poor label generation and the difficulty of defining the optimal number of clusters ($k$). Conventional methods rely on single-word frequencies, often resulting in unintuitive or missing cluster labels that fail to provide meaningful context to the user.

The PHAC Approach

This paper introduces Phrase-based Hierarchical Agglomerative Clustering (PHAC), a method designed to treat phrases as the primary units of the hierarchy rather than individual words. By clustering salient phrases first and then assigning documents to those clusters, the system generates more human-readable labels and improves overall clustering accuracy.

The PHAC process follows five key steps:

  1. Phrase Extraction: Utilizing a suffix tree data structure to identify frequent $n$-grams (sequences of 2 to 5 words).
  2. Document Indexing: Building an index that maps these phrases to the specific snippets containing them.
  3. Phrase Proximity Calculation: Determining the similarity between phrases based on document overlap using a Vector Space Model with $tf-idf$ weighting.
  4. Hierarchical Merging: Iteratively merging phrase clusters. The label for any new cluster is the phrase that appears in the highest number of documents within that group.
  5. Snippet Assignment: Assigning documents to the resulting hierarchy using a $k$-nearest neighbor ($k=5$) approach for snippets that contain phrases belonging to multiple clusters.

Experimental Setup

The researchers evaluated PHAC using five hierarchically organized datasets from the Open Document Project (DMOZ): Topology, Geometry, Number Theory, Meat, and Knowledge. These datasets provide a "ground truth" hierarchy, allowing for a direct comparison between PHAC and the standard Hierarchical Agglomerative Clustering (HAC) baseline.

Results and Discussion

The performance of PHAC was benchmarked against the HAC baseline using two primary metrics: F-measure (a balance of precision and recall) and Entropy (a measure of cluster homogeneity).

Figure 1: F-measure comparison between PHAC and HAC across five datasets. Higher scores indicate better accuracy.

As illustrated in Figure 1, PHAC consistently achieves a higher F-measure than the baseline HAC across all tested domains. This indicates that phrase-based clustering more accurately reconstructs the underlying topical hierarchy of the web snippets compared to word-based models.

Figure 2: Entropy comparison between PHAC and HAC. Lower scores indicate higher cluster purity.

Furthermore, Figure 2 demonstrates that PHAC results in significantly lower entropy scores. This suggests that the clusters produced by PHAC are more homogeneous, containing documents that are more closely related to one another. Beyond these quantitative improvements, PHAC ensures that every level of the tree is identified by a distinct, salient phrase, addressing the "no description" problem common in traditional hierarchical methods.

Conclusion and Future Work

PHAC demonstrates that phrases are superior to single words for clustering short text snippets, providing both better accuracy and more intuitive navigation. While effective on datasets up to 831 documents, future research should address the computational scalability of suffix tree construction for real-time search applications and explore the sensitivity of the algorithm to parameters like $n$-gram length and $k$-nearest neighbor values.

Summary updated

BibTeX
@inproceedings{li2010phrase,
  author = {Zhao Li and Xindong Wu},
  title = {{A Phrase-Based Method for Hierarchical Clustering of Web Snippets}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2010},
  doi = {10.1609/aaai.v24i1.7773},
}
Figure