[Paper Review] REPAIR: REnormalizing Permuted Activations for Interpolation Repair
This paper introduces REPAIR, a method that mitigates variance collapse in linearly interpolated deep neural networks by reweighting preactivations, enabling significantly lower loss barriers between SGD solutions. REPAIR reduces interpolation barriers by 60%-100% across architectures, achieving 74% barrier reduction on ResNet50/ImageNet and 90% on ResNet18/CIFAR-10 when combined with neuron alignment.
In this paper we look into the conjecture of Entezari et al. (2021) which states that if the permutation invariance of neural networks is taken into account, then there is likely no loss barrier to the linear interpolation between SGD solutions. First, we observe that neuron alignment methods alone are insufficient to establish low-barrier linear connectivity between SGD solutions due to a phenomenon we call variance collapse: interpolated deep networks suffer a collapse in the variance of their activations, causing poor performance. Next, we propose REPAIR (REnormalizing Permuted Activations for Interpolation Repair) which mitigates variance collapse by rescaling the preactivations of such interpolated networks. We explore the interaction between our method and the choice of normalization layer, network width, and depth, and demonstrate that using REPAIR on top of neuron alignment methods leads to 60%-100% relative barrier reduction across a wide variety of architecture families and tasks. In particular, we report a 74% barrier reduction for ResNet50 on ImageNet and 90% barrier reduction for ResNet18 on CIFAR10.
Motivation & Objective
- To investigate why neuron alignment alone fails to achieve low-barrier linear interpolation in standard deep networks.
- To identify and address the root cause of performance degradation in interpolated networks, specifically variance collapse in activations.
- To develop a general-purpose correction method that restores performance in interpolated models without requiring architectural changes like LayerNorm.
- To validate that REPAIR enables low-barrier connectivity in standard BatchNorm networks, supporting the conjecture of Entezari et al. (2021) on permutation-invariant interpolation.
- To demonstrate practical benefits of REPAIR in model merging, ensembling, and fine-tuning on real-world benchmarks.
Proposed method
- REPAIR addresses variance collapse by reweighting the preactivations of interpolated networks using a learned scaling factor per layer.
- The method applies a normalization-like correction to the preactivation outputs of each layer in the interpolated network, restoring activation variance.
- REPAIR is applied post-alignment, after permuting hidden units of one network to match the other, and before evaluating the interpolated model.
- The scaling factor is computed based on the statistics of the preactivations in the interpolated network, effectively reversing the collapse observed during interpolation.
- The approach generalizes the idea of resetting BatchNorm statistics in averaged models, extending it to interpolated models with permuted weights.
- REPAIR is compatible with various normalization layers, including BatchNorm and LayerNorm, and works across different network widths and depths.
Experimental results
Research questions
- RQ1Why do neuron alignment methods fail to achieve low-barrier linear interpolation in standard deep networks despite their theoretical promise?
- RQ2What is the underlying mechanism causing performance degradation in interpolated networks, and how can it be systematically corrected?
- RQ3Can a post-processing correction to interpolated networks restore performance without architectural modifications?
- RQ4Does REPAIR enable low-barrier connectivity in standard BatchNorm networks, resolving inconsistencies between prior works using LayerNorm?
- RQ5Can REPAIR improve practical applications like model ensembling and constructive merging of models trained on disjoint data splits?
Key findings
- REPAIR reduces the barrier to interpolation by 74% for ResNet50 on ImageNet, improving from below 1% to 56.5% accuracy.
- For ResNet18 on CIFAR-10, REPAIR achieves a 90% barrier reduction, lowering the loss barrier from 16% to 1.5%.
- The method effectively mitigates variance collapse in interpolated networks, restoring activation variance to near-original levels.
- REPAIR enables low-barrier connectivity in standard BatchNorm networks, which previously required LayerNorm to achieve similar results.
- In split-data training, REPAIRed interpolations outperform both endpoints on the full CIFAR-100 test set, achieving a test loss of 1.30 at α=0.3, compared to 1.73 in prior work.
- The performance improvement is consistent across architectures, with barrier reduction ranging from 60% to 100% across different network widths and depths.
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.