Training the Untrainable: Introducing Inductive Bias via Representational Alignment

Vighnesh Subramaniam, David Mayo, Colin Conwell, Tomaso Poggio, Boris Katz, Brian Cheung, Andrei Barbu

Introduction

In deep learning, architecture is everything. We rely on Convolutional Neural Networks (CNNs) for images and Transformers for language because their structures contain "inductive biases"—built-in assumptions about the data that help them learn efficiently.

However, architecture design remains somewhat of a "dark art." We know that a deep Fully Connected Network (FCN) will almost always overfit on complex image datasets like ImageNet, and a vanilla Recurrent Neural Network (RNN) will struggle with long-range dependencies where a Transformer excels. These networks are effectively "untrainable" for those specific tasks.

This raises a fundamental question: Can we take the "prior" or the "logic" of a successful architecture (like a ResNet) and inject it into an unsuccessful one (like an FCN) without fundamentally changing the target's structure? Researchers have developed a technique called Guidance that allows these untrainable neural networks to succeed by aligning their internal representations with a "guide" network.

The Guidance Framework

To transfer architectural inductive biases, the authors introduce a training framework where a target network (the architecture that usually fails) is paired with a frozen guide network (the architecture that usually succeeds).

The Guidance framework aligns the representations of a target network (e.g., FCN) with a guide network (e.g., CNN), successfully mitigating severe overfitting.

The target network is trained using a composite loss function consisting of two parts:

  1. Task Loss: The standard cross-entropy loss for the specific task (e.g., classifying an image).
  2. Representational Alignment Loss: A term that minimizes the "distance" between the activations of the target’s layers and the guide’s layers.

To measure this representational distance, the method employs Centered Kernel Alignment (CKA), a metric that compares the similarity of representational structures between two networks, even if they have different widths or architectures. Crucially, the guide network is frozen; it never learns from the data during this process.

The authors test two distinct scenarios: using a trained guide (which transfers both the architecture's prior and learned knowledge) and a randomly initialized guide (which transfers only the architectural prior).

Key Insights and Discoveries

  • Architecture is a Prior: The most striking finding is that a randomly initialized guide often works as well as, or even better than, a trained one. This suggests that the physical layout of a ResNet or a Transformer encodes a "way of seeing" the world that is inherently useful even before the first weight is updated.
  • Guidance as Regularization: For FCNs, which usually overfit instantly on ImageNet, Guidance acts as a powerful regularizer. It prevents the network from "memorizing" noise by forcing its internal logic to mirror the spatial hierarchy of a CNN.
  • Initialization is Half the Battle: The researchers found they could "pre-align" an FCN to a random ResNet guide for just 300 steps on pure noise, then stop the guidance and train normally. This "guidance-driven initialization" alone was enough to prevent the FCN from overfitting later.
  • Error Consistency: When a target is guided, it doesn't just get more accurate; it starts making the same types of mistakes as the guide. This proves the target is truly inheriting the guide's decision-making patterns.

Experimental Results

The study evaluates Guidance across a diverse set of challenges, including vision (ImageNet-1K, CIFAR-10), language modeling (WikiText-103), and algorithmic tasks (Copy-Paste, Parity). The results show that Guidance can "rescue" architectures that were previously considered useless for certain tasks.

Training curves across various tasks demonstrating that both trained and untrained guides consistently improve the target network's performance compared to base training.

Notable improvements include:

  • FCNs on ImageNet: A deep FCN, which normally achieves near 0% validation accuracy due to severe overfitting (base training at 1.65%), reached 13.10% top-5 accuracy when guided by a random ResNet-18.
  • RNNs on Language: On WikiText-103, guiding an RNN with a Transformer halved its perplexity (from ~70 to ~35), nearly closing the performance gap between the two architectures.
  • Transformers on Parity: Transformers often fail at the "parity" task (counting bits), while RNNs excel. By guiding a Transformer with an RNN, the authors improved its accuracy by 7%.
  • CNNs without Skips: Plain CNNs (without residual connections) were boosted significantly toward ResNet-level performance when guided by a ResNet.

Limitations and Future Directions

While Guidance is a powerful proof-of-concept, it currently faces practical hurdles. The primary limitation is memory overhead; training two networks simultaneously and storing their intermediate activations for CKA calculation is computationally expensive.

Furthermore, while the authors successfully made "untrainable" networks trainable, these guided networks have not yet reached state-of-the-art performance (e.g., an FCN with guidance is still far behind a native ResNet). Future work could involve automating the "mapping" between layers or using Guidance to discover entirely new architectures by treating the architectural prior as a trainable parameter itself. Ultimately, this approach provides a mathematical tool to investigate priors and could eventually help automate architecture design.

Summary updated

BibTeX
@inproceedings{subramaniam2025training,
  author = {Vighnesh Subramaniam and David Mayo and Colin Conwell and Tomaso Poggio and Boris Katz and Brian Cheung and Andrei Barbu},
  title = {{Training the Untrainable: Introducing Inductive Bias via Representational Alignment}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=zvYxXhlQHM},
}
Figure