Search papers, labs, and topics across Lattice.
This paper introduces a novel method for studying memorization in deep neural networks by utilizing random label prediction heads (RLP-heads) that predict auxiliary random labels from intermediate representations. By interpreting the performance of RLP-heads as an estimate of Rademacher complexity, the authors provide a direct measure of memorization capacity and model performance across various layers. Their findings reveal that reducing memorization can have mixed effects on generalization, challenging the conventional view that overfitting is synonymous with memorization.
Reducing memorization in deep networks can paradoxically enhance or hinder generalization, depending on the context.
We introduce a straightforward yet effective method to empirically study memorization in deep neural networks for classification tasks. Our approach augments each training sample with auxiliary random labels, which are then predicted by a random label prediction head (RLP-head). RLP-heads can be attached at arbitrary depths of a network, predicting random labels from the corresponding intermediate representation and thereby enabling analysis of how memorization capacity evolves across layers. By interpreting the RLP-head performance as an empirical estimate of Rademacher complexity, we obtain a direct measure of both sample-level memorization and model capacity. We leverage this random label accuracy metric to analyze generalization and overfitting in different models and datasets. Building on this approach, we further propose a novel regularization technique based on the output of the RLP-head, which demonstrably reduces memorization. Interestingly, our experiments reveal that reducing memorization can either improve or impair generalization, depending on the dataset and training setup. These findings challenge the traditional assumption that overfitting is equivalent to memorization and suggest new hypotheses to reconcile these seemingly contradictory results. The source code is available at https://github.com/MarlonBecker/RandomLabelHeads