Learning arguably involves the discovery and memorization of abstract rules. The aim of this paper is to study associative memory mechanisms. Our model is based on high-dimensional matrices consisting of outer products of embeddings, which relates to the inner layers of transformer language models. We derive precise scaling laws with respect to sample size and parameter size, and discuss the statistical efficiency of different estimators, including optimization-based algorithms. We provide extensive numerical experiments to validate and interpret theoretical results, including fine-grained visualizations of the stored memory associations.
翻译:学习过程涉及抽象规则的发现与记忆。本文旨在研究关联记忆机制。我们的模型基于由嵌入向量的外积构成的高维矩阵,这与Transformer语言模型的内部层相关。我们推导了关于样本量和参数量的精确规模定律,并讨论了不同估计器(包括基于优化算法)的统计效率。我们通过大量数值实验验证并解释了理论结果,包括对存储记忆关联的细粒度可视化分析。