Document Clustering Games in Static and Dynamic Scenarios

Rocco Tripodi, Marcello Pelillo

Abstract

In this work we propose a game theoretic model for document clustering. Each document to be clustered is represented as a player and each cluster as a strategy. The players receive a reward interacting with other players that they try to maximize choosing their best strategies. The geometry of the data is modeled with a weighted graph that encodes the pairwise similarity among documents, so that similar players are constrained to choose similar strategies, updating their strategy preferences at each iteration of the games. We used different approaches to find the prototypical elements of the clusters and with this information we divided the players into two disjoint sets, one collecting players with a definite strategy and the other one collecting players that try to learn from others the correct strategy to play. The latter set of players can be considered as new data points that have to be clustered according to previous information. This representation is useful in scenarios in which the data are streamed continuously. The evaluation of the system was conducted on 13 document datasets using different settings. It shows that the proposed method performs well compared to different document clustering algorithms.

Introduction

Traditional document clustering algorithms—such as Non-negative Matrix Factorization (NMF), generative topic models, or partitional graph models like CLUTO—often struggle with two significant real-world constraints. First, they typically require the number of clusters ($K$) to be predefined, which is often impractical. Second, they are primarily designed for static datasets, requiring full recomputation when new data arrives in a stream. This research introduces a novel game-theoretic approach to document clustering that addresses these limitations by treating documents as "players" and clusters as "strategies," enabling dynamic and globally consistent assignments.

Methodology

The proposed framework, Document Clustering Games (DCG), conceptualizes clustering as a non-cooperative game played on a network.

Data Preparation and Initial Clustering

Documents are first processed using tf-idf and Latent Semantic Analysis (LSA) to extract semantic features and reduce dimensionality. A similarity graph is then constructed using cosine distance, smoothed with a Gaussian kernel. To initialize the system, a graph-based algorithm called Dominant Sets identifies highly cohesive, prototypical elements to form "core" clusters. These core elements are treated as "labeled" players who are stubborn and maintain their assigned strategy throughout the game.

Clustering Games and Evolutionary Dynamics

The remaining unlabeled documents act as players in an "imitation game." These players interact with their neighbors in the similarity graph and iteratively update their strategy (cluster membership) to maximize their payoff, effectively learning from the choices of similar peers.

A payoff matrix illustrating the strategic interactions between players, where each entry represents the rewards for chosen strategy pairs.

The system employs replicator dynamics from evolutionary game theory to update player probabilities until the network reaches a Nash equilibrium—a state where no document can improve its clustering assignment by changing its strategy. This approach ensures global consistency, preventing arbitrary assignments for documents positioned at the boundaries of multiple clusters.

Experimental Evaluation

The DCG model was evaluated on 13 standard document datasets (e.g., NG17-19, classic, hitech, reviews) varying in size from 204 to 8,580 documents and containing 3 to 10 classes.

Key Results

  • Static Scenarios: DCG outperformed state-of-the-art generative models and graph partitioning algorithms on 10 out of 13 datasets in terms of Normalized Mutual Information (NMI), with improvements exceeding 5% in several cases. It also consistently outperformed NMF in accuracy.
  • Unknown Cluster Counts: Even when the target number of clusters was not provided, the system outperformed baseline algorithms on 8 out of 13 datasets by discovering natural "micro-clusters."
  • Streaming Scenarios: In simulated streaming environments, the game-theoretic model proved highly stable. Performance fluctuated by only ~2% as new data was added, whereas k-NN baselines were significantly more unstable and required much larger portions of the dataset to achieve comparable accuracy.

Conclusion

The Document Clustering Game provides a robust framework for both static and streaming data. While it faces some challenges with highly unbalanced datasets—where small clusters might be absorbed by larger ones due to graph sparsification—its ability to anchor the network with prototypical players makes it highly resistant to noise. Future work will focus on applying this framework to non-textual data and optimizing it for distributed big data environments.

Summary updated

Abstract

In this work we propose a game theoretic model for document clustering. Each document to be clustered is represented as a player and each cluster as a strategy. The players receive a reward interacting with other players that they try to maximize choosing their best strategies. The geometry of the data is modeled with a weighted graph that encodes the pairwise similarity among documents, so that similar players are constrained to choose similar strategies, updating their strategy preferences at each iteration of the games. We used different approaches to find the prototypical elements of the clusters and with this information we divided the players into two disjoint sets, one collecting players with a definite strategy and the other one collecting players that try to learn from others the correct strategy to play. The latter set of players can be considered as new data points that have to be clustered according to previous information. This representation is useful in scenarios in which the data are streamed continuously. The evaluation of the system was conducted on 13 document datasets using different settings. It shows that the proposed method performs well compared to different document clustering algorithms.
BibTeX
@inproceedings{tripodi2016document,
  author = {Rocco Tripodi and Marcello Pelillo},
  title = {{Document Clustering Games in Static and Dynamic Scenarios}},
  booktitle = {ICPRAM (Revised Selected Papers)},
  year = {2016},
  url = {https://openreview.net/forum?id=YZKO-jLZurB},
}
Figure