Large Language Models (LLMs) are prevalent in modern applications but often memorize training data, leading to privacy breaches and copyright issues. Existing research has mainly focused on posthoc analyses, such as extracting memorized content or developing memorization metrics, without exploring the underlying architectural factors that contribute to memorization. In this work, we investigate memorization from an architectural lens by analyzing how attention modules at different layers impact its memorization and generalization performance. Using attribution techniques, we systematically intervene in the LLM architecture by bypassing attention modules at specific blocks while keeping other components like layer normalization and MLP transformations intact. We provide theorems analyzing our intervention mechanism from a mathematical view, bounding the difference in layer outputs with and without our attributions. Our theoretical and empirical analyses reveal that attention modules in deeper transformer blocks are primarily responsible for memorization, whereas earlier blocks are crucial for the models generalization and reasoning capabilities. We validate our findings through comprehensive experiments on different LLM families (Pythia and GPTNeo) and five benchmark datasets. Our insights offer a practical approach to mitigate memorization in LLMs while preserving their performance, contributing to safer and more ethical deployment in real world applications.
From Memorization to Creation: Evaluating the Cognitive Depth of LLM-Generated Educational Questions
City University of Hong Kong(香港城市大学);Zhejiang Normal University(浙江师范大学);Squirrel Ai Learning;University of Science and Technology of China(中国科学技术大学);Wuhan University(武汉大学)
Evidence Recomposition and Predictive Context Residualization for Visual Attribution in Multimodal Large Language Models
Shenzhen Campus of Sun Yat-sen University(中山大学深圳校区);Zhongguancun Academy(中关村学院);University of Chinese Academy of Sciences(中国科学院大学);Nanyang Technological University(南洋理工大学);Department of Mechanical Engineering, Imperial College London(伦敦帝国理工学院机械工程系)
Addition in Four Movements: Mapping Layer-wise Information Trajectories in LLMs
Chongqing Normal University(重庆师范大学);College of Computer and Information Science(计算机与信息科学学院);Chongqing Key Lab of Cognitive Intelligence and Intelligent Finance(重庆认知智能与智能金融重点实验室)
Through a Compressed Lens: Investigating The Impact of Quantization on Factual Knowledge Recall
Quality and Usability Lab, Technische Universität Berlin(柏林技术大学质量与可用性实验室);German Research Center for Artificial Intelligence (DFKI)(德国人工智能研究中心);Saarland Informatics Campus(萨尔州信息学院);LMU Munich(慕尼黑大学);Bosch Center for Artificial Intelligence (BCAI)(博世人工智能中心);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心);Centre for European Research in Trusted AI (CERTAIN)(可信人工智能欧洲研究中心);BIFOLD – Berlin Institute for the Foundations of Learning and Data(柏林学习与数据基础研究院);Technical University of Munich(慕尼黑技术大学)