Adapting Depth, Not Weights: Meta-Learning Deep Graph Networks from a Few Labels

When a graph neural network (a model that updates each node by repeatedly averaging information from its neighbors) must learn new classes from one to five labeled nodes, the standard remedy is meta-learning. In the version called MAML, the model is trained across many small practice tasks so that its starting weights can be adapted to a new task with a few gradient steps. Every graph meta-learner we found keeps the network shallow, two or three rounds of averaging. That choice is sensible on feature-rich citation graphs. It fails when the labels that matter are several hops away, as happens when node features are missing or when neighbors tend to belong to different classes. Making the network deeper runs into over-smoothing, where repeated averaging makes all node representations look alike. Recent work shows that the training signal flowing backward collapses in the same way: gradients become nearly identical across nodes, and the output layer settles before the inner layers learn anything.

Our claim is that this backward collapse hits MAML's inner loop, the few adaptation steps taken on the handful of labeled "support" nodes, harder than ordinary training. With five labeled nodes, the classifier head fits the support set in one step. Adaptation therefore quietly becomes "retune the head only," and the meta-learned body never adapts to the new task. We propose to measure this failure directly and then remove it by moving what gets adapted. Instead of the deep weights, the inner loop adapts a small set of per-hop mixing coefficients in a propagation scheme where feature transformation and averaging are separated. Because these coefficients sit one step from the loss, their gradients never pass through the collapsing stack. Each new task can then choose its own effective receptive field from a few labels.

Core Claim

We make two testable claims.

The first is a diagnosis. In MAML on a deep message-passing network, the share of the inner-loop update that reaches the body shrinks roughly exponentially with depth, while the head's share grows. The exponential form is the rate at which node-level gradients converge to a constant in Backward Oversmoothing: why is it hard to train deep Graph Neural Networks?. As a result, deep MAML behaves like a frozen feature extractor with a retrained head. We also expect the adapted embeddings to lose rank: the effective rank, an entropy-based count of how many independent directions the node-representation matrix uses, should drop. Are we measuring oversmoothing in graph neural networks correctly? found that effective rank tracks accuracy with an average Pearson correlation of 0.91, whereas Dirichlet energy does not.

The second is a fix. Consider a decoupled model whose output is

$$Z = \sum_{k=0}^{K} \gamma_k \, \hat{A}^k f_\theta(X),$$

where $f_\theta$ is a node-wise network with weights $\theta$ applied to the feature matrix $X$, $\hat{A}$ is the normalized adjacency matrix, $K$ is the maximum hop count (up to 32), and $\gamma_k$ is the weight given to hop $k$. The gradient with respect to one coefficient is

$$\frac{\partial \mathcal{L}}{\partial \gamma_k} = \sum_u g_u^\top (\hat{A}^k f_\theta(X))_u,$$

where $g_u$ is the loss gradient at node $u$'s output. This gradient involves no backpropagation through $k$ rounds of averaging, so it cannot be starved by the depth-driven collapse. We meta-learn $\theta$ and an initial $\gamma$ in the outer loop. The inner loop adapts only $\gamma$, starting from a head initialized with support-set class prototypes (class-average embeddings), so the head cannot win the race to fit the support set. A task whose informative labels lie far away can then shift weight to high hops, and a locally determined task can stay near $k \le 2$.

Relation to Prior Work

Two graph meta-learners motivate the diagnosis without examining it. Meta-GNN applies MAML to 2-layer GCN and SGC models. Graph Meta Learning via Local Subgraphs (G-META) runs MAML with prototypes on 2–3-hop subgraphs and argues that truncation prevents over-smoothing. Both avoid depth rather than confront it. We keep their episodic setup and ask what breaks once depth is needed. Task-Adaptive Few-shot Node Classification (TENT) adapts per task through virtual class nodes and feature-wise modulation. It never measures smoothing, and its added virtual nodes increase local density. We adapt the receptive field itself.

Three optimization papers supply methods but have not been tested in bi-level training. Backward Oversmoothing supplies the mechanism we test. Taming Gradient Oversmoothing and Expansion in Graph Neural Networks shows that residual connections cause gradients to blow up and fixes this with Frobenius-norm weight scaling. Old can be Gold scales vanilla GCNs to 64 layers with degree-aware initialization. All three study fixed-class supervised training, and we use the first two to build our strongest deep-MAML competitor.

Two transductive methods are close in spirit. PairNorm shows that depth is necessary when unlabeled nodes lack features, which motivates our missing-feature regime. When Do GNNs Work (ALaGCN) gates aggregation per node using heuristics computed from class predictions. Our $\gamma$ serves a similar purpose but is fitted by gradient from support labels of unseen classes, where ALaGCN's prediction-based gates are unreliable.

The main contradicting result is Virtual Node Tuning for Few-shot Node Classification (VNT). It freezes a pretrained graph transformer, tunes input prompts, and beats meta-learning. We treat it as a baseline rather than dismissing it.

Research Program

The work has three stages.

The first stage is a diagnostic study. We train MAML with GCN backbones of depth 2 to 64, with and without Frobenius normalization and isometric initialization. For each inner-loop step we log four quantities: the ratio of body to head update norms, the spread of node-level gradients across nodes, the rank of each layer's weight update, and the effective rank of support and query embeddings before and after adaptation. We run this on the few-shot benchmarks and on contextual stochastic block models, synthetic graphs with tunable homophily (how often neighbors share a class).

The second stage builds the decoupled hop-adaptive learner described above. It uses $f_\theta$ with Lipschitz-bounded weights, $K$ up to 32, second-order meta-gradients for $\gamma$ only (cheap, because $\gamma$ has just $K+1$ entries), and prototype head initialization.

The third stage is a regime map, showing for which homophily levels, missing-feature rates, and label-distance profiles adapting hops pays off over fixed shallow propagation.

Baselines

The naive reference is an ordinary network trained on base classes, then given novel-class prototypes with no meta-learning. Meta-GNN reports that SGC reaches 61.64% on Cora 1-shot against Meta-SGC's 65.27% (Meta-GNN). We rerun both on our splits.

Among shallow meta-learners, the strongest are G-META and TENT. TENT reports 82.84% on DBLP 5-way 5-shot versus 80.85% for GPN (TENT).

The strongest existing number on CoraFull 5-way 1-shot is VNT-GPPE at 76.68%, against 73.38% for the best meta-learning baseline (VNT). VNT relies on a pretrained transformer, so we report it twice: once as published, and once with its backbone pretrained only on our base-class graph, to match data. We found no reported result on Lacuna for few-shot ogbn-arxiv or Amazon-E at our shot counts, so we produce those numbers ourselves.

The key competitor for the depth question is deep MAML made stable. It combines a 32-layer residual GCN with Frobenius normalization (Taming Gradient Oversmoothing), isometric initialization (Old can be Gold), and PairNorm, with all weights adapted in the inner loop.

Two ablations isolate our ingredient. The first keeps the decoupled architecture but adapts $\theta$ and the head instead of $\gamma$. The second meta-learns $\gamma$ but freezes it at test time.

All methods share the same splits, 600 test episodes, the same number of inner steps, and an equal tuning budget of 50 hyperparameter trials each on validation classes. We count as winning only a gain whose 95% confidence interval excludes zero. We expect near-parity on feature-rich CoraFull and DBLP, and clear gains in the missing-feature and low-homophily regimes.

Why not just…?

Why not just stay shallow, as G-META does? On feature-rich citation graphs this may be enough, and we expect to roughly tie there; the learned $\gamma$ should then concentrate on low hops. The evidence against shallow models comes from PairNorm's missing-feature setting, where vanilla SGC reaches 42.3% on Cora and a 60-layer PairNorm model reaches 74.5% (PairNorm). We build class-disjoint few-shot versions of that setting to test whether the gap carries over to episodic learning.

Why not pretrain a deep decoupled model and pick hop weights by cross-validation on the support set, with no meta-learning? This is the most serious threat. If it matches us, the contribution reduces to the diagnosis plus "use decoupled propagation." We run it with the same architecture and budget. Our hypothesis is that five labels are too few to cross-validate $K+1$ coefficients reliably, whereas a meta-learned $\gamma$ initialization plus a few gradient steps is not. If this baseline ties us, we will say so.

Why not add normalization to deep MAML and adapt all weights? Normalization keeps forward representations spread out. It does not stop the head from absorbing the whole inner-loop update. The stabilized deep-MAML baseline, together with the body/head update ratio we log for it, shows directly whether normalization restores body adaptation.

Why not use frozen-backbone prompting, as VNT does? VNT reports that prompts inserted at the input lose influence with depth, and it needs a pretrained backbone. Our matched-data comparison tests how much of its advantage comes from pretraining scale rather than from the prompting method.

Proposed Experiments

We evaluate on CoraFull, ogbn-arxiv, DBLP and Amazon-E in 5-way 1-shot and 5-shot episodes. We add two stress regimes: few-shot splits in which 50–100% of unlabeled-node features are removed, and contextual stochastic block models that sweep homophily from high to low. Metrics are episode accuracy, the body-to-head update ratio, gradient spread, and effective rank of the adapted embeddings.

Three checks decide the outcome. For the diagnosis to hold, the update ratio under stabilized deep MAML must fall with depth, and its test accuracy must match the head-only-adaptation ablation. For the fix to hold, $\gamma$-adaptation must beat both ablations and the cross-validated hop-selection baseline in the stress regimes. The learned hop weights should also shift toward higher $k$ as homophily or feature availability drops. If the adapted $\gamma$ ends up nearly identical across tasks, per-task depth adaptation is not what drives any gain, and the proposal fails.