paper-with-me

홈 › Papers

Memory Retrieval in Transformers: Insights from The Encoding Specificity Principle

2026-01-28 · Viet Hung Dinh, Ming Ding, Youyang Qu, Kanchana Thilakarathna arxiv

While explainable artificial intelligence (XAI) for large language models (LLMs) remains an evolving field with many unresolved questions, increasing regulatory pressures have spurred interest in its role in ensuring transparency, accountability, and privacy-preserving machine unlearning. Despite recent advances in XAI have provided some insights, the specific role of attention layers in transformer based LLMs remains underexplored. This study investigates the memory mechanisms instantiated by attention layers, drawing on prior research in psychology and computational psycholinguistics that links Transformer attention to cue based retrieval in human memory. In this view, queries encode the retrieval context, keys index candidate memory traces, attention weights quantify cue trace similarity, and values carry the encoded content, jointly enabling the construction of a context representation that precedes and facilitates memory retrieval. Guided by the Encoding Specificity Principle, we hypothesize that the cues used in the initial stage of retrieval are instantiated as keywords. We provide converging evidence for this keywords-as-cues hypothesis. In addition, we isolate neurons within attention layers whose activations selectively encode and facilitate the retrieval of context-defining keywords. Consequently, these keywords can be extracted from identified neurons and further contribute to downstream applications such as unlearning.

📄 PDF Abstract BibTeX arXiv:2601.20282

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

The Interference Gap: Comparing Retrieval Bounds in Human Memory and RAG Systems

2026-05-09 · Dongxin Guo, Jikun Wu, Siu-Ming Yiu arxiv

How do retrieval bounds compare between human episodic memory and Retrieval-Augmented Generation (RAG) systems under semantic interference? We present a unified signal detection theory (SDT) framework that applies to bot…

Passage Retrieval

Drawing on Memory: Dual-Trace Encoding Improves Cross-Session Recall in LLM Agents

2026-04-14 · Benjamin Stern, Peter Nadel arxiv

LLM agents with persistent memory store information as flat factual records, providing little context for temporal reasoning, change tracking, or cross-session aggregation. Inspired by the drawing effect [3], we introduc…

Memora: A Harmonic Memory Representation Balancing Abstraction and Specificity

2026-02-03 · Menglin Xia, Xuchao Zhang, Shantanu Dixit, Paramaguru Harimurugan 외 arxiv

Agent memory systems must accommodate continuously growing information while supporting efficient, context-aware retrieval for downstream tasks. Abstraction is essential for scaling agent memory, yet it often comes at th…

Semantic Similarity

Spiking Sequence Machines and Transformers

2026-05-01 · Joy Bose arxiv

Sequence learning reduces to similarity-based retrieval over a temporally indexed representation space, a constraint on any sequence model, not a property of a specific architecture. We show that a spiking Sparse Distrib…

Context-Gated Associative Retrieval: From Theory to Transformers

2026-05-08 · Moulik Choraria, Argyrios Gerogiannis, Vidhata Jayaraman, Ankur Mani 외 arxiv

Hopfield networks and their generalizations have established deep connections among biological associative memories, statistical physics, and transformers. Yet most models treat retrieval as a fixed query-to-memory mappi…