When Links Mislead: Label-Free Structural Polarity for Zero-Shot Classification of Web Pages

Hanshuai Cui, Zhiqing Tang, Zhi Yao, Weijia Jia, Jun LuoarXiv 2026

TL;DR

ZeroPolar is a novel zero-shot node classification framework that determines whether to trust or distrust graph links—a property called structural polarity—without requiring any ground-truth labels. By measuring the "excess agreement" of noisy LLM labels along edges, it successfully navigates both homophilous (similar nodes link) and heterophilous (different nodes link) graphs, outperforming state-of-the-art baselines by significant margins.

What Problem Does This Paper Address?

When launching new web platforms like digital libraries or online stores, we need to categorize pages (nodes) immediately, long before human labels are available. Large Language Models (LLMs) can provide initial "zero-shot" labels based on page text, but these labels are often noisy.

Standard graph-based methods like Graph Neural Networks (GNNs) or Label Propagation try to fix these errors by assuming homophily: the idea that linked pages likely belong to the same category. However, on the web, links often mislead. For example, on a university site, a professor’s home page might link to several course pages. A standard GNN would "pull" the professor's page toward the "course" category, leading to an error. This is heterophily, where links connect nodes of different classes.

Existing zero-shot methods either ignore links entirely, blindly trust them, or try to estimate homophily by asking LLMs directly—which is expensive and prone to model-specific biases. The challenge is: How can we decide whether to trust or distrust links on a new, unlabeled graph?

Figure 1: ZeroPolar measures links instead of trusting them. A professor’s page has four course in-links, so a step toward them gives course, while ZeroPolar finds that labels barely agree along the graph’s links and pushes away.

Methods

The authors introduce the concept of structural polarity—the sign ($\sigma \in \{+1, -1\}$) that determines if a node should move toward or away from its neighbors' predicted classes.

The Polarity Gate

The core innovation is a label-free "gate" that sets this sign. It calculates excess agreement ($s$): the difference between how often linked nodes share a label and how often they would share one by chance. ZeroPolar computes this for two signals:

  1. LLM Labels ($s_{LLM}$): Labels generated by an LLM for a subset of nodes.
  2. Text Prototypes ($s_{proto}$): Predictions based on the similarity of a node's text embedding to "class prototypes" (averaged embeddings of a few LLM-labeled examples).

If the maximum of these two statistics exceeds a threshold ($\delta = 0.25$), the graph is deemed homophilous ($\sigma = +1$); otherwise, it is heterophilous ($\sigma = -1$).

ZeroPolar & ZeroPolar-T

Depending on the labeling budget, the framework uses one of two implementations:

  • ZeroPolar (Training-free): For low budgets, it simply mixes prototype scores with available LLM labels and performs one signed propagation step.
  • ZeroPolar-T (Trained): When labels are available for at least half the nodes, it trains a lightweight MLP on the noisy LLM labels to denoise them against text features before applying the signed propagation step.
Overview of the ZeroPolar architecture, showing the polarity gate and the two implementation paths.

Datasets

The authors evaluated ZeroPolar on a diverse set of 16 text-attributed graphs:

  • LLM-BP Benchmark (11 graphs): Includes citation networks (Cora, Citeseer, Pubmed), product networks (History, Children, Sportsfit), and university hyperlink graphs (Cornell, Texas, Wisconsin, Washington). The latter are notoriously heterophilous.
  • Additional Graphs: Computer (Amazon) and a 30k-node subgraph of arXiv.
  • Social/Product Platforms: Instagram, Reddit, and Photo.

Key Insights and Ideas

  • Polarity is readable without ground truth: You don't need to know the "right" answers to see if a graph's structure is helpful or misleading. The statistical agreement of even noisy labels is a robust indicator of structural polarity.
  • LLMs are biased homophily estimators: Directly asking an LLM to estimate a graph's homophily leads to "drift"—different models give wildly different, often incorrect, answers. Measuring agreement is much more reliable.
  • One signed step is optimal: The authors found that a single propagation step with the correct sign provides the best balance. It allows the graph structure to inform the prediction without letting neighbor noise overwhelm the primary text features.
  • Denoising via Text-Alignment: ZeroPolar-T uses a simple MLP to learn how text maps to LLM labels. This effectively "smooths" the noisy LLM labels by forcing them to be consistent with similar text before the graph structure is even considered.

Key Results

  • Superior Accuracy: With one GPT-4o label per node, ZeroPolar-T reached a mean accuracy of 73.99% across 11 graphs, outperforming the strong LLM-BP baseline by 6.01 points.
  • Winning on Both Fronts: Unlike previous methods that excel at either homophilous or heterophilous graphs, ZeroPolar leads on both. It significantly improved performance on the heterophilous WebKB graphs where standard propagation fails.
  • Efficiency: ZeroPolar is extremely fast. On the largest graph tested (Sportsfit), it processed nodes in 0.10 seconds, compared to 12.91 seconds for a standard GraphSAGE model.
  • Low-Budget Champion: With labels on only 5% of nodes, ZeroPolar outperformed a GNN trained on the same labels by a massive 10.80 points.
Accuracy change from one propagation step. The better sign flips exactly where the label-free statistic $s$ crosses the threshold $\delta$, allowing the gate to pick the right direction for every graph.

Limitations and Future Work

While highly effective, the authors note a few areas for further exploration:

  • Fixed Hyperparameters: The current model uses a fixed threshold ($\delta$) and a single propagation step. Future iterations could explore adaptive thresholds or multi-step propagation.
  • Dependency on Initial Signals: The method still requires a baseline of text-based signals (LLM labels or prototypes) to function.
  • Broader Applications: The authors suggest that label-free polarity checks could benefit other tasks like link prediction and recommendation systems on new, unlabeled platforms.

Summary updated

Abstract

Web platforms such as digital libraries, online stores and university sites must classify new pages before anyone labels them. Large language models (LLMs) can label each page from its text, but these labels are noisy, and links could correct them only where linked pages share classes. Existing zero-shot methods ignore the links, or pull a page toward its neighbours as label propagation and graph neural networks (GNNs) do, which hurts where linked pages differ in class. Others weight propagation by an LLM-estimated homophily that costs extra calls and drifts across LLMs. We find that the sign with which links should enter a prediction, which we call structural polarity, is readable without true labels. It is the excess agreement of LLM labels and text-prototype predictions along links. We thus propose ZeroPolar, which gates one signed propagation step by this statistic. Training-free ZeroPolar mixes prototype scores with any number of LLM labels, and ZeroPolar-T denoises the labels with a text classifier once half of the pages carry one. With one GPT-4o label per page, ZeroPolar-T reaches the highest mean accuracy on eleven graphs (73.99%), 6.01 points above LLM-BP and significantly above all eighteen baselines we compare. With LLM labels on only 5% of the pages, training-free ZeroPolar leads a GNN trained on these labels by 10.80 points.
BibTeX
@misc{cui2026when,
  author = {Hanshuai Cui and Zhiqing Tang and Zhi Yao and Weijia Jia and Jun Luo},
  title = {{When Links Mislead: Label-Free Structural Polarity for Zero-Shot Classification of Web Pages}},
  year = {2026},
  eprint = {2610.41464},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.41464},
}
Figure