Masked Graph Convolutional Network

Liang Yang, Fan Wu, Yingkui Wang, Junhua Gu, Yuanfang Guo

Abstract

Graph Convolutional Networks (GCNs) typically rely on the assumption that connected nodes share similar attributes, leading to a "smooth everything" approach during feature aggregation. However, this often results in over-smoothing and the propagation of irrelevant noise, as neighbors rarely share all characteristics. This paper introduces the Masked Graph Convolutional Network (Masked GCN), which employs a per-node, per-feature masking mechanism to selectively propagate only relevant attributes. By learning to filter information at the feature level, Masked GCN achieves superior performance on both transductive and inductive node classification benchmarks, including Cora, CiteSeer, and the Protein-Protein Interaction (PPI) dataset.

Introduction

The standard intuition behind graph-based learning is straightforward: connected nodes tend to be similar. In traditional label propagation, this works effectively—if a neighbor is a "Computer Science" paper, the target node likely is as well. However, when moving from labels to high-dimensional raw attributes in Graph Convolutional Networks (GCNs), this assumption often fails.

Standard GNNs operate by aggregating features from a node's neighborhood, which is mathematically a smoothing operation. The problem is that not all features should be smoothed. For instance, in a social network, a mentor and a student might share professional interests (attributes that should be propagated) but differ significantly in age or income. Propagating these dissimilar attributes creates noise and leads to a loss of distinctiveness between nodes—a phenomenon known as over-smoothing.

Masked Graph Convolutional Networks

To address the limitations of uniform smoothing, the authors propose a learned masking mechanism that selectively decides which attributes are worth sharing between specific nodes. The core innovation is a diagonal mask matrix $M^{(j)}$ for each node $j$. Instead of propagating the full attribute vector $h_j$, the network propagates $M^{(j)}h_j$.

Visualizing the difference between standard GCNN propagation and the selective masking approach of Masked GCN.

The mask for a specific attribute $t$ at node $j$ is calculated based on local consistency: $$m_t^{(j)} = \exp\left(-\frac{1}{d_j} \sum_{p \in \mathcal{N}(j)} \frac{(h_{pt} - h_{jt})^2}{\sigma_t^2}\right)$$

Key aspects of this approach include:

  • Local Consistency: The mask value depends on how similar an attribute is to its neighbors. If an attribute varies wildly in the local neighborhood, the mask shrinks, preventing that feature from polluting the neighborhood.
  • Global Importance: The parameter $\sigma_t$ is learnable and global, allowing the model to learn which features are generally useful for the classification task across the entire graph.
  • Joint Training: The masks, edge weights (similar to Graph Attention Networks), and classification weights are all trained together via standard backpropagation.

Experimental Evaluation

The model was evaluated on several standard benchmarks for node classification, covering both transductive and inductive learning scenarios. Transductive tasks included citation networks (Cora, CiteSeer, PubMed) and a large knowledge graph (NELL). Inductive learning was tested on the PPI (Protein-Protein Interaction) dataset, requiring generalization to entirely unseen graphs.

Key Results

Masked GCN consistently outperformed established baselines across all datasets. In transductive tasks, it surpassed both standard GCN and Graph Attention Networks (GAT). For example, on the Cora dataset, Masked GCN achieved 84.4% accuracy, compared to GAT's 83.0% and GCN's 81.5%.

Performance comparison of Masked GCN against various baselines on transductive datasets.

The gains were even more pronounced in inductive settings. On the PPI dataset, Masked GCN reached an F1 score of 0.952, significantly outperforming the inductive GCN baseline (0.500) and GAT (0.934). Despite the added complexity of learning masks, the computational overhead remains manageable, with running times roughly 1.24x that of GAT on average.

Discussion and Conclusion

The success of Masked GCN highlights that selective smoothing is essential for effective attribute propagation. While Graph Attention Networks (GAT) learn which nodes to attend to, Masked GCN essentially learns which features to attend to on a per-node basis. A case study on the PubMed dataset confirmed this semantic filtering: common, non-descriptive words were automatically masked out, while specific medical terms (like "kinase") maintained high propagation rates.

Future work may involve extending this masking logic to heterogeneous networks, where different types of relationships might require distinct masking strategies, and further optimizing the parameter count to prevent potential overfitting on very small datasets.

Summary updated

BibTeX
@inproceedings{yang2019masked,
  author = {Liang Yang and Fan Wu and Yingkui Wang and Junhua Gu and Yuanfang Guo},
  title = {{Masked Graph Convolutional Network}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/565},
}
Figure