Theoretical Analyses of Hyperparameter Selection in Graph-Based Semi-Supervised Learning

Ally Yalei Du, Eric Huang, Dravyansh Sharma · Submission to ICLR 2025 · Rejected

TL;DR

While hyperparameter tuning is a cornerstone of graph-based semi-supervised learning, theoretical guarantees on how much data is needed to learn optimal algorithm hyperparameters have remained largely unexplored. This paper establishes tight $\Theta(\log n)$ pseudo-dimension bounds on the sample complexity of tuning classical label propagation algorithms on graphs of size $n$, and derives Rademacher complexity bounds for modern Graph Neural Networks (GNNs). Along the way, the authors introduce GCAN, a flexible architecture that smoothly interpolates between Graph Convolutional Networks (GCN) and Graph Attention Networks (GAT), provably and empirically matching or outperforming both.

What Problem Does This Paper Address?

Graph-based semi-supervised learning (SSL) uses a graph structure to propagate label information from a small labeled set of nodes to a large pool of unlabeled nodes. While practitioners have dozens of algorithms at their disposal—ranging from classical label propagation to deep GNNs—almost all depend heavily on algorithmic hyperparameters, such as self-loop edge weights or normalization parameters.

Usually, researchers tune these hyperparameters via heuristics like grid search or Bayesian optimization on a validation set. However, foundational learning-theoretic questions have remained unanswered:

  • How many graph instances drawn from a domain meta-distribution do we need to observe to guarantee that a chosen hyperparameter generalizes well to unseen graphs?
  • What is the intrinsic statistical complexity (pseudo-dimension or Rademacher complexity) of these hyperparameter search spaces?

Prior theoretical work focused either on tuning model weights or learning graph edge weights, leaving the statistical complexity of selecting algorithmic hyperparameters open.

Methods

The paper evaluates hyperparameter selection under a joint transductive/inductive setup: individual instances are transductive graphs of size $n$, but instances themselves are drawn i.i.d. from an underlying problem distribution.

  1. Classical Label Propagation Families:
  2. Local and Global Consistency ($\mathcal{F}_\alpha$): Tunes $\alpha \in (0, 1)$, balancing local smoothness against initial label fidelity.
  3. Smoothing-Based ($\mathcal{F}_\lambda$): Tunes $\lambda \in (0, \infty)$, balancing Laplacian smoothness with labeled node loss.
  4. Normalized Adjacency Family ($\mathcal{F}_\delta$): A proposed family tuning $\delta \in [0, 1]$ in $S = D^{-\delta} W D^{\delta-1}$, interpolating column-normalized ($\delta=0$), symmetrically normalized ($\delta=1/2$), and row-normalized ($\delta=1$) transitions.
  5. Theoretical Tool: Pseudo-dimension ($\text{PDIM}$) analysis. The authors formulate node-prediction flips as sign changes of rational polynomials or exponential sums, leveraging determinant properties and root-counting lemmas to bound decision-boundary shifts across hyperparameters.
  6. Graph Neural Network (GNN) Architectures:
  7. Simplified Graph Convolution (SGC): Analyzes the self-loop weight hyperparameter $\beta \in [0, 1]$.
  8. Graph Convolution Attention Network (GCAN): Introduces an architectural hyperparameter $\eta \in [0, 1]$ that directly interpolates GCN ($\eta = 0$) and GAT ($\eta = 1$) aggregation in every layer: $$h^\ell_i = \sigma\left( \sum_{j \in \mathcal{N}_i} \left( \eta \cdot e^\ell_{ij} + (1 - \eta) \cdot \frac{1}{\sqrt{d_i d_j}} \right) U^\ell h^\ell_j \right)$$
  9. Theoretical Tool: Rademacher complexity bounds derived by framing margin losses over $L$-hop computation trees, using covering number arguments across parameter balls.

Datasets

The theoretical bounds were evaluated empirically across nine benchmark datasets:

  • Graph benchmarks: Cora, Citeseer, PubMed, WikiCS, CoauthorCS, AmazonPhotos, Actor, Cornell, and Wisconsin.
  • Non-graph benchmark: CIFAR-10 (converted into graph instances by computing pairwise Euclidean distances between feature vectors and thresholding).

Key Insights and Ideas

  • Logarithmic Sample Complexity for Label Propagation: For all three label propagation families, the pseudo-dimension is exactly $\Theta(\log n)$. An algorithm needs only $m = O(\log n / \epsilon^2)$ graph instances to guarantee an $\epsilon$-generalization error on hyperparameter selection.
  • The Root-Counting Mechanism: Why $\log n$? Each entry in the matrix inverse $(I - \alpha S)^{-1}$ or $(S + \lambda I)^{-1}$ behaves as a degree-$n$ rational function or an $n$-term exponential sum. Because such functions can have at most $O(n)$ roots, the prediction on any single node changes sign at most $O(n c^2)$ times as the hyperparameter sweeps across its range. Shattering arguments over $m$ graphs then yield $2^m \le O(m n^2 c^2)$, enforcing $m = O(\log n)$.
  • Matching Lower Bounds via Bit-Oscillation Gadgets: The authors construct hard, 4-node disconnected component gadgets where node predictions switch precisely at prescribed hyperparameter thresholds. By mapping binary digits to these threshold crossings, they demonstrate that $\Omega(\log n)$ instances are strictly necessary.
  • Continuous Architectural Interpolation: Rather than treating architecture selection (GCN vs. GAT) as a discrete, binary decision, GCAN demonstrates that continuous interpolation ($\eta$) allows tuning via gradient descent or covering bounds, with Rademacher complexity scaling with feature dimension $d$ and tree depth $\sqrt{L}$.

Key Results

  • Label Propagation Generalization: For $\mathcal{F}_\delta$ with fixed $n = 30$ and target generalization gap $\epsilon = 0.01$, theory predicts $m \approx 300$ instances. Empirical evaluations across all 8 tested datasets yielded train-vs-test accuracy gaps consistently below $0.013$ (e.g., $0.0048$ on CIFAR-10, $0.0037$ on WikiCS, and $0.0083$ on Cora).
  • GCAN vs. Baselines: Across 9 benchmark datasets, optimal intermediate values of $\eta$ often outperformed pure GCN ($\eta=0$) and pure GAT ($\eta=1$):
  • On Cora, GCAN ($\eta = 0.6$) reached $90.11\%$ accuracy compared to $61.32\%$ for GCN (a $74.4\%$ relative error reduction) and $87.25\%$ for GAT (a $22.4\%$ relative error reduction).
  • On Wisconsin, GCAN ($\eta = 0.1$) achieved $89.22\%$ accuracy compared to $86.88\%$ for GCN and $87.19\%$ for GAT.
  • On AmazonPhotos, GCAN achieved $96.53\%$ ($\eta = 0.8$), outperforming both pure GCN ($96.05\%$) and GAT ($95.62\%$).

Limitations and Future Work

  • Rademacher Lower Bounds for GNNs: While the pseudo-dimension bounds for label propagation are asymptotically tight ($\Theta(\log n)$), the GNN Rademacher complexity analysis only establishes upper bounds; corresponding lower bounds remain open.
  • Single-Parameter Restriction: The theory exclusively addresses single real-valued scalar hyperparameters (e.g., $\alpha, \lambda, \delta, \beta, \eta$). Extending these statistical guarantees to multi-dimensional hyperparameter spaces (such as layer-wise or head-wise parameters) is left for future work.
  • Computational Efficiency: The theoretical bounds address sample complexity (how many instances are needed) rather than algorithmic search complexity (how to find the optimal hyperparameter in non-convex landscapes efficiently).

Summary updated

BibTeX
@inproceedings{du2025theoretical,
  author = {Ally Yalei Du and Eric Huang and Dravyansh Sharma},
  title = {{Theoretical Analyses of Hyperparameter Selection in Graph-Based Semi-Supervised Learning}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=gGKkIj1p7p},
}
Figure