CLAIMar 12, 2024

Beyond Memorization: The Challenge of Random Memory Access in Language Models

arXiv:2403.07805v330 citationsh-index: 7Has CodeACL
Originality Incremental advance
AI Analysis

This addresses a key bottleneck in language models for knowledge-intensive tasks, though it is incremental in improving memory access mechanisms.

The paper investigates whether language models can access memorized content randomly or only sequentially, finding that they struggle with random access but techniques like recitation improve it, leading to notable gains in open-domain question answering.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes