NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Resolution Parameters for Graph Clustering

Nate Veldt, David F. Gleich, Anthony Wirth

Introduction

Graph clustering is a fundamental task in data science, used to identify groups of well-connected nodes in networks ranging from social platforms to biological systems. However, the effectiveness of clustering algorithms often hinges on "resolution parameters" that dictate the size and density of the resulting communities. Setting these parameters incorrectly leads to either over-segmentation (fragmented groups) or under-segmentation (giant, indistinct clusters). This paper introduces a "single-shot" framework designed to automatically tune these parameters by leveraging a single example of a "good" cluster provided by the user.

The Resolution Challenge

Most popular clustering objectives, such as modularity, suffer from a well-documented "resolution limit." In large graphs, modularity often fails to detect small, distinct communities, merging them into larger structures instead. Traditionally, practitioners have addressed this by manually guessing parameters or employing computationally expensive cross-validation techniques.

The authors pose a central question: If a researcher can identify just one representative cluster within their data, can that example be used to mathematically derive the optimal parameters for the rest of the graph? By shifting the focus from manual tuning to learning from examples, the proposed framework aims to make graph clustering more accessible and accurate.

Methodology

The proposed framework supports both global partitioning (clustering the entire graph) and local community detection (finding a specific community around a seed node).

1. The Parameter Fitness Function

The core of the method is a fitness function, $P(\beta)$, which quantifies how well a target example cluster $C_x$ aligns with a specific resolution parameter $eta$. This function is calculated as the ratio between the objective score of the example cluster and a lower bound of the optimal score achievable at that parameter.

The authors demonstrate that for a broad class of clustering objectives—specifically those within the LambdaCC framework—the fitness function is mathematically well-behaved. This allows the optimal parameter to be found using a bisection-like search. Instead of an exhaustive search across the parameter space, the algorithm repeatedly halves the search area, achieving high precision in a minimal number of iterations.

3. Computational Considerations

To maintain efficiency, the framework utilizes Linear Programming (LP) relaxations to approximate the lower bounds of optimal scores. While solving these LPs can be intensive for massive global clustering tasks, it provides a robust mathematical foundation for the parameter selection process.

Experimental Results

The authors validated their framework using synthetic benchmarks and large-scale real-world datasets, including DBLP, Amazon, LiveJournal, and the Facebook 100 university networks.

Synthetic Performance

On LFR benchmark graphs, the learned parameters significantly outperformed standard modularity. As the "mixing parameter" (the amount of noise in the graph) increased, the framework maintained a high Adjusted Rand Index (ARI), successfully identifying community structures where off-the-shelf methods failed.

Real-World Accuracy

In local community detection tasks on SNAP datasets, the learned-parameter approach showed dramatic improvements in F1 scores. For instance, on the DBLP co-authorship network, the F1 score rose from a baseline of 0.01 (using minimum conductance) to 0.47. This suggests that the framework is highly effective at capturing the specific topological characteristics of real-world communities.

Metadata as a Diagnostic Tool

The framework also serves as a diagnostic tool for evaluating the relationship between network structure and metadata. In an analysis of the Caltech36 (Facebook) dataset, the authors used the "Graduation Year" attribute as an example cluster. The tool highlighted that the Class of 2009 formed significantly tighter clusters than other years. This was attributed to the fact that these students were freshmen at the time of data collection, leading to more insular social structures—a nuance that the framework was able to quantify through its fitness score.

Discussion and Future Work

The "single-shot" approach represents a significant step forward in making graph clustering more intuitive. By requiring only one label, it bypasses the need for the massive ground-truth datasets typically required by machine learning models.

However, limitations remain. The current theory is constrained to objectives that can be expressed as parametric linear programs. Future research directions include extending the framework to directed graphs and developing methods to learn parameters based on specific motifs, such as triangles or stars, which may define communities in specialized biological or financial networks.

Summary updated

BibTeX
@inproceedings{veldt2019learning,
  author = {Nate Veldt and David F. Gleich and Anthony Wirth},
  title = {{Learning Resolution Parameters for Graph Clustering}},
  booktitle = {The Web Conference},
  year = {2019},
  doi = {10.1145/3308558.3313471},
}
Figure