Memorizing Long-tail Data Can Help Generalization Through Composition
Mo Zhou, Haoyang Ma, Rong Ge
TL;DR
The paper investigates how memorization interacts with compositional generalization under long-tail feature distributions, showing memorization can aid generalization when combined with simple composition. It provides a linear-theory analysis proving that memorization enables correct predictions on unseen feature-combinations and gives out-of-distribution guarantees under power-law feature frequencies, with rates $\lesssim s(\frac{\ln^2 d}{n s})^{1-1/\alpha}$ for $\alpha>0$. Complementary experiments on linear models and simple neural-net architectures demonstrate that composition capability and the benefits of memorization depend on architecture, illustrating practical implications for designing models that generalize via composition. Overall, the work highlights memorization as a potential resource for compositional generalization in long-tail regimes, while acknowledging the need for broader theory and larger-scale nonlinear analyses.
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.
