A Simple and Scalable Graph Neural Network for Large Directed Graphs

Seiji Maekawa, Yuya Sasaki, Makoto Onizuka · DOI

Abstract

Node classification is one of the hottest tasks in graph analysis. Though existing studies have explored various node representations in directed and undirected graphs, they have overlooked the distinctions of their capabilities to capture the information of graphs. To tackle the limitation, we investigate various combinations of node representations (aggregated features vs. adjacency lists) and edge direction awareness within an input graph (directed vs. undirected). We address the first empirical study to benchmark the performance of various GNNs that use either combination of node representations and edge direction awareness. Our experiments demonstrate that no single combination stably achieves state-of-the-art results across datasets, which indicates that we need to select appropriate combinations depending on the dataset characteristics. In response, we propose a simple yet holistic classification method A2DUG which leverages all combinations of node representations in directed and undirected graphs. We demonstrate that A2DUG stably performs well on various datasets and improves the accuracy up to 11.29 compared with the state-of-the-art methods. To spur the development of new methods, we publicly release our complete codebase under the MIT license.

Introduction

Graph Neural Networks (GNNs) typically require researchers to make two critical architectural choices: the type of node representation (aggregated features vs. raw adjacency lists) and the treatment of edge direction (directed vs. undirected). While directed graphs carry rich semantic information, many models simplify them into undirected graphs to increase information flow. Conversely, while aggregated features (averaging neighbor features) are standard, they can sometimes wash out structural signals present in raw adjacency lists.

Figure 6: Comparison of node representations. In some cases, aggregated features may appear similar while adjacency lists remain distinct, or vice versa, necessitating a multi-faceted approach.

Empirical evidence suggests that no single combination of these factors consistently outperforms others across different datasets. The optimal choice often depends on hidden dataset characteristics like homophily or the temporal nature of edges. To eliminate the need for manual trial and error, we introduce A2DUG (Aggregated features and Adjacency lists in Directed/Undirected Graphs), a model designed to adaptively leverage all these representations.

The A2DUG Framework

A2DUG operates on the principle of "comprehensive representation." Instead of selecting a single viewpoint, it computes six distinct structural representations for every node:

  1. Raw Node Features ($X$)
  2. Adjacency Lists: Directed ($A$), Transposed ($A^T$), and Undirected ($A^{und}$).
  3. Aggregated Features: Directed, Transposed, and Undirected.
Figure 1: The A2DUG architecture. It processes multiple graph representations through parallel MLP and GNN branches before concatenating them for a final classification.

To ensure scalability to massive networks, A2DUG utilizes a precomputation-based approach. Feature aggregations are calculated once as a preprocessing step. These precomputed matrices are then concatenated and passed through a standard Multi-Layer Perceptron (MLP). This decoupling of graph structure from learnable weights allows for efficient mini-batch training, making the model both fast and memory-efficient.

Experimental Evaluation

We benchmarked A2DUG against 13 directed graph datasets, ranging from small citation networks to massive web graphs, including citeseer, arxiv-year, and the massive wiki dataset (1.9M nodes, 303M edges).

Key Insights

  • Homophily vs. Direction: In homophilous graphs like citeseer, treating edges as undirected often improves generalization. However, in time-sensitive graphs like arxiv-year, edge direction is a vital signal for predicting publication dates.
  • The Power of Transposition: Incorporating transposed edges (who cites whom) provides significant performance gains, as incoming and outgoing edges often carry different semantic weights.
  • Stability and Performance: A2DUG achieved state-of-the-art (SOTA) results on nearly all datasets, with notable improvements of +11.29% on snap-patents and +3.05% on the massive wiki dataset. Unlike baseline methods, A2DUG never suffered catastrophic performance drops, maintaining a superior average rank of 2.46.

Conclusion and Future Work

A2DUG demonstrates that a simple, holistic approach to graph representation can outperform complex, specialized models. By combining aggregated features and adjacency lists across both directed and undirected views, it provides a robust and scalable solution for node classification. Future work will explore more sophisticated GNN backbones and automated architecture search to further refine representation selection.

Summary updated

BibTeX
@misc{maekawa2023simple,
  author = {Seiji Maekawa and Yuya Sasaki and Makoto Onizuka},
  title = {{A Simple and Scalable Graph Neural Network for Large Directed Graphs}},
  year = {2023},
  eprint = {2306.08274},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.08274},
}
Figure