paper-with-me

홈 › Papers

Characterizing Verbatim Short-Term Memory in Neural Language Models

2022-10-24 · Kristijan Armeni, Christopher Honey, Tal Linzen

When a language model is trained to predict natural language sequences, its prediction at each moment depends on a representation of prior context. What kind of information about the prior context can language models retrieve? We tested whether language models could retrieve the exact words that occurred previously in a text. In our paradigm, language models (transformers and an LSTM) processed English text in which a list of nouns occurred twice. We operationalized retrieval as the reduction in surprisal from the first to the second list. We found that the transformers retrieved both the identity and ordering of nouns from the first list. Further, the transformers' retrieval was markedly enhanced when they were trained on a larger corpus and with greater model depth. Lastly, their ability to index prior tokens was dependent on learned attention patterns. In contrast, the LSTM exhibited less precise retrieval, which was limited to list-initial tokens and to short intervening texts. The LSTM's retrieval was not sensitive to the order of nouns and it improved when the list was semantically coherent. We conclude that transformers implemented something akin to a working memory system that could flexibly retrieve individual token representations across arbitrary delays; conversely, the LSTM maintained a coarser and more rapidly-decaying semantic gist of prior tokens, weighted toward the earliest items.

📄 PDF Abstract BibTeX arXiv:2210.13569

Code (1)

kristijanarmeni/verbatim-memory-in-nlms 공식 구현 pytorch

Tasks

Language ModellingRetrieval

Methods 이 논문이 사용한 방법론

Tanh Activation 설명 없음
Sigmoid Activation 설명 없음
LSTM An LSTM is a type of recurrent neural network that addresses the vanishing gradient problem in vanilla…

Similar Papers 제목 키워드 기반

Transformer verbatim in-context retrieval across time and scale

2024-11-11 · Kristijan Armeni, Marko Pranjić, Senja Pollak

To predict upcoming text, language models must in some cases retrieve in-context information verbatim. In this report, we investigated how the ability of language models to retrieve arbitrary in-context nouns developed d…

Retrieval

From Verbatim to Gist: Distilling Pyramidal Multimodal Memory via Semantic Information Bottleneck for Long-Horizon Video Agents

2026-03-02 · Niu Lian, Yuting Wang, Hanshu Yao, Jinpeng Wang 외 arxiv

While multimodal large language models have demonstrated impressive short-term reasoning, they struggle with long-horizon video understanding due to limited context windows and static memory mechanisms that fail to mirro…

Part-of-Speech Tagging with Bidirectional Long Short-Term Memory Recurrent Neural Network

2015-10-21 · Peilu Wang, Yao Qian, Frank K. Soong, Lei He 외

Bidirectional Long Short-Term Memory Recurrent Neural Network (BLSTM-RNN) has been shown to be very effective for tagging sequential data, e.g. speech utterances or handwritten documents. While word embedding has been de…

Part-Of-Speech TaggingPOSPOS Tagging

Spatial Metaphors for LLM Memory: A Critical Analysis of the MemPalace Architecture

2026-04-23 · Robin Dey, Panyanon Viradecha arxiv

MemPalace is an open-source AI memory system that applies the ancient method of loci (memory palace) spatial metaphor to organize long-term memory for large language models; launched in April 2026, it accumulated over 47…

A BiLSTM-CNN based Multitask Learning Approach for Fiber Fault Diagnosis

2022-02-16 · Khouloud Abdelli, Helmut Griesser, Carsten Tropschug, Stephan Pachnicke

A novel multitask learning approach based on stacked bidirectional long short-term memory (BiLSTM) networks and convolutional neural networks (CNN) for detecting, locating, characterizing, and identifying fiber faults is…

Fault Diagnosis