Despite their wide adoption, the underlying training and memorization dynamics of very large language models is not well understood. We empirically study exact memorization in causal and masked language modeling, across model sizes and throughout the training process. We measure the effects of dataset size, learning rate, and model size on memorization, finding that larger language models memorize training data faster across all settings. Surprisingly, we show that larger models can memorize a larger portion of the data before over-fitting and tend to forget less throughout the training process. We also analyze the memorization dynamics of different parts of speech and find that models memorize nouns and numbers first; we hypothesize and provide empirical evidence that nouns and numbers act as a unique identifier for memorizing individual training examples. Together, these findings present another piece of the broader puzzle of trying to understand what actually improves as models get bigger.
翻译:尽管广泛采用,但非常大型语言模型的基本培训和记忆动态并未得到很好地理解。我们实证地研究因果和蒙面语言模型的精确记忆,跨模型规模和整个培训过程。我们测量数据集大小、学习率和模型大小对记忆过程的影响,发现较大的语言模型在所有环境中都更快地对培训数据进行记忆。令人惊讶的是,我们显示,较大的模型在过度配置之前可以将数据中的较大部分记忆起来,在整个培训过程中往往较少忘记。我们还分析不同部分演讲的记忆动态,发现模型将名词和数字混为一谈;我们先虚度和提供实证证据,证明无名和数字作为记忆个人培训实例的独特识别符作用。这些发现共同展示了另一个更广泛的难题,即试图了解哪些实际改进的模型变得更大。