Skip to content
AI.info

Research

Sketch-Augmented Features Improve Learning Long-Range Dependencies in Graph Neural Networks

Overview Research area: Graph representation learning — specifically graph neural networks (GNNs), kernel methods, and randomized sketching. Technical level: Intermediate. The paper assumes familiarit

arXiv
2511.03824
Published
2025-11-05
Authors
Ryien Hosseini, Filippo Simini, Venkatram Vishwanath, Rebecca Willett, Henry Hoffmann

AI summary

Overview

Research area: Graph representation learning — specifically graph neural networks (GNNs), kernel methods, and randomized sketching.

Technical level: Intermediate. The paper assumes familiarity with message passing, kernels, and random projections (Johnson–Lindenstrauss), but its core idea is simple enough to follow with a GNN background.

Scope: The paper proposes "Sketched Random Features" (SRF), a method that mixes global information from all node features into every GNN layer, and shows analytically and experimentally that this mitigates oversquashing, oversmoothing, and limited expressiveness.

What This Paper Is About

Standard GNNs learn by repeatedly aggregating information from immediate neighbors. That local recipe is efficient but breaks down for long-range signals: distant information gets compressed (oversquashing), node representations collapse toward identical values as depth increases (oversmoothing), and the models cannot distinguish many non-isomorphic graphs (limited expressiveness bounded by the 1-dimensional Weisfeiler–Lehman heuristic).

The goal is to keep the efficient message-passing backbone while giving each node a compact, unique, distance-sensitive summary of all other nodes' features, without altering the graph topology.

Key Contributions

  1. Defines Sketched Random Features (SRF): a two-stage construction that first maps node features into a random kernel feature space (using linear, Laplacian, or RBF random features) and then applies a cross-node "additive Gaussian" sketch (I + (1/√N)G)Φ with i.i.d. Gaussian entries, optionally repeated k times by concatenation.
  2. Proves five properties of SRF (Propositions 3.1–3.5): unbiased estimation of kernel-matrix cross-terms, kernel distance sensitivity with high probability, cross-node information content, almost-sure uniqueness, and permutation equivariance in expectation.
  3. Connects these properties to the three known GNN limitations, arguing that uniqueness plus distance sensitivity counters oversmoothing and yields universality, while cross-node mixing counters oversquashing with linear rather than exponential information loss.
  4. Demonstrates the method empirically on synthetic expressiveness and oversquashing benchmarks and on real-world graph learning tasks, positioning SRF both as a standalone augmentation and as a complement to existing structural positional encodings.

Main Findings

  • Perfect scores on synthetic expressiveness benchmarks: On the CSL benchmark, the baseline and the ablation (E_L, S_id) both score 0.100 accuracy while every SRF configuration scores 1.000. On the EXP benchmark, baseline scores 0.518 and the ablation 0.520, while every SRF configuration again scores 1.000. All results are averaged over 5 runs, with standard deviations of at most 0.002 omitted from the table.

  • Sketching, not just kernel features, drives the gain: The ablation with identity sketch S_id = I performs at baseline level (0.100 on CSL, 0.520 on EXP), isolating the benefit to the additive Gaussian sketch rather than the kernel embedding alone.

  • Oversquashing is reduced on Tree-NeighborsMatch: Baseline GIN and the (E_L, S_id) ablation degrade severely beyond radius r = 4. All SRF variants achieve perfect accuracy up to r = 4, decay more gracefully afterward, and remain above 40% accuracy even at r = 8, regardless of which embedding operator is used.

  • Oversmoothing is measured with Dirichlet energy: The paper uses D(H^(ℓ)) = (1/N) Σ_i Σ_{j∈N(i)} ||h_i^(ℓ) − h_j^(ℓ)||², where lower values indicate more oversmoothing. Figure 1 reports Dirichlet energy across layers for different methods and for E_L with varying k.

  • Training efficiency is compared against positional-encoding baselines: Figure 2 compares SRF, R-PEARL, and B-PEARL on runtime in seconds and memory usage in MB on a log scale. Specific figures are not given in the text of the provided content.

  • Improved real-world performance is claimed but detailed numbers are not in the provided content: The abstract states the strategy "consistently improves performance over baseline GNNs" on real-world graph learning tasks; Section 1 states SRF-augmented models "often outperform" baselines. The specific benchmark names and scores for the real-world experiments appear in the truncated portion and are not reported here.

  • Favorable asymptotic complexity: Using structured random matrices instead of dense projections lowers storage to O(N) and enables matrix–vector multiplication in O(N log N), while preserving the theoretical guarantees. This is compared favorably against positional-encoding alternatives.

  • Comparisons to related approaches: Transformer-based graph models cost O(N²) in memory and computation; k-order Weisfeiler–Lehman GNNs cost O(N^k), reducible in some cases to O(N²) and O(N³); the Johnson–Lindenstrauss lemma requires dimension D = O(1/ε² log F).

  • Degenerate case noted: In the featureless limit where all node features are identical, SRF reduces to random node individualization, preserving expressive power through randomization.

Methodology in Plain English

The researchers keep the ordinary GNN layer unchanged but give every node an extra "global context" vector that is computed once from the full feature matrix.

First, each node's raw features are pushed through a random feature map — a random projection with a cosine (RBF), a Cauchy-based variant (Laplacian), or simply the identity/linear map. Each of these gives an unbiased estimate of a kernel similarity between node features.

Second, that matrix of random kernel features is multiplied by a random matrix I + (1/√N)G, where G has independent standard-normal entries. Because the identity part is included, each node's new vector keeps its own information, and because of the random Gaussian part, it also becomes a random linear combination of every node's features in the graph. This is repeated k times and concatenated, giving a k·D-dimensional sketch per node.

These sketches are then concatenated onto the GNN's hidden state at every layer, i.e. h̃_i^(ℓ) = [h_i^(ℓ) | z_i], and message passing proceeds as usual. The only thing that changes is that every node now carries a small, unique, feature-distance-preserving summary of the entire graph, so long-range signals no longer need to traverse many hops.

Why This Matters

Impact on research. The paper offers a middle path between two dominant strategies: dense attention models that cost O(N²) and random node features that guarantee universality but often hurt empirical performance. SRF is topology-agnostic — it uses node features rather than graph structure — which means it is orthogonal to structural positional encodings and can be stacked with them for further gains. It also gives an unusual role to sketching: instead of dimensionality reduction, sketching is used deliberately as a mechanism for mixing information across nodes.

Real-world applications.

  • Molecular and chemical property prediction, where the relevant signal often comes from atoms far apart in the molecular graph and where edge features are common (the paper uses GINE for edge-featured graphs).
  • Drug discovery and materials screening, where long-range structural dependencies determine function but datasets are small, so methods that improve sample efficiency matter.
  • Large-scale network analysis such as social, citation, or infrastructure graphs, where O(N²) attention is infeasible and O(N) storage with O(N log N) projection cost is attractive.
  • Scientific computing on graphs — the author affiliations (Argonne Leadership Computing Facility) suggest high-performance computing settings where memory and runtime budgets dominate design choices.

Industry relevance. The method is a drop-in augmentation for existing GNN pipelines: it requires no change to graph topology or architecture family, and its structured-random-matrix variant keeps memory linear in the number of nodes. That makes it practical where attention-based graph transformers are too expensive, and useful as a complement to positional encodings that teams may already use.

Future Directions

  • Report and analyze the real-world benchmark results in more depth, including which dataset classes benefit most and where SRF fails to help relative to structural encodings.
  • Tune the two new hyperparameters more systematically. The paper notes that embedding dimension D and projection count k are studied in Appendix D; understanding the cost–accuracy trade-off as k grows, and whether k = 1 suffices in most cases, is an open practical question.
  • Push the complexity story further. Since structured random matrices already reduce storage to O(N) and multiplication to O(N log N), scaling SRF to very large graphs and quantifying the wall-clock gap against R-PEARL and B-PEARL (Figure 2) is a natural next step.
  • Clarify how best to combine SRF with graph positional encodings. The paper claims the two are complementary because SRF draws on features while encodings draw on topology; the design space for principled combinations remains open.
  • Tighten the theory. The permutation-equivariance guarantee holds only in expectation, and the universality argument relies on uniqueness plus distance sensitivity — characterizing exactly which graph families become distinguishable would strengthen the claims.

Target Audience

Researchers and practitioners working on graph neural networks who are already comfortable with message passing and want to understand why local aggregation fails on long-range tasks. It is most directly useful for those designing scalable architectures for large graphs, and for readers interested in the intersection of kernel methods, randomized sketching, and graph representation learning. Readers looking for a purely empirical benchmark paper should note that the detailed real-world results are in the appendices, not in the main text summarized here.

Authors’ abstract

Graph Neural Networks learn on graph-structured data by iteratively aggregating local neighborhood information. While this local message passing paradigm imparts a powerful inductive bias and exploits graph sparsity, it also yields three key challenges: (i) oversquashing of long-range information, (ii) oversmoothing of node representations, and (iii) limited expressive power. In this work we inject randomized global embeddings of node features, which we term \textit{Sketched Random Features}, into standard GNNs, enabling them to efficiently capture long-range dependencies. The embeddings are unique, distance-sensitive, and topology-agnostic -- properties which we analytically and empirically show alleviate the aforementioned limitations when injected into GNNs. Experimental results on real-world graph learning tasks confirm that this strategy consistently improves performance over baseline GNNs, offering both a standalone solution and a complementary enhancement to existing techniques such as graph positional encodings. Our source code is available at \href{https://github.com/ryienh/sketched-random-features}{https://github.com/ryienh/sketched-random-features}.

Read the original paper