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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Ebrahimi, MohammadReza, Panchal, Sunny, Memisevic, Roland
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916352814481408
author Ebrahimi, MohammadReza
Panchal, Sunny
Memisevic, Roland
author_facet Ebrahimi, MohammadReza
Panchal, Sunny
Memisevic, Roland
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2408_05506
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Your Context Is Not an Array: Unveiling Random Access Limitations in Transformers
Ebrahimi, MohammadReza
Panchal, Sunny
Memisevic, Roland
Computation and Language
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.
title Your Context Is Not an Array: Unveiling Random Access Limitations in Transformers
topic Computation and Language
url https://arxiv.org/abs/2408.05506