vix.ing · top · new · best · stats

Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformers

2024/06/26 by Yibo Jiang, Goutham Rajendran, Jiang, Yibo +5 · 1 voice · 6 citations
Computer Science · Engineering · Mathematics · Neuroscience · Psychology · #Artificial intelligence #Association (psychology) #Associative property #Bidirectional associative memory #Computer science #Content-addressable memory #Dream #Electrical engineering #Engineering #Mathematics #Neural Networks and Applications #Neuroscience #Psychology #Psychotherapist #Pure mathematics #Transformer #cs.CL #cs.LG #stat.ML

paper · pdf · doi:10.48550/arxiv.2406.18400

published in arXiv (Cornell University) (Cornell University)

openalex publication_date 2024/06/26 · arxiv published 2024/06/26 · openalex created_date 2024/06/28 · arxiv updated 2024/11/27 · openalex updated_date 2026/08/01

Abstract

Large Language Models (LLMs) have the capacity to store and recall facts. Through experimentation with open-source models, we observe that this ability to retrieve facts can be easily manipulated by changing contexts, even without altering their factual meanings. These findings highlight that LLMs might behave like an associative memory model where certain tokens in the contexts serve as clues to retrieving facts. We mathematically explore this property by studying how transformers, the building blocks of LLMs, can complete such memory tasks. We study a simple latent concept association problem with a one-layer transformer and we show theoretically and empirically that the transformer gathers information using self-attention and uses the value matrix for associative memory.

Cited by

Discussions

Related