Your Context Is Not an Array: Unveiling Random Access Limitations in Transformers

AmazUtah_NLP at SemEval-2024 Task 9: A MultiChoice Question Answering System for Commonsense Defying Reasoning


[Submitted on 10 Aug 2024]

View a PDF of the paper titled Your Context Is Not an Array: Unveiling Random Access Limitations in Transformers, by MohammadReza Ebrahimi and 2 other authors

View PDF
HTML (experimental)

Abstract:Despite their recent successes, Transformer-based large language models show surprising failure modes. A well-known example of such failure modes is their inability to length-generalize: solving problem instances at inference time that are longer than those seen during training. In this work, we further explore the root cause of this failure by performing a detailed analysis of model behaviors on the simple parity task. Our analysis suggests that length generalization failures are intricately related to a model’s inability to perform random memory accesses within its context window. We present supporting evidence for this hypothesis by demonstrating the effectiveness of methodologies that circumvent the need for indexing or that enable random token access indirectly, through content-based addressing. We further show where and how the failure to perform random memory access manifests through attention map visualizations.

Submission history

From: MohammadReza Ebrahimi [view email]
[v1]
Sat, 10 Aug 2024 10:12:09 UTC (1,760 KB)



Source link
lol

By stp2y

Leave a Reply

Your email address will not be published. Required fields are marked *

No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.