[Paper Review] Revisiting Model Stitching to Compare Neural Representations
This paper revisits model stitching as a method to compare neural network representations, demonstrating that well-trained models—even when trained with different objectives (supervised vs. self-supervised), data scales, widths, or training times—can be stitched together with minimal performance drop. The key contribution is empirical evidence for 'stitching connectivity' and the 'more is better' principle, showing that better representations are modular and interoperable across architectures and training regimes.
We revisit and extend model stitching (Lenc & Vedaldi 2015) as a methodology to study the internal representations of neural networks. Given two trained and frozen models $A$ and $B$, we consider a "stitched model'' formed by connecting the bottom-layers of $A$ to the top-layers of $B$, with a simple trainable layer between them. We argue that model stitching is a powerful and perhaps under-appreciated tool, which reveals aspects of representations that measures such as centered kernel alignment (CKA) cannot. Through extensive experiments, we use model stitching to obtain quantitative verifications for intuitive statements such as "good networks learn similar representations'', by demonstrating that good networks of the same architecture, but trained in very different ways (e.g.: supervised vs. self-supervised learning), can be stitched to each other without drop in performance. We also give evidence for the intuition that "more is better'' by showing that representations learnt with (1) more data, (2) bigger width, or (3) more training time can be "plugged in'' to weaker models to improve performance. Finally, our experiments reveal a new structural property of SGD which we call "stitching connectivity'', akin to mode-connectivity: typical minima reached by SGD can all be stitched to each other with minimal change in accuracy.
Motivation & Objective
- To investigate whether well-performing neural networks learn similar internal representations despite different training setups.
- To test the hypothesis that 'good' representations are modular and can be interchanged between models.
- To evaluate whether representations improve consistently with more data, width, or training time, and whether these can be 'plugged in' to weaker models.
- To explore the structural properties of SGD training dynamics through the lens of model stitching.
Proposed method
- Train two frozen models A and B with different objectives, data, width, or training time.
- Create a stitched model by connecting the bottom layers of A to the top layers of B via a trainable adapter layer.
- Train only the adapter layer while keeping all other weights frozen, evaluating performance on downstream tasks.
- Use the performance drop (stitching penalty) as a measure of representation compatibility.
- Systematically vary the stitching layer (early, mid, or late in the network) to assess layer-wise sample complexity.
- Compare results across different architectures, data regimes, and training durations to assess modularity and transferability.
Experimental results
Research questions
- RQ1Can models trained with different objectives (e.g., supervised vs. self-supervised) be stitched together with minimal performance degradation?
- RQ2Does improving training data size, model width, or training time lead to representations that can be 'plugged in' to weaker models to improve performance?
- RQ3Are representations from different training runs (different random seeds) compatible when stitched, indicating structural similarity?
- RQ4Do representations from earlier training stages remain compatible with those from later stages, suggesting stable learning dynamics?
- RQ5Is there a structural property of SGD training such that minima are 'stitching connected'—i.e., can be linked via low-cost adapters?
Key findings
- Models trained with different objectives (e.g., supervised vs. self-supervised on ImageNet) can be stitched at any layer with minimal performance drop, supporting the 'Anna Karenina' hypothesis of shared representations.
- Representations from models trained on more data (e.g., 100K vs. 5K samples) can be stitched into a smaller model, improving accuracy by up to 2% without retraining.
- Wider models (2× width) can be stitched into narrower ones (0.25× width), improving performance, but not vice versa, indicating a directional modularity in representation quality.
- Early layers of ResNet-18 show faster convergence and are compatible with representations from later training stages, suggesting stable learning dynamics.
- Stitching performance degrades rapidly when stitching at mid-network layers, indicating that each layer has its own sample complexity, with early layers being more robust.
- Freezing first and last three layers trained on only 5K samples and fine-tuning the rest with full data recovers ~98% of the original network's accuracy, validating sample efficiency in layer-wise training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.