Memorizing Long-tail Data Can Help Generalization Through Composition
Organizations: University of Washington · Duke University
Abstract
Deep learning has led researchers to rethink the relationship between memorization and generalization. In many settings, memorization does not hurt generalization due to implicit regularization and may help by memorizing long-tailed examples. In this paper, we consider the synergy between memorization and simple composition -- the ability to make correct prediction on a combination of long-tailed features. Theoretically, we show that for a linear setting, memorization together with composition can help the model make correct predictions on rare test examples that require a combination of long-tailed features, even if such combinations were never observed in the training data. Experiments on neural network architecture on simple data show that the theoretical insight extends beyond the linear setting, and we further observe that the composition capability of the model depends on its architecture.
Figures & tables
| Model | WD = 0 (Memorization) | WD = 0.5 (No Memorization) |
| Sum | Test/Train Loss: 0.1760/0.0004 | Test/Train Loss: 2.8744/0.0245 |
| Linear | Test/Train Loss: 0.1662/0.0004 | Test/Train Loss: 1.5539/0.0505 |
| 2-layer | Test/Train Loss: 0.1351/0.0010 | Test/Train Loss: 0.6447/0.0264 |
| Cross-channel | Test/Train Loss: 22.9671/0.0023 | Test/Train Loss: 23.6506/0.0375 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Memorization (WD = 0) | No Memorization (WD = 0.5) |
| Sum | Test: 0.0697 Train: 0.0002 | Test: 0.8266 Train: 0.0538 |
| Linear | Test: 0.1171 Train: 0.0006 | Test: 0.9571 Train: 0.0715 |
| 2-Layer | Test: 0.0650 Train: 0.0013 | Test: 0.6579 Train: 0.0196 |
| Original Index Containing ‘9’ | Memorization Score |
| 4362 | 80.38 |
| 21445 | 80.28 |
| 9390 | 61.33 |
| 21302 | 55.62 |
| 19494 | 55.50 |
| 29286 | 49.01 |
Neural Network Generalization
Neural network generalization studies why trained models perform well on unseen data and how architecture, data, and training shape that ability.
See all 303 papers