TL;DR
Recurrent Attention Walk (RAW) is a reinforcement learning-based approach to node classification that replaces exhaustive neighborhood aggregation with a "smart walk." By training an agent to selectively visit only the most relevant neighbors, RAW avoids the noise and memory bottlenecks of traditional Graph Convolutional Networks (GCNs) while excelling in both transductive and inductive settings.
What Problem Does This Paper Address?
Most modern graph neural networks (GNNs), like GCNs or Graph Attention Networks (GATs), rely on neighborhood aggregation. To classify a node, they pull in data from all its immediate neighbors, and then neighbors-of-neighbors, and so on. This "all-in" approach has two major flaws:
- The Noise Problem: As you expand the search radius, the number of neighbors grows exponentially. Many of these nodes are irrelevant or "noisy," which can actually degrade classification accuracy.
- The Memory Wall: Storing and processing these massive, expanding neighborhoods is incredibly memory-intensive, often leading to "Out of Memory" (OOM) errors on large graphs with dense feature vectors.
Furthermore, many existing methods are transductive, meaning they struggle to classify new nodes added to the graph after training. The authors sought a method that is selective, memory-efficient, and natively inductive.
Methods
The authors propose RAW, which treats node classification as a sequential decision-making process. Instead of looking at everyone at once, an RL agent starts at a target node and "walks" across the graph.
The process is modeled as a Partially Observable Markov Decision Process (POMDP). Because the agent only sees its immediate neighbors at any given step, it uses a Recurrent Neural Network (GRU) to maintain a "history" of where it has been, effectively building a global understanding from local observations.
The architecture consists of three sub-networks:
- Score Network: Uses an attention mechanism to assign relevance scores to neighbors based on node attributes and edge content (e.g., the text context of a citation).
- Core Network: A GRU that updates the agent’s internal state (walk history) based on the current node and the aggregated features of relevant neighbors.
- Classification Network: At the end of a fixed number of steps ($T$), this network uses the final walk history to predict the starting node's label.
The model is trained using the REINFORCE algorithm. The agent receives a simple reward: +1 for a correct classification at the end of the walk, and -1 for an incorrect one.
Datasets
The researchers evaluated RAW on four citation networks:
- CoraL1 & CoraIDA: Standard citation datasets where nodes are papers and edges are citations. Uniquely, they extracted "citation contexts" (the sentences surrounding a citation) to use as edge attributes.
- DBLP & DELVE: Much larger citation networks (over 1 million nodes each) used to test scalability.
Key Insights and Ideas
- Selective Attention via RL: Unlike standard attention which weights all neighbors, RAW’s RL agent chooses a specific path. This mimics how a human researcher might follow a trail of citations to understand a paper’s topic.
- Edge Content Matters: By incorporating edge attributes (the context of a citation), the agent makes better decisions about which path to follow. A paper might cite another for its "methodology" or its "results"; RAW can distinguish between these.
- Scalability through Sparsity: Because the agent only visits a fixed number of nodes regardless of the graph's total size, RAW’s memory footprint is remarkably stable compared to GCNs.
- Interpretability: The walk trajectory provides a "reasoning path." You can see exactly which papers the agent visited to reach its conclusion.
Key Results
- Performance: RAW consistently outperformed or matched state-of-the-art models like GCN and GAT. In inductive tasks (classifying unseen nodes), RAW showed significant gains, often outperforming GraphSAGE by several percentage points.
- Memory Efficiency: While GCN and GAT hit memory limits (OOM) on graphs with more than 50,000 nodes, RAW scaled easily to the 1-million-node DBLP and DELVE datasets.
- Walk Efficiency: The authors found that a walk length of $T=10$ was often sufficient to reach peak accuracy, suggesting the agent learns to find high-value information very quickly.
Limitations and Future Work
The authors acknowledge that while RL provides flexibility, it can be sensitive to hyperparameters and training stability (a common trait of the REINFORCE algorithm). Additionally, the current model uses a fixed walk length $T$; a more advanced agent might learn to "stop" early once it is confident in its classification. Future work could also explore more complex graph structures, such as heterogeneous networks with multiple types of nodes and edges.
Summary updated