arXiv:2610.24112cs.LGOct 2026

Manuscript Offprint

arXiv:2610.24112

Looped GNNs Beyond Fixed Depth: Graph Size Generalization and Parameter-Efficient Adaptation

Zhiyang Wang, Zhishang Luo, Yusu Wang

Abstract

Generalizing from small graphs to larger ones can require computation beyond the depth of a neural model used during training. We study target tasks that admit a common local iterative computation and whose effective dependency radius grows with graph size. The central idea is to learn a local update rule through GNN pretraining, then repeatedly apply the same learned processor beyond the training depth to extend information reach on larger graphs without retraining. Calling such parameter-shared architecture a looped GNN, we categorize six schemes for looped GNNs to separate the effects of depth extension, fine-tuning, and freeze-and-steer adaptation. Our analysis establishes fixed-depth information limits and sufficient conditions under which accurate iterative reuse overcomes them. To improve beyond unadapted reuse, we introduce Loop-Freeze-Steer (LFS), which freezes the pretrained processor and learns a small controller to steer its repeated application, using much fewer trainable parameters than full fine-tuning. Our finite-sample analysis gives sufficient conditions for adaptation to improve performance on larger graphs. Experiments on synthetic tasks and chip placement evaluate depth extension and adaptation, highlighting LFS's accuracy–trainable-parameter trade-off for size generalization.

1 INTRODUCTION

Generalizing from small training graphs to larger deployment graphs is an important challenge in graph learning [1, 2]. In many tasks, increasing graph size also increases the amount of local computation needed for an accurate prediction. In such settings, it is natural to adapt a model trained on smaller graphs so that it can operate effectively on larger ones. The overarching questions we are interested in understanding are what adaptation strategies are effective, which factors govern their success, and under what conditions adaptation can provide a genuine (ideally provably guaranteed) benefit.

In this paper, we take a step toward answering these questions by focusing on a family of graph targets that admit a common local iterative computation whose effective dependency radius grows with graph size. This radius measures how much neighborhood information is needed to meet a specified accuracy for the desired target function. A common update rule propagates information through repeated applications, motivating a learned processor that can be reused at greater deployment depths.

For tasks with a growing effective dependency radius, a fixed-depth GNN has insufficient information to meet the desired accuracy for larger graphs, even after parameter adaptation (Proposition 1). This motivates extending computation at deployment. If a processor learned on small graphs captures the task's local update, repeatedly applying the same processor can propagate information farther on larger graphs without introducing new processor parameters. We refer to graph models with this repeated, parameter-shared computation as looped GNNs. Our starting point is a GNN pretrained at a fixed depth, with unadapted looping reusing its processor beyond that depth without further parameter updates.

Greater information reach and accurate computation are distinct requirements. Accurate prediction at the training depth does not by itself establish that the learned processor approximates the task's local update on

∗^{*}Preprint. This work was conducted while the author was at University of California, San Diego (UCSD).

states encountered during longer computations. Additional iterations therefore create both an opportunity to access more information and a need to control accumulated update errors. Our analysis makes this distinction explicit through a fixed-radius information floor and an alignment-based bound on iterative prediction error. Together, these results give sufficient conditions under which extended reuse improves on fixed-depth prediction (Lemma 1, Proposition 2).

Within an encode-process-decode formulation, we separately study deployment-depth extension and parameter adaptation. Figure 1 organizes six schemes along these two axes: Fixed, Fixed-Tune, and Fixed-Steer retain the pretraining depth, while Loop, Loop-Tune, and Loop-Freeze-Steer allow adjustable deployment depth. Within each family of the same depth, the model is used without adaptation, fine-tuned, or adapted through a controller around a frozen processor. The adapted schemes use a limited labeled set of intermediate-size graphs before evaluation on larger graphs. Matched comparisons examine the effect of depth under each adaptation policy and the effect of adaptation at a given depth.

Accurate prediction at the training depth does not by itself ensure that the learned processor approximates the task's local update rule, which matters when it is reused for additional iterations. This motivates how adaptation can improve extended reuse while retaining useful pretrained updates. Among the six schemes, our proposed Loop-Freeze-Steer (LFS) addresses this question by freezing the pretrained processor and learning a small controller to steer the hidden states passed between iterations, combining depth extension with parameter-efficient adaptation. Its motivation is that a pretrained processor may provide a useful local update even when its repeated application requires adjustment on larger graphs. LFS freezes the encoder and processor and learns a small size-conditioned controller, together with the readout. The controller acts between iterations, modifying the hidden states entering subsequent processor applications. It thereby adapts the repeated computation itself, with the same controller parameters reused across steps and graph sizes. Compared with updating the full network, this design concentrates the trainable budget in a compact controller and readout. Its practical aim is to improve on unadapted reuse while approaching fine-tuning accuracy with far fewer trainable parameters.

Specifically, for adaptation, our finite-sample analysis distinguishes the correction achievable within an adaptation class, the cost of estimating that correction from limited data, and its persistence across graph sizes. Adaptation improves expected deployment risk over its unadapted baseline when the achievable gain exceeds estimation cost and the signed loss of benefit across sizes (Lemma 2, Proposition 3). This criterion applies to both fine-tuning and steering. It also separates the trainable-parameter savings of LFS from the statistical conditions needed for accurate adaptation.

We evaluate these questions on controlled synthetic tasks and real-world chip-placement problems. Synthetic experiments examine the effects of depth, update alignment, and adaptation, while chip-placement experiments test transfer to larger designs and additional distribution shifts. The comparisons assess both predictive error and trainable parameter budget, reflecting the practical value of obtaining comparable accuracy with a much smaller adaptation model. Our contributions are summarized as follows:

• A framework for graph-size generalization. We distinguish effective dependency radius from task-computation depth and organize six schemes to separate depth extension from adaptation. Our analysis establishes fixed-depth information limits and sufficient conditions for useful iterative reuse and finite-sample adaptation across sizes.

• Loop-Freeze-Steer. We introduce adaptation of looped computation through a shared size-conditioned controller between frozen processor applications, together with readout adaptation, reducing trainable parameters relative to processor fine-tuning when the controller is smaller.

• Synthetic and real-world validation. We evaluate depth extension and adaptation on controlled synthetic tasks and real-world chip-placement problems, assessing performance and parameter efficiency across graph sizes.

References (50)