Skip to main content
QUICK REVIEW

[Paper Review] Learning from Historical Activations in Graph Neural Networks

Yaniv Galron, Hadar Sinai|arXiv (Cornell University)|Jan 3, 2026
Advanced Graph Neural NetworksComputer Science0 citations
TL;DR

HistoGraph introduces a two-stage attention-based pooling layer that leverages historical activations across GNN layers to produce stronger graph representations, improving performance on graph-level, node-level, and link prediction tasks, and can also be used as a lightweight post-processing head on frozen backbones.

ABSTRACT

Graph Neural Networks (GNNs) have demonstrated remarkable success in various domains such as social networks, molecular chemistry, and more. A crucial component of GNNs is the pooling procedure, in which the node features calculated by the model are combined to form an informative final descriptor to be used for the downstream task. However, previous graph pooling schemes rely on the last GNN layer features as an input to the pooling or classifier layers, potentially under-utilizing important activations of previous layers produced during the forward pass of the model, which we regard as historical graph activations. This gap is particularly pronounced in cases where a node's representation can shift significantly over the course of many graph neural layers, and worsened by graph-specific challenges such as over-smoothing in deep architectures. To bridge this gap, we introduce HISTOGRAPH, a novel two-stage attention-based final aggregation layer that first applies a unified layer-wise attention over intermediate activations, followed by node-wise attention. By modeling the evolution of node representations across layers, our HISTOGRAPH leverages both the activation history of nodes and the graph structure to refine features used for final prediction. Empirical results on multiple graph classification benchmarks demonstrate that HISTOGRAPH offers strong performance that consistently improves traditional techniques, with particularly strong robustness in deep GNNs.

Motivation & Objective

  • Motivate pooling methods that exploit intermediate activations beyond the last GNN layer to capture multi-scale information.
  • Propose HistoGraph as a two-stage attention mechanism over layer histories and node interactions.
  • Demonstrate improvements across graph classification, node classification, and link prediction benchmarks.
  • Show effectiveness as a post-processing head on pretrained GNNs for efficiency.

Proposed method

  • Represent historical activations as a sequence per node across L GNN layers.
  • Apply layer-wise attention using the final-layer embedding as a query to attend over historical states, producing per-node aggregated embeddings.
  • Apply node-wise self-attention to refine graph-level embeddings from per-node representations.
  • Use layer-wise sinusoidal positional encodings to encode layer order.
  • Normalize layer-wise contributions via signed division-by-sum to allow additive/subtractive effects.
  • Provide end-to-end training and a frozen-backbone post-processing option to train only the HistoGraph head.

Experimental results

Research questions

  • RQ1Can leveraging historical activations across GNN layers improve pooling and downstream performance beyond last-layer features?
  • RQ2Does a two-stage attention (layer-wise then node-wise) effectively capture multi-scale and spatial dependencies for graph representations?
  • RQ3Is HistoGraph robust to deeper GNNs and over-smoothing across various graph benchmarks?
  • RQ4Can HistoGraph serve as an efficient post-processing head on frozen backbones with significant gains?
  • RQ5How do individual components (normalization, layer-wise attention, node-wise attention) contribute to performance?

Key findings

  • HistoGraph consistently improves over strong pooling baselines on TU and OGB benchmarks for graph classification.
  • The method maintains strong performance with very deep GNN backbones, mitigating over-smoothing.
  • As a post-processing head on frozen backbones, HistoGraph yields gains with minimal training overhead.
  • Ablation shows each component (normalization, layer-wise, and node-wise attention) is important for peak performance.
  • End-to-end and post-processing modes offer flexible deployment with substantial accuracy gains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.