Boolean Product Graph Neural Networks

Ziyan Wang, Bin Liu, Xiang LingarXiv 2024 · DOI

Abstract

Graph Neural Networks (GNNs) have recently achieved significant success, with a key operation involving the aggregation of information from neighboring nodes. Substantial researchers have focused on defining neighbors for aggregation, predominantly based on observed adjacency matrices. However, in many scenarios, the explicitly given graphs contain noise, which can be amplified during the messages-passing process. Therefore, many researchers have turned their attention to latent graph inference, specifically learning a parametric graph. To mitigate fluctuations in latent graph structure learning, this paper proposes a novel Boolean product-based graph residual connection in GNNs to link the latent graph and the original graph. It computes the Boolean product between the latent graph and the original graph at each layer to correct the learning process. The Boolean product between two adjacency matrices is equivalent to triangle detection. Accordingly, the proposed Boolean product graph neural networks can be interpreted as discovering triangular cliques from the original and the latent graph. We validate the proposed method in benchmark datasets and demonstrate its ability to enhance the performance and robustness of GNNs.

Introduction

Graph Neural Networks (GNNs) rely heavily on the quality of the input graph. However, real-world graphs are often "noisy"—they might have missing edges or incorrect connections (e.g., social media links that don't reflect actual relevance). When GNNs aggregate information across these noisy edges, the errors are amplified through the layers.

While researchers have tried to solve this by "learning" a latent graph from the data (Latent Graph Inference), these learned structures can be unstable or drift too far from the ground truth. Traditional "residual connections" in deep learning usually involve simple addition, but adding two adjacency matrices together in a non-Euclidean space often creates invalid connections and lacks a clear physical interpretation. Boolean Product Graph Neural Networks (BPGNN) introduce a novel "topological residual connection" that uses Boolean matrix multiplication to fuse observed graphs with learned latent graphs.

Methodology

The authors propose the Boolean Product as a bridge between the original observed graph ($A$) and a learned latent graph ($P$).

The Boolean Product and Triangle Detection

In binary terms, a Boolean product creates an edge between node $i$ and node $j$ if they share a common neighbor $k$. The authors interpret this as triangle detection: if $i$ is connected to $k$ in the original graph and $k$ is connected to $j$ in the latent graph, a new "refined" edge is formed between $i$ and $j$.

Illustration of the Boolean product between an observed graph A and a hidden graph B, interpreted as triangle detection.

Unlike adding two graphs (which just piles more edges onto the problem), the Boolean product acts as a logical filter. It only validates a connection in the latent graph if it can be "anchored" by a neighbor in the original graph. This structure is a fundamental building block of stable real-world networks (homophily).

Architecture

The model follows a cyclic process within each layer to iteratively refine the graph structure:

  1. Feature Aggregation: Aggregate features using the current graph.
  2. Latent Inference: Infer a new probabilistic latent graph based on these features.
  3. Boolean Fusion: Apply the Boolean Product with the original graph to "correct" the latent graph.
  4. Sparsification: Sample the result into a sparse matrix (using the Gumbel-Top-k trick) for the next GNN layer.
The architecture of a BPGNN layer, showing the iterative refinement of the graph structure.

While dense matrix multiplication is $O(n^3)$, the authors show that by leveraging the sparsity of the original adjacency matrix, the complexity drops to $O(\alpha n^2)$, making it computationally feasible for larger graphs.

Experimental Results

The model was evaluated on four standard benchmarks for node classification: Citation Networks (Cora, CiteSeer, and PubMed) and the Amazon Photo co-purchase graph.

Performance and Robustness

BPGNN consistently outperformed classical GNNs (GCN, GAT) and advanced latent graph models (IDGL, dDGM). For example, on the Cora dataset, BPGNN achieved 87.10% accuracy compared to GCN's 78.74%.

The paper's strongest result is the model's robustness to noise. The authors manually corrupted graphs by adding or deleting up to 75% of edges. BPGNN maintained significantly higher accuracy than its competitors, proving that the Boolean Product effectively "filters" out the injected noise. Analysis showed that the connections formed by the Boolean product were much more likely to link nodes with the same label, reinforcing homophily.

Conclusion

BPGNN introduces an effective topological residual connection that rectifies observational errors through structural reinforcement. While the optimal depth of these residuals depends on the initial graph's complexity, the approach demonstrates state-of-the-art performance and significantly higher robustness. Future work remains in exploring alternative non-Euclidean residual connections and further optimizing computational scaling for extremely large-scale graphs.

Summary updated

BibTeX
@misc{wang2024boolean,
  author = {Ziyan Wang and Bin Liu and Xiang Ling},
  title = {{Boolean Product Graph Neural Networks}},
  year = {2024},
  eprint = {2409.14001},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.14001},
}
Figure