Beyond Memorization: The Challenge of Random Memory Access in Language Models
Sea AI Lab(Sea AI实验室);National University of Singapore(新加坡国立大学);Carnegie Mellon University(卡内基梅隆大学);Institute of Computing Technology, CAS(中国科学院计算技术研究所)
Tongyao Zhu, Qian Liu, Liang Pang, Zhengbao Jiang, Min-Yen Kan, Min Lin
Recent developments in Language Models (LMs) have shown their effectiveness in NLP tasks, particularly in knowledge-intensive tasks. However, the mechanisms underlying knowledge storage and memory access within their parameters remain elusive. In this paper, we investigate whether a generative LM (e.g., GPT-2) is able to access its memory sequentially or randomly. Through carefully-designed synthetic tasks, covering the scenarios of full recitation, selective recitation and grounded question answering, we reveal that LMs manage to sequentially access their memory while encountering challenges in randomly accessing memorized content. We find that techniques including recitation and permutation improve the random memory access capability of LMs. Furthermore, by applying this intervention to realistic scenarios of open-domain question answering, we validate that enhancing random access by recitation leads to notable improvements in question answering. The code to reproduce our experiments can be found at https://github.com/sail-sg/lm-random-memory-access.
The Reasoning-Memorization Interplay in Language Models Is Mediated by a Single Direction
New York University(纽约大学);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);McGill University(麦吉尔大学);Max Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);University of Toronto(多伦多大学);Vector Institute(矢量研究所)
RePCS: Diagnosing Data Memorization in LLM-Powered Retrieval-Augmented Generation
1 Institute of Information Technology, Vietnam Academy of Science;2 Institute of Information Technology, Vietnam Academy of Science;3 Department of Mathematics, Computer Science \& Physics, Rockford University, Illinois, United States Email;4 Department of Information Technology, Dong A University, Da Nang, Vietnam Email
Black-Box Membership Inference Attack for LVLMs via Prior Knowledge-Calibrated Memory Probing
Department of Electronic Engineering, Tsinghua University(清华大学电子工程系);School of Computer Science, Beijing University of Posts and Telecommunications(北京邮电大学计算机学院);College of Computer Science and Technology, Xinjiang University(新疆大学计算机科学与技术学院)
Generalization or Memorization: Data Contamination and Trustworthy Evaluation for Large Language Models
Key Laboratory of High Confidence Software Technologies (Peking University)(高可信软件技术重点实验室(北京大学));School of Computer Science, Peking University(北京大学计算机学院);Beijing Institute of Control Engineering(北京控制工程研究所);China Academy of Space Technology(中国空间技术研究院)