Transferring Architecture as an Optimization Prior

Vighnesh Subramaniam, Boris Katz, Brian CheungNeurIPS 2026

TL;DR

Before a neural network ever sees a label or takes a single supervised gradient step, its physical architecture and random weights establish an initial "geometry" over the data—dictating which inputs look similar and shaping how the model will learn. This paper shows you can hijack that starting point: by aligning a small, shallow network to mimic the internal geometry of a larger, completely untrained guide network at initialization, the smaller model inherits the optimization benefits of the bigger architecture. You then throw the big network away, train the small one normally, and watch it outperform its standard counterparts—no knowledge distillation or pre-trained teachers required.

What Problem Does This Paper Address?

When we talk about weight initialization (like Xavier or He initialization), we usually care about basic plumbing: keeping signals and gradients from exploding or vanishing.

The Optimization Prior: Aligning a shallow target to a frozen random guide at initialization

However, initialization does something much subtler. Even with random weights, a network’s physical structure—its depth, width, or how finely it chops up an image—projects inputs into a specific geometric arrangement. Some data points land close together; others land far apart. The authors call this initial geometric bias an optimization prior, because it dictates how examples influence one another during the earliest stages of gradient descent.

Deeper or finer-grained architectures naturally induce better optimization priors, which is part of why they train better. The authors ask a fascinating question: is a network's optimization "fate" permanently bolted to its physical structure, or can a shallow, coarse network borrow the favorable starting geometry of a deeper, finer architecture before training even begins?

Methods

Unlike standard knowledge distillation—where a student learns from a smart, pre-trained teacher throughout training—this method happens strictly at initialization using an untrained guide.

  1. Setup: Take a target network (say, a shallow ResNet-10) and a guide network (say, a deep ResNet-152). Randomly initialize both, and freeze the guide. The guide never sees a label or receives a gradient update.
  2. Stagewise Alignment: Pass unlabeled data (or even synthetic Gaussian noise) through both networks. Using an adaptation of the Network of Theseus (NoT) stage-replacement operator, map the upper-half layers of the target network to corresponding layers in the frozen guide.
  3. Similarity Optimization: Update the target’s weights for just one epoch to make its internal relational geometry match the guide's. Because layer dimensions differ across architectures, they compare batchwise relationships between data points using two metrics:
  4. Linear CKA (Centered Kernel Alignment): Captures global pairwise similarity across a batch.
  5. DiffKNN: A differentiable $k$-nearest-neighbors objective that captures local neighborhood structure.
  6. Discard and Train: Throw the guide network away. Train the newly initialized target network from scratch on the downstream task, giving standard baselines an extra epoch of supervised training so total compute budgets match fairly.

Datasets

The authors use standard benchmarks without introducing new datasets:

  • ImageNet-1K: Used to train and evaluate all computer vision models (ResNets, Vision Transformers, and ConvNeXtV2).
  • WikiText-103: Used to train and evaluate language models (GPT-2 variants ranging from 4-layer Nano to Large).
  • Synthetic Gaussian Noise: Generated on the fly (random pixel values or random token IDs) to test completely data-free initialization alignment.

Key Insights and Ideas

  • No real data required: Perhaps the biggest "aha" moment is that you don't even need real images or text for the alignment step. Passing pure Gaussian noise through both networks still transfers the architectural prior and boosts downstream accuracy. The target isn't learning data statistics; it is genuinely absorbing the computational geometry of the deeper architecture.
  • Initial geometry sticks around: Even though the guide is discarded before supervised training starts, aligned targets remain measurably closer (via CKA) to their deep guides throughout supervised training than standard baselines do.
  • Local vs. Global geometry matters: When transferring fine patch granularity (from a fine-grained ViT-B/16 guide to a coarse ViT-B/32 target), global CKA fails because the two random networks already have a 0.95 CKA similarity—the metric is saturated. DiffKNN, which looks at local neighborhoods, still finds structural differences to optimize and successfully transfers the benefit.
  • Architectural priors are "chainable": You can align a medium model (ViT-Small) to a big random guide (ViT-Base), freeze that medium model, and use it to align a tiny model (ViT-Tiny)—passing the geometric prior down the chain like a baton.

Key Results

Across both vision and language tasks, deeper and finer-grained random guides consistently improve shallower and coarser targets:

Figure 2: Depth transfers to shallow vision networks. We align different vision networks across different depths at initialization. Rows are targets and columns are random guides used only during alignment. Each cell reports the average ImageNet top-1 change relative to the same target trained from standard initialization. Green is better. Across ResNets, ViTs, and ConvNeXtV2 models, deeper guides consistently improve shallower targets under both CKA and DiffKNN. Raw performance with error bars is reported in Section C.
  • Vision Depth Transfer: Deeper guides yield steady gains in ImageNet top-1 accuracy, peaking at +3.78% (ResNet-18 aligned to ResNet-152 using DiffKNN), +2.62% (ViT-Tiny aligned to ViT-Large), and +3.24% (ConvNeXtV2-Atto aligned to Large).
  • Language Depth Transfer: Deeper GPT-2 guides lower WikiText-103 perplexity for shallow targets by up to 3.62 points (GPT-2-Nano aligned to GPT-2-Large).
  • Granularity Transfer: Aligning a coarse-patch ViT-B/32 to a fine-patch random ViT-B/16 boosts ImageNet accuracy by +1.57% under DiffKNN (compared to just +0.12% with saturated CKA).
  • Sanity Controls: Aligning a network to a random copy of itself has virtually zero effect, and aligning a deep network to a shallower guide slightly degrades or leaves performance unchanged—proving the gains come specifically from superior architectural priors.

Limitations and Future Work

The authors note that while the improvements are remarkably consistent, they are modest—topping out around 3–4 accuracy or perplexity points. After all, the final model is still physically constrained by its smaller parameter count during inference and training. Additionally, transfer fails if the similarity metric is already saturated at initialization (as seen with CKA on ViT patch sizes). Future work could explore combining global and local similarity objectives, composing multiple guide architectures at once, and testing whether other structural traits—like recurrence, width, or convolutional locality—can also be bottled up as initialization priors.

Summary updated

Abstract

Initialization determines the optimization "fate" of a model, going far beyond just setting the scale of its weights. It establishes a fundamental initial geometry over the input data, dictating certain aspects such as which examples are considered close and which representations gradient descent will naturally refine first. In this paper, we view the initial geometry of a network as an \emph{optimization prior} and ask whether a network can change its optimization prior by referencing a completely different architecture. To investigate this question, we use an initialization procedure where a target network is aligned to the representational geometry of a randomly initialized guide network before any downstream training occurs. Crucially, alignment to the guide network cannot transfer learned features, never receives gradients, and does not use labels. We demonstrate that this cross-architecture transfer of ``fate'' benefits the target network in two key domains: (1) instilling the optimization benefits of depth into shallow networks by aligning them to deeper networks, and (2) transferring representational granularity by using fine-resolution networks to shape the geometry of networks with coarser representations. In both cases, the alignment results in improved downstream performance of the target network. Ultimately, this demonstrates that a model's architectural destiny can be decoupled from its physical structure and explicitly modified at initialization.
BibTeX
@inproceedings{subramaniam2026transferring,
  author = {Vighnesh Subramaniam and Boris Katz and Brian Cheung},
  title = {{Transferring Architecture as an Optimization Prior}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9ZcIwyPLGI},
}
Figure