arXiv:2609.31201cs.AISep 2026

Manuscript Offprint

arXiv:2609.31201

Samples, Sources, Space: Decomposing Data Scale in Spatially Structured Representation Learning of Human Brain Microarchitecture

Christian Schiffer, Mathis Bode, Thomas Lippert, Katrin Amunts, Timo Dickscheid

ABSTRACT

Scaling studies typically represent training data by a single count of samples. For hierarchically and spatially structured data, however, the same number of samples can be drawn from few or many sources and distributed differently across the underlying domain. We therefore study data scaling as an allocation problem, separating unique sample count, source diversity, and spatial coverage. We study this decomposition in microscopic whole-brain histology, where a source is an individual brain, and a sample is an image patch at a specific spatial location. Across 93 controlled pretraining runs of a contrastive model that uses spatial proximity for supervision, we vary data allocation, compute, and model capacity over 11.6 million spatially anchored image patches from 21 human brains. Performance improves with more unique samples, broader spatial coverage, additional compute, and larger model capacity. At fixed sample count, distributing samples across one to 18 subjects produces no detectable improvement, even though representations generalize substantially better to subjects encountered during pretraining. Inter-subject variation therefore strongly affects generalization, but additional subjects provide no benefit when a fixed sample budget is distributed across more sources. These results establish sample count, source diversity, and spatial coverage as distinct axes of data scaling in spatially structured representation learning.

1 INTRODUCTION

Empirical scaling studies characterize how learning changes with model capacity, training compute, and dataset size, typically representing data scale by a single count of training examples N (Kaplan et al., 2020; Hoffmann et al., 2022; Henighan et al., 2020). In many scientific datasets, however, samples are hierarchically and spatially organized, so the same N can correspond to substantially different data compositions. Hierarchical organization determines how samples are distributed across sources: increasing N may mean sampling existing sources more densely or acquiring additional sources. Spatial organization determines how samples are distributed over the underlying domain: at fixed sample and source counts, samples may densely cover a restricted region or sparsely cover a broader one. Source diversity, sampling density, and domain coverage are therefore distinct properties of a dataset.

This raises a basic question: What does it mean to add data? We characterize data composition by the number of distinct samples NuniqueN_{unique}, the number of contributing sources B, and domain coverage ρ\rho. A unique sample is one distinct sampled position, counted once irrespective of how often it is presented to the optimizer. The resulting allocation problem is to determine what is gained by additional samples, additional sources, or broader domain coverage under controlled training compute and model capacity.

Variants of this problem arise across fields. In pathology, patch count competes with diversity across slides (Bosch et al., 2025), while ecological sampling allocates fixed effort between replication within locations and coverage of an environmental gradient (Schweiger et al., 2026). Analogous hierarchical and spatial structure also occurs in remote sensing (Wu et al., 2025) and spatial transcriptomics (Xu et al., 2023). Across these settings, the methodological question is whether different ways of increasing data are interchangeable or have distinct effects on learning. Answering it requires the corresponding factors to be varied independently.

In this study, we investigate this problem in microscopic whole-brain histology, a particularly informative setting for controlled variation of sample count, source diversity, and spatial coverage. In this setting, whole brains are sectioned, stained, digitized, and represented by image patches sampled from the resulting sections (Amunts et al., 2013; 2020; Schiffer et al., 2025). A source is an individual subject, a sample is an image patch, and the domain is anatomical space (fig. 1). Each brain provides millions of samples, whereas adding another source requires processing an entire post-mortem brain. Its explicit spatial organization provides a learning signal for representation learning without manual labels (Schiffer et al., 2025). We consider 11.6 million sample locations from 21 human brains across 93 controlled pretraining runs spanning ViT-B to ViT-H, varying unique sample count, source count, spatial coverage, training compute, and model capacity. Representations are evaluated by linear probing for classification of cytoarchitectonic areas (Amunts et al., 2020).

Our experiments reveal a distinction between variation that affects generalization and variation that is valuable to acquire under a fixed sampling budget. Representations generalize substantially better to subjects encountered during pretraining, showing that capturing inter-subject variation is critical for the learned representation. However, redistributing a fixed number of samples across more subjects produces no detectable improvement across the tested model capacities. The value of additional sources therefore depends on how they trade off against sampling density, rather than following directly from the magnitude of source-level variation.

More broadly, increasing dataset size can correspond to qualitatively different changes in data composition. Additional samples, additional sources, and broader domain coverage need not contribute equally to representation quality. We introduce a controlled experimental decomposition that makes these contributions separately measurable under matched compute and model capacity. This turns data scaling in hierarchically and spatially structured datasets into an explicit allocation problem and provides a framework for identifying which form of additional data is most valuable.

References (60)