paper-with-me

홈 › Papers

Self-Attention Limits Working Memory Capacity of Transformer-Based Models

2024-09-16 · Dongyu Gong, Hantao Zhang

Recent work on Transformer-based large language models (LLMs) has revealed striking limits in their working memory capacity, similar to what has been found in human behavioral studies. Specifically, these models' performance drops significantly on N-back tasks as N increases. However, there is still a lack of mechanistic interpretability as to why this phenomenon would arise. Inspired by the executive attention theory from behavioral sciences, we hypothesize that the self-attention mechanism within Transformer-based models might be responsible for their working memory capacity limits. To test this hypothesis, we train vanilla decoder-only transformers to perform N-back tasks and find that attention scores gradually aggregate to the N-back positions over training, suggesting that the model masters the task by learning a strategy to pay attention to the relationship between the current position and the N-back position. Critically, we find that the total entropy of the attention score matrix increases as N increases, suggesting that the dispersion of attention scores might be the cause of the capacity limit observed in N-back tasks. Our findings thus offer insights into the shared role of attention in both human and artificial intelligence. Moreover, the limitations of the self-attention mechanism revealed in the current study could inform future efforts to design more powerful model architectures with enhanced working memory capacity and cognitive capabilities.

📄 PDF Abstract BibTeX arXiv:2409.10715

Code (0)

등록된 구현이 없습니다.

Tasks

DecoderPosition

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

A Language Model with Limited Memory Capacity Captures Interference in Human Sentence Processing

2023-10-24 · William Timkey, Tal Linzen

Two of the central factors believed to underpin human sentence processing difficulty are expectations and retrieval from working memory. A recent attempt to create a unified cognitive model integrating these two factors …

Language ModelingLanguage ModellingRetrievalSentence

Multi-matrix Factorization Attention

2024-12-26 · Jingcheng Hu, Houyi Li, Yinmin Zhang, Zili Wang 외

We propose novel attention architectures, Multi-matrix Factorization Attention (MFA) and MFA-Key-Reuse (MFA-KR). Existing variants for standard Multi-Head Attention (MHA), including SOTA methods like MLA, fail to maintai…

Eye Gaze Metrics and Analysis of AOI for Indexing Working Memory towards Predicting ADHD

2019-06-17 · Gavindya Jayawardena, Anne Michalek, Sampath Jayarathna

ADHD is being recognized as a diagnosis which persists into adulthood impacting economic, occupational, and educational outcomes. There is an increased need to accurately diagnose and recommend interventions for this pop…

Diagnosticvalid

Working Memory Capacity of ChatGPT: An Empirical Study

2023-04-30 · Dongyu Gong, Xingchen Wan, Dingmin Wang

Working memory is a critical aspect of both human intelligence and artificial intelligence, serving as a workspace for the temporary storage and manipulation of information. In this paper, we systematically assess the wo…

BenchmarkingLanguage ModelingLanguage ModellingLarge Language Model

Language Hierarchization Provides the Optimal Solution to Human Working Memory Limits

2026-01-06 · Luyao Chen, Weibo Gao, Junjie Wu, Jinshan Wu 외 arxiv

Language is a uniquely human trait, conveying information efficiently by organizing word sequences in sentences into hierarchical structures. A central question persists: Why is human language hierarchical? In this study…