An Efficient Framework for Constructing Generalized Locally-Induced Text Metrics

Saeed Amizadeh, Shuguang Wang, Milos HauskrechtIJCAI 2011

Abstract

In this paper, we propose a new framework for constructing text metrics which can be used to compare and support inferences among terms and sets of terms. Our metric is derived from data-driven kernels on graphs that let us capture global relations among terms and sets of terms, regardless of their complexity and size. To compute the metric efficiently for any two subsets of terms, we develop an approximation technique that relies on the precompiled term-term similarities. To scale-up the approach to problems with huge number of terms, we develop and experiment with a solution that subsamples the term space. We demonstrate the benefits of the whole framework on two text inference tasks: prediction of terms in the article from its abstract and query expansion in information retrieval.

Introduction

Traditional text analysis often relies on direct lexical overlap. If two documents do not share exact terms, simple algorithms may fail to identify their relationship. However, language is rich with indirect semantic associations. For instance, "designer" may co-occur with "software" and "cloth" in different contexts. While "software" and "cloth" might never appear together, they share a global relationship through the concept of human-designed artifacts.

Capturing these indirect relationships typically involves building massive graphs of word associations. This presents two primary challenges: comparing sets of words (e.g., a query vs. a document) rather than just individual terms, and managing the $O(n^3)$ computational complexity of spectral decomposition required for global metrics.

Methodology: Laplacian-based Graph Kernels

The proposed framework utilizes Laplacian-based graph kernels to capture global vocabulary structures. The process begins by constructing an association graph where nodes represent terms and edges represent co-occurrence frequencies.

To compare sets of terms, the authors employ an electrical network analogy. As illustrated in the figure below, a set of nodes $S$ can be treated as "short-circuited" into a single super-node (II). To avoid the prohibitive cost of recalculating the graph for every new set, the Nyström method is used to approximate the properties of auxiliary nodes representing these sets (III). This reduces online calculation complexity to $O(|S_1| + |S_2|)$.

Electrical analogy for set-based metrics and approximation

Experimental Evaluation

The framework was evaluated on two tasks:

  1. Term Prediction: Using a "Cancer Corpus" from PubMed (6,000 documents), the goal was to predict terms in a full article based on its abstract.
  2. Query Expansion: Benchmarked on four TREC datasets (Genomic and Ad Hoc tracks).

Results and Discussion

The Resistance Kernel emerged as the most effective metric, as it emphasizes stable, broad semantic relationships by focusing on lower-frequency graph components. The framework also proved robust to subsampling; using only 20% of terms resulted in a manageable 16% error in word ordering, facilitating scalability.

In the term prediction task, the Resistance Kernel significantly outperformed traditional baselines, achieving an AUC of 0.883 compared to 0.782 for TF-IDF and 0.781 for PHITS.

Performance comparison on term prediction task

In query expansion, the framework matched or exceeded the performance of state-of-the-art Pseudo-Relevance Feedback (PRF) methods while maintaining computational efficiency.

Conclusion

This framework provides a scalable, consistent distance measure for text chunks of any size. While it requires a high-quality initial co-occurrence graph and significant offline pre-computation, its online efficiency and superior performance make it a powerful tool for large-scale text inference. Future work may extend this approach to text clustering and cross-domain document mapping.

Summary updated

BibTeX
@inproceedings{amizadeh2011efficient,
  author = {Saeed Amizadeh and Shuguang Wang and Milos Hauskrecht},
  title = {{An Efficient Framework for Constructing Generalized Locally-Induced Text Metrics}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2011},
  url = {https://openreview.net/forum?id=SkbkYHMO-r},
}
Figure