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.
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:
- Raw Node Features ($X$)
- Adjacency Lists: Directed ($A$), Transposed ($A^T$), and Undirected ($A^{und}$).
- Aggregated Features: Directed, Transposed, and Undirected.
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 likearxiv-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-patentsand +3.05% on the massivewikidataset. 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