Over-smoothing

Also known as: oversmoothing

On this page 7

Over-smoothing is the tendency of node representations to become nearly identical as a graph neural network stacks more message-passing layers, so that nodes from different classes can no longer be told apart. In graph learning, it is the main reason why many graph neural networks perform best with only two to four layers, unlike convolutional networks for images that routinely use dozens.

The effect follows directly from how most graph layers work: each layer replaces a node’s features with a weighted average of its neighborhood. Averaging is useful for removing noise, but repeated averaging erases the differences that a classifier needs, much like blurring an image until every pixel has the same gray value. The term is also written oversmoothing.

Why repeated message passing causes over-smoothing

A graph convolutional layer multiplies the feature matrix by a normalized adjacency matrix, which is mathematically a form of Laplacian smoothing. Applying it once pulls each node toward its neighbors; applying it k times mixes information from the whole k-hop neighborhood.

As k grows, powers of the normalized adjacency matrix converge to a projection onto the dominant eigenvector. In a connected graph, features then depend mainly on node degree and the connected component, not on the original input. Theoretical analyses show this convergence is exponential in depth, at a rate set by the spectral gap of the graph and the singular values of the layer weights.

Nonlinearities and learned weights slow the collapse but do not stop it in general. ReLU activations, for example, can shrink feature magnitudes further, and weight matrices with small singular values accelerate the decay. The following table summarizes the factors that make over-smoothing appear sooner or later.

FactorEffect on smoothing speedReason
Number of layersMore layers, faster collapseEach layer adds another averaging step
Graph connectivityDense, small-diameter graphs collapse soonerNeighborhoods cover the graph quickly
Spectral gapLarger gap, faster convergenceNonleading eigenvalues decay faster
Self-loop weightStronger self-loops slow itNodes retain more of their own signal
HeterophilyHarm appears earlierNeighbors carry features of other classes
Factors that influence how quickly over-smoothing appears

How over-smoothing is measured

Over-smoothing is diagnosed by tracking how similar node embeddings become layer by layer, alongside task accuracy. A drop in accuracy alone is not proof, because depth also introduces optimization difficulties.

MetricWhat it measuresSign of over-smoothing
Dirichlet energySum of squared feature differences across edgesEnergy decays toward zero
Mean average distance (MAD)Average cosine distance between node pairsDistance approaches zero
MADGapRemote-node distance minus neighbor distanceGap shrinks or turns negative
Accuracy versus depthTask performance as layers are addedSharp decline beyond a few layers
Common metrics for detecting over-smoothing

Dirichlet energy is the most widely used theoretical measure because it links directly to the graph Laplacian. MAD-based measures are easier to interpret in experiments, since they compare embeddings of nearby and distant nodes.

Over-smoothing is often confused with other problems of deep graph models, yet each has a different cause and remedy. Separating them is essential before choosing a fix.

ProblemCore causeTypical symptom
Over-smoothingRepeated averaging of neighbor featuresEmbeddings converge to similar vectors
Over-squashingExponentially many messages pass through bottlenecksLong-range information is lost
Vanishing gradientsDeep stacks of transformationsEarly layers barely train
OverfittingToo many parameters for few labelsHigh training accuracy, low test accuracy
Over-smoothing and neighboring problems

Over-squashing is the closest neighbor concept. It concerns information that cannot get through a narrow part of the graph, whereas over-smoothing concerns information that spreads too evenly. Methods that add edges to fight over-squashing, such as graph rewiring, can worsen over-smoothing, so the two must be balanced.

Techniques that mitigate over-smoothing

Mitigation strategies either preserve each node’s own signal, limit how much averaging happens, or normalize embeddings so they stay apart. Most practical systems combine several of them.

  • Residual and initial connections, as in GCNII, add the input features back at every layer.
  • Jumping knowledge networks combine outputs from all layers so the classifier can pick a suitable depth per node.
  • Personalized PageRank propagation, as in APPNP, uses a teleport probability around 0.1 to keep a share of the original features.
  • Normalization layers such as PairNorm keep the total pairwise distance between embeddings constant.
  • DropEdge randomly removes edges during training, which slows information mixing.
  • Decoupled models separate a few transformation layers from many cheap propagation steps.

Graph transformers reduce reliance on local averaging, but global attention can smooth as well when attention weights become nearly uniform. Depth should therefore be chosen by validation on the actual graph, not by analogy with image or language models.

Practical guidance for choosing model depth

In most node classification tasks on citation and social graphs, two or three message-passing layers give the best accuracy. Deeper models pay off mainly when labels depend on long-range structure, such as in molecules or large sparse graphs.

A sound workflow is to start shallow, measure accuracy and Dirichlet energy at several depths, and add mitigation only when deeper receptive fields are genuinely needed. Ignoring heterophily is a common mistake: on graphs where neighbors usually differ, even two layers of plain averaging can hurt.

When a deeper receptive field is required, it is usually cheaper to decouple propagation from transformation than to stack many full layers. Precomputing several propagation steps once, as simplified graph convolution does, keeps training fast and lets the analyst tune the number of hops as a single hyperparameter. Monitoring embedding similarity on a held-out set during this tuning reveals the depth at which representations begin to collapse.

In simple terms

A graph neural network learns about each point in a network by listening to its neighbors. Each layer is one more round of listening.

After a few rounds, every point has heard almost the same mix of opinions. Then all points start to sound alike. This is over-smoothing. It is like passing a rumor around a small town too many times: in the end, everyone tells the same story, and nobody remembers who said what first.

A practical example

A data science team builds a fraud detection model on a transaction graph with about 2 million accounts. Its first graph convolutional network with eight layers flags fraud poorly, and inspection shows that embeddings of fraudulent and legitimate accounts have a mean cosine distance close to zero.

The team reduces the network to three layers with residual connections, adds PairNorm and uses personalized PageRank propagation for broader context. Dirichlet energy stays stable across layers, embeddings of the two account types separate clearly, and the precision of flagged accounts improves enough for investigators to review the alert queue each day without a growing backlog.