arXiv:2610.19279cs.LGOct 2026

Manuscript Offprint

arXiv:2610.19279

Dimension-Free Scaling Laws for Size Generalization: An Exponential Separation

Behrooz Tahmasebi, Melanie Weber

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Modern machine learning models increasingly operate on variable-size structured data, such as sets and graphs. A central requirement is size generalization: the ability of a model trained on inputs of one size to generalize to inputs of a different, potentially much larger, size. Classical statistical learning theory, however, primarily considers fixed input domains, and its guarantees often deteriorate with input dimension. Although extensive work has established when models on sets and graphs can be transferred across input sizes, such results do not characterize the statistical cost of doing so: the sample complexity of size generalization, and its relationship to classical in-domain learning, remain largely unknown. We develop a statistical learning theory of size generalization and establish a sharp exponential separation in sample complexity. Letting nn denote the number of training samples, we show that polynomial source decay is insufficient for efficient size generalization: while it yields error n−Θ(1)n^{-\Theta(1)} and hence polynomial sample complexity for in-domain learning, size-generalization error decays only as (log⁡n)−Θ(1)(\log n)^{-\Theta(1)}, yielding an exponential separation. Thus, polynomial in-domain sample complexity can become exponential across sizes. We then identify an exponential source condition under which size generalization achieves error n−Θ(1)n^{-\Theta(1)}, recovering polynomial sample complexity. These guarantees are independent of input dimension and depend only on the number of training samples, yielding dimension-free scaling laws. We also provide matching minimax lower bounds, establishing optimality. To our knowledge, this work provides the first dimension-free minimax theory of size generalization and a rigorous characterization of when, and at what statistical cost, learning can transfer across input sizes.

1 INTRODUCTION

In many geometric learning problems, the domain is not fixed once and for all. Sets vary in cardinality, graphs vary in the number of nodes, and objects encountered at test time may be larger than those observed during training. The goal is therefore not only to generalize to unseen in-domain samples but also to generalize across domains of different sizes. This desirable property is central to geometric machine learning (Bronstein et al., 2021; Weber, 2025) and is often studied as size generalization for sets and graphs (Yehudai et al., 2021; Bevilacqua et al., 2021).

Recent work has made important progress toward understanding learning across sizes, but the available theory remains limited. One line studies transferability through graph limits, graphons, and related stability frameworks (Ruiz et al., 2020; Keriven et al., 2020; Levie et al., 2021; Levin et al., 2025), while another develops learning rules across dimensions using representation stability (Farb, 2014; Levin & Díaz, 2024; Levin & Chandrasekaran, 2023; Díaz et al., 2025). These works offer structural and statistical insights, but leave open a dimension-free minimax characterization of sample complexity across sizes.

The ability to process variable-size inputs does not by itself close this gap. Deep Sets (Zaheer et al., 2017) and graph neural networks (Scarselli et al., 2008), for example, can be applied to sets and graphs of varying sizes and may even satisfy transferability guarantees: under suitable regularity conditions, such as Lipschitz continuity, a fixed model produces similar outputs on objects of different sizes. But such guarantees do not determine how the transferred error decreases with the number nn of training samples, whether this rate is uniform over the training and test sizes, or how it compares with generalization at the training size. We therefore ask: given nn samples at size dd, can we control the generalization error simultaneously at every target size D≥dD\geq d, using a number of samples independent of both dd and DD?

To address this question, we return to a classical idea. In classical learning theory, it is standard to impose a source condition on the desired task, since learning over an arbitrary space is impossible by a standard no-free-lunch argument. The source condition that enables the in-domain generalization error to decrease as n−Θ(1)n^{-\Theta(1)} is called polynomial source decay. Roughly speaking, it requires the Fourier coefficients of the target function to decay polynomially with their index. This condition is necessary and sufficient for efficient classical in-domain learning. Motivated by this phenomenon, we ask the following question:

Do the conditions for efficient in-domain learning also enable efficient size generalization?

We therefore ask whether polynomial source decay remains sufficient for size generalization. Our main finding is a sharp separation: under polynomial source decay, the size-generalization error decreases only as (log⁡n)−Θ(1)(\log n)^{-\Theta(1)}. Consequently, an accuracy attainable with poly-

Table 1: The statistical cost of size generalization.

Source decayIn-domain errorSize-generalization error
Polynomialn−Θ(1)n^{-\Theta(1)}(log⁡n)−Θ(1)(\log n)^{-\Theta(1)}
Exponentialn−Θ(1)n^{-\Theta(1)}n−Θ(1)n^{-\Theta(1)}

nomially many samples for in-domain learning under the same condition may require exponentially many samples when the task must generalize across input sizes.

Importantly, our resulting guarantees are dimension-free: they depend on the number of training samples, but not on the input size dd (i.e., either the cardinality of a set or the number of nodes in a graph). In particular, classical transferability errors are typically controlled by the smaller object size, scaling as d−Θ(1)d^{-\Theta(1)} when D≥dD \geq d. By contrast, our generalization gap converges to zero with the number of training samples nn and is uniform over both dd and DD, albeit at a slow rate.

To overcome this limitation, we then identify when the exponential cost can be avoided. Under exponential source decay, which is stronger than polynomial source decay, we show that the size-generalization error improves from (log⁡n)−Θ(1)(\log n)^{-\Theta(1)} to n−Θ(1)n^{-\Theta(1)}, recovering polynomial sample complexity. Therefore, our main finding is:

Efficient size generalization requires stronger regularity than in-domain learning; polynomial decay is sufficient for the latter, whereas exponential decay is needed for the former.

Table 1 summarizes this contrast. Exponential decay arises naturally for heat (Gaussian) kernels, analytic functions, and local graph functions.

Finally, we prove matching minimax lower bounds for both sets and graphs. The polynomial-versus-exponential separation is therefore not caused by a particular algorithmic issue. It is an inherent statistical limitation of size generalization over the corresponding source classes. Together, the upper and lower bounds provide a dimension-free minimax characterization of when learning can generalize across input sizes and at what sample cost.

In short, in this paper we make the following contributions:

  • We develop dimension-free scaling laws for invariant learning and estimation on sets and graphs, with rates that hold uniformly across input sizes (Section 4 and Theorem 4.1).

  • We show that size generalization is fundamentally harder than classical in-domain statistical learning: under polynomial source decay, in-domain error is n−Θ(1)n^{-\Theta(1)}, while size-generalization error is only (log⁡n)−Θ(1)(\log n)^{-\Theta(1)}, implying an exponential separation in sample complexity (Theorem 4.1 and Corollary 4.3).

• We show that under exponential source decay, size-generalization error becomes n−Θ(1)n^{-\Theta(1)}, recovering polynomial sample complexity independently of object size, at the cost of stronger regularity (Theorem 4.1).

• We prove that the rates for both sets and graphs are minimax optimal, establishing that the separation is intrinsic rather than algorithm-dependent (Theorem 4.2).

References (72)