paper-with-me

홈 › Papers

Transformer Working Memory Enables Regular Language Reasoning and Natural Language Length Extrapolation

2023-05-05 · Ta-Chung Chi, Ting-Han Fan, Alexander I. Rudnicky, Peter J. Ramadge

Unlike recurrent models, conventional wisdom has it that Transformers cannot perfectly model regular languages. Inspired by the notion of working memory, we propose a new Transformer variant named RegularGPT. With its novel combination of Weight-Sharing, Adaptive-Depth, and Sliding-Dilated-Attention, RegularGPT constructs working memory along the depth dimension, thereby enabling efficient and successful modeling of regular languages such as PARITY. We further test RegularGPT on the task of natural language length extrapolation and surprisingly find that it rediscovers the local windowed attention effect deemed necessary in prior work for length extrapolation.

📄 PDF Abstract BibTeX arXiv:2305.03796

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Test 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Multi-Head Attention 설명 없음

Similar Papers 제목 키워드 기반

Complexity of Symbolic Representation in Working Memory of Transformer Correlates with the Complexity of a Task

2024-06-20 · Alsu Sagirova, Mikhail Burtsev

Even though Transformers are extensively used for Natural Language Processing tasks, especially for machine translation, they lack an explicit memory to store key concepts of processed texts. This paper explores the prop…

DecoderDiversityMachine TranslationTranslation

TransformerFAM: Feedback attention is working memory

2024-04-14 · Dongseong Hwang, Weiran Wang, Zhuoyuan Huo, Khe Chai Sim 외

While Transformers have revolutionized deep learning, their quadratic attention complexity hinders their ability to process infinitely long inputs. We propose Feedback Attention Memory (FAM), a novel Transformer architec…

Memory Mosaics

2024-05-10 · Jianyu Zhang, Niklas Nolte, Ranajoy Sadhukhan, Beidi Chen 외

Memory Mosaics are networks of associative memories working in concert to achieve a prediction task of interest. Like transformers, memory mosaics possess compositional capabilities and in-context learning capabilities. …

DisentanglementIn-Context LearningLanguage ModelingLanguage Modelling

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' perform…

DecoderPosition

In-context superposition: human-like working memory interference in large language models

2026-04-01 · Hua-Dong Xiong, Li Ji-An, Jiaqi Huang, Robert C. Wilson 외 arxiv

Intelligent systems must maintain and manipulate task-relevant information online to adapt to dynamic environments. This capacity, known as working memory, is fundamental to human reasoning. Yet, human working memory is …