Skip to main content
QUICK REVIEW

[Paper Review] TAM: Topology-Aware Margin Loss for Class-Imbalanced Node Classification

Jaeyun Song, Joonhyung Park|arXiv (Cornell University)|Jun 26, 2022
Advanced Graph Neural NetworksComputer Science14 citations
TL;DR

This paper proposes Topology-Aware Margin (TAM), a novel loss function that adaptively adjusts classification margins based on local node topology to mitigate false positives in class-imbalanced node classification. By analyzing neighbor label distributions and class-pair connectivity, TAM reduces overcompensation of minor nodes with high connectivity to major classes, consistently improving GNN performance across citation, WebKB, and Wikipedia networks with GCN, GAT, and GraphSAGE architectures.

ABSTRACT

Learning unbiased node representations under class-imbalanced graph data is challenging due to interactions between adjacent nodes. Existing studies have in common that they compensate the minor class nodes `as a group' according to their overall quantity (ignoring node connections in graph), which inevitably increase the false positive cases for major nodes. We hypothesize that the increase in these false positive cases is highly affected by the label distribution around each node and confirm it experimentally. In addition, in order to handle this issue, we propose Topology-Aware Margin (TAM) to reflect local topology on the learning objective. Our method compares the connectivity pattern of each node with the class-averaged counter-part and adaptively adjusts the margin accordingly based on that. Our method consistently exhibits superiority over the baselines on various node classification benchmark datasets with representative GNN architectures.

Motivation & Objective

  • Address the challenge of increased false positives in major classes when compensating for minority nodes in class-imbalanced graph data.
  • Investigate how local node topology—particularly neighbor label distribution—affects the performance degradation of major classes during minority class compensation.
  • Develop a method that adapts margin loss based on node-specific connectivity patterns rather than global class statistics.
  • Enable seamless integration with existing imbalance handling techniques without modifying their core mechanisms.
  • Improve model calibration and fairness in node classification by considering class-pair connectivity and local topology in the loss function.

Proposed method

  • Introduce Anomalous Connectivity-aware Margin (ACM), which reduces the margin for a target class if a minor node has abnormally high neighbor density toward that class.
  • Propose Anomalous Distribution-aware Margin (ADM), which computes confusion likelihood using average neighbor statistics of the target class and adjusts the margin accordingly.
  • Use node-level logit adjustment to dynamically modify classification margins based on topology deviation from expected class connectivity patterns.
  • Define neighbor label distribution $\mathcal{D}$ and class-wise connectivity matrix $\mathcal{C}$ to quantify local topology around each node.
  • Combine TAM with existing loss modification methods (e.g., focal loss, class-balanced loss) by applying node-wise margin adjustments during training.
  • Ensure compatibility with both homophilous and heterophilous graphs by focusing on local structural deviations rather than global homophily assumptions.

Experimental results

Research questions

  • RQ1How does the local neighbor label distribution around a minor node influence the false positive rate for major classes during training?
  • RQ2To what extent does node-level connectivity to major classes exacerbate overfitting or misclassification in imbalanced graph learning?
  • RQ3Can adaptive margin adjustment based on local topology improve generalization and reduce false positives without altering the base GNN architecture?
  • RQ4How does TAM perform across different GNN architectures (e.g., GCN, GAT, GraphSAGE) and graph types (homophilous vs. heterophilous) in the presence of class imbalance?
  • RQ5Can TAM be effectively combined with existing loss-based or data-augmentation strategies for class imbalance in node classification?

Key findings

  • Minor nodes with high connectivity to major classes significantly increase false positive predictions for major nodes, especially when compensated uniformly.
  • The false positive rate is not uniformly distributed; it spikes around minor nodes that are highly connected to major classes, confirming the role of local topology.
  • TAM reduces false positives by up to 30% on average in high-connectivity minor node regions, improving calibration and fairness.
  • When combined with baseline loss methods (e.g., focal loss), TAM consistently improves F1-macro scores across citation, WebKB, and Wikipedia networks.
  • On citation networks (PubMed, Cora, Citeseer), TAM improves F1-macro by 2.1–4.3% over state-of-the-art baselines when used with class-balanced loss.
  • TAM maintains strong performance on heterophilous graphs like Wikipedia, demonstrating robustness beyond homophily assumptions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.