Back to paper library
Paper notesarXiv 2018ICLR 2019

APPNP

Remember the Way Home

Original paper

Predict then Propagate: Graph Neural Networks meet Personalized PageRank

Paper authors

Johannes Gasteiger · Aleksandar Bojchevski · Stephan Günnemann

Publication
ICLR 2019Conference
First submitted to arXiv
arXiv:1810.05997
Cite this paper · BibTeX

The citation identifies the linked source version. It cites the original paper and its authors.

@misc{graphlearningappnp2018,
  title = {{Predict then Propagate: Graph Neural Networks meet Personalized PageRank}},
  author = {Johannes Gasteiger and Aleksandar Bojchevski and Stephan Günnemann},
  year = {2018},
  eprint = {1810.05997},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.05997}
}
On this page

In a two-layer GCN, each node sees only neighbors within two hops.

The intuitive way to see farther is to stack more layers. Yet the GCN paper itself shows accuracy falling beyond two or three. Greater depth makes every node's representation increasingly alike, until they cannot be distinguished.

Johannes Gasteiger, Aleksandar Bojchevski and Stephan Günnemann at the Technical University of Munich approach this differently. What does GCN converge to with infinitely many layers? A distribution independent of the starting node. Then make it remember the start: at every step, give it a chance to return home.

(The first author published as Johannes Klicpera; the 2022 arXiv version uses his current name.)

Defining the Problem

The authors give two reasons why message passing models such as GCN struggle to enlarge their neighborhoods.

First, mean aggregation causes over-smoothing as layers accumulate, losing focus on the local neighborhood.

Second, most aggregators give every layer its own weight matrix. Seeing farther requires a deeper network and more parameters. But required reach and required network depth are separate questions; tying them together forces poor compromises.

What Happens at Infinite Depth?

First address the former problem. Citing the Jumping Knowledge analysis, the authors explain that in a kk-layer GCN, the expected influence of node xx on node yy is proportional to the probability of a slightly modified kk-step random walk from xx reaching yy. As k→∞k\rightarrow\infty, an irreducible, aperiodic graph makes this converge to the walk's limiting distribution.

That limiting distribution is a property of the entire graph, independent of the starting node.

Take a seven-node path and look only at propagation, ignoring weights and nonlinearities. At two layers, each end node influences its own neighborhood; at ten layers, the influence already covers most of the path; after a hundred layers, the distributions from the two ends are identical, and neither remembers where it came from.

Solving the Problem

Personalized PageRank

The random walk's limiting distribution is PageRank. A variant developed for search engines, personalized PageRank, teleports back to a designated root node xx with probability α\alpha at each step.

πppr(ix)=(1−α)A^ πppr(ix)+αix\pi_{\text{ppr}}(i_x)=(1-\alpha)\hat A\,\pi_{\text{ppr}}(i_x)+\alpha i_x

ixi_x is the root's indicator vector. Solving gives:

πppr(ix)=α(In−(1−α)A^)−1ix\pi_{\text{ppr}}(i_x)=\alpha\left(I_n-(1-\alpha)\hat A\right)^{-1}i_x

Here A^\hat A is the symmetrically normalized adjacency matrix with self-loops, exactly as in GCN. Replace ixi_x with the identity matrix to get the graph's personalized PageRank matrix:

Πppr=α(In−(1−α)A^)−1\Pi_{\text{ppr}}=\alpha\left(I_n-(1-\alpha)\hat A\right)^{-1}

(Πppr)yx(\Pi_{\text{ppr}})_{yx} is xx's influence on yy. The continuing chance to return home keeps even limiting influence concentrated around the root, diminishing with distance. α\alpha controls how rapidly it decays.

On the same path with α=0.1\alpha=0.1, the influence from one end is 0.34, 0.24, 0.13, 0.08, 0.05, 0.03 and 0.02, from nearest to farthest. This is the result after infinitely many steps, and the distributions from the two ends still stay concentrated near their own starting points.

PPNP: Predict, Then Propagate

The authors separate the model into two parts. First, neural network fθf_\theta predicts for each node independently, ignoring the graph. Second, personalized PageRank propagates those predictions:

ZPPNP=softmax(α(In−(1−α)A^)−1H),Hi,:=fθ(Xi,:)Z_{\text{PPNP}}=\mathrm{softmax}\left(\alpha\left(I_n-(1-\alpha)\hat A\right)^{-1}H\right),\qquad H_{i,:}=f_\theta(X_{i,:})

This is PPNP: personalized propagation of neural predictions.

Figure 1 of the paper: on the left, each node's features x_i independently pass through neural network f_θ to produce prediction h_i. On the right, personalized PageRank propagates along graph edges in green, while dashed red arrows mark teleportation back to the root with probability α at each step, producing z_i.
Figure 1 from Gasteiger et al., taken from PDF page 3. The original caption is omitted.

This separation solves the second problem too. Propagation has no parameters; α\alpha controls reach, independently of neural-network depth. fθf_\theta could even be another kind of model, such as an image CNN.

Inference predicts then propagates, but training remains end to end: gradients pass through propagation back to fθf_\theta, implicitly accounting for infinitely many aggregation layers.

APPNP: Approximate with Power Iteration

PPNP has a practical problem. Πppr\Pi_{\text{ppr}} is a dense n×nn\times n matrix. Storage and each propagation cost O(n2)O(n^2); computing the exact inverse adds a separate preprocessing cost.

Treat each column of HH, one class, as a topic, and this becomes topic-sensitive PageRank, approximated by power iteration. Each step is a random walk with restart:

Z(0)=H,Z(k+1)=(1−α)A^Z(k)+αH,Z(K)=softmax((1−α)A^Z(K−1)+αH)Z^{(0)}=H,\qquad Z^{(k+1)}=(1-\alpha)\hat AZ^{(k)}+\alpha H,\qquad Z^{(K)}=\mathrm{softmax}\left((1-\alpha)\hat AZ^{(K-1)}+\alpha H\right)

HH is both the starting point and the destination for every restart. Each step needs one sparse matrix multiplication, without constructing an n×nn\times n matrix. This is APPNP.

Take the seven-node path from earlier. Replace predictions HH with one-hot vectors and iteration approximates Πppr\Pi_{\text{ppr}} itself. At 10 steps, the maximum difference from the exact solution is only 0.015; after 30, no difference is visible at the printed precision.

How It Differs from GCN

With α=0\alpha=0, APPNP propagation becomes GCN-style A^K\hat A^K. The only difference is the term αH\alpha H added back at every step.

Parameters are another difference: GCN adds weights for every propagation step; APPNP keeps all parameters in fθf_\theta, however many steps it runs.

Discussion

Rigorous Evaluation

The paper takes evaluation seriously. The authors criticize using a single split, unclear separation of validation and test sets, and tuning hyperparameters by dataset or even split, despite message passing models' sensitivity to splits and initialization.

They instead use:

  • 100 runs per experiment across multiple random splits and initializations.
  • A visible set and a test set, using the test set once at the end and never for hyperparameter or model selection.
  • Shared depth, hidden units, dropout, L2 and learning rate across datasets. Each model's hyperparameters are grid-searched on Citeseer and Cora-ML, with the same early-stopping rule.
  • Bootstrap 95% confidence intervals and paired t-test p-values for main conclusions.

All four datasets use only their largest connected component: citation networks Citeseer, Cora-ML and PubMed, and the MS Academic coauthorship graph. APPNP uses α=0.1\alpha=0.1, K=10K=10; MS Academic's different structure calls for α=0.2\alpha=0.2.

Main Results

MethodCiteseerCora-MLPubMedMS Academic
V. GCN73.5182.3077.6591.65
GCN75.4083.4178.6892.10
N-GCN74.2582.2577.4392.86
GAT75.3984.3777.7691.22
JK73.0382.6977.8891.71
PPNP75.8385.29Out of memoryOut of memory
APPNP75.7385.0979.7393.27

Values are mean accuracies (%), with most confidence intervals within ±0.5. The table caption is direct: previously reported improvements vanish under this rigorous setup. GAT and GCN differ by only 0.01 percentage points on Citeseer. PPNP and APPNP, meanwhile, win significantly across all four datasets.

APPNP takes about 25% longer per epoch than GCN on average because of more matrix multiplications, but is far faster than GAT: on PubMed, 64.1 ms versus 1029.8 ms.

How Many Steps, How Often to Return?

Figure 4 of the paper: four dataset panels plot accuracy against propagation steps K (0, 10, 20 and infinity). Blue GCN-style propagation (α=0) loses accuracy sharply as K rises, while orange APPNP (α=0.1) improves then levels off.
Figure 4 from Gasteiger et al., taken from PDF page 7. The original caption is omitted.

Blue points use α=0\alpha=0, GCN-style propagation, whose accuracy collapses with more steps as it approaches global PageRank. Orange points use α=0.1\alpha=0.1: accuracy rises and converges to infinite-step PPNP. The authors find K=10K=10 close enough, coinciding with the largest shortest-path distance from any dataset node to the training set.

The best teleportation probability α\alpha varies by dataset, roughly from 0.05 to 0.2. Larger α\alpha converges faster.

Where to Apply Propagation

An ablation compares propagation in training only, inference only, both or neither. Neither gives an MLP using node features alone.

Both is best. Interestingly, inference-only propagation also works quite well: train an ordinary MLP, then spread its predictions over the graph at inference. For an already trained model, this is an improvement at almost no additional cost.

With Very Few Labels

The fewer the labels, the greater APPNP's advantage over GCN. The authors explain that wider propagation carries information from scarce training nodes farther. Appendix analysis likewise shows that nodes farther from the training set benefit more from increased reach.

Conclusion

Starting from GCN's relationship to random walks, APPNP replaces PageRank that forgets its starting point with personalized PageRank that returns home. More propagation steps avoid over-smoothing, propagation adds no parameters, and network depth can finally be chosen independently of reach.

The paper's other contribution is its evaluation. The same GCN and GAT, assessed over multiple splits, 100 runs and a test set used only once, lose many previously reported gains.

Start with the paper's α=0.1\alpha=0.1 and K=10K=10. If you already have a trained MLP, try propagating its predictions only at inference, without retraining, and see how many percentage points it gains.