Guillotine Regularization: Why removing layers is needed to improve generalization in Self-Supervised Learning
Florian Bordes, Randall Balestriero, Quentin Garrido, Adrien Bardes, Pascal Vincent
TL;DR
The paper tackles the paradoxical finding that removing the projection head after self-supervised training often yields superior downstream performance, highlighting a misalignment between pretraining objectives and downstream tasks. It formalizes Guillotine Regularization (GR) as evaluating downstream readouts on an intermediate trunk rather than the full last layers, and conducts extensive experiments across supervised and SSL setups to show that the optimal cut depends on training, data, and task. Key findings include that trunk and head readouts are not consistently predictive of each other, and that aligning the pretext and downstream tasks can reduce or even eliminate the need for a projector. These results have practical implications for SSL evaluation practices and point toward alignment-aware training and augmentation strategies to improve generalization.
Abstract
One unexpected technique that emerged in recent years consists in training a Deep Network (DN) with a Self-Supervised Learning (SSL) method, and using this network on downstream tasks but with its last few projector layers entirely removed. This trick of throwing away the projector is actually critical for SSL methods to display competitive performances on ImageNet for which more than 30 percentage points can be gained that way. This is a little vexing, as one would hope that the network layer at which invariance is explicitly enforced by the SSL criterion during training (the last projector layer) should be the one to use for best generalization performance downstream. But it seems not to be, and this study sheds some light on why. This trick, which we name Guillotine Regularization (GR), is in fact a generically applicable method that has been used to improve generalization performance in transfer learning scenarios. In this work, we identify the underlying reasons behind its success and show that the optimal layer to use might change significantly depending on the training setup, the data or the downstream task. Lastly, we give some insights on how to reduce the need for a projector in SSL by aligning the pretext SSL task and the downstream task.
