Adaptive Large Language Models By Layerwise Attention Shortcuts

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Verma, Prateek, Pilanci, Mert
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913622359277568
author Verma, Prateek
Pilanci, Mert
author_facet Verma, Prateek
Pilanci, Mert
contents Transformer architectures are the backbone of the modern AI revolution. However, they are based on simply stacking the same blocks in dozens of layers and processing information sequentially from one block to another. In this paper, we propose to challenge this and introduce adaptive computations for LLM-like setups, which allow the final layer to attend to all of the intermediate layers as it deems fit through the attention mechanism, thereby introducing computational \textbf{attention shortcuts}. These shortcuts can thus make the architecture depth and context adaptive. We showcase four different datasets, namely acoustic tokens, natural language, and symbolic music, and we achieve superior performance for GPT-like architecture. We give evidence via attention maps that the models learn complex dependencies across layers that are adaptive in context and depth depending on the input tokens.
format Preprint
id arxiv_https___arxiv_org_abs_2409_10870
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Adaptive Large Language Models By Layerwise Attention Shortcuts
Verma, Prateek
Pilanci, Mert
Computation and Language
Artificial Intelligence
Machine Learning
Sound
Audio and Speech Processing
Transformer architectures are the backbone of the modern AI revolution. However, they are based on simply stacking the same blocks in dozens of layers and processing information sequentially from one block to another. In this paper, we propose to challenge this and introduce adaptive computations for LLM-like setups, which allow the final layer to attend to all of the intermediate layers as it deems fit through the attention mechanism, thereby introducing computational \textbf{attention shortcuts}. These shortcuts can thus make the architecture depth and context adaptive. We showcase four different datasets, namely acoustic tokens, natural language, and symbolic music, and we achieve superior performance for GPT-like architecture. We give evidence via attention maps that the models learn complex dependencies across layers that are adaptive in context and depth depending on the input tokens.
title Adaptive Large Language Models By Layerwise Attention Shortcuts
topic Computation and Language
Artificial Intelligence
Machine Learning
Sound
Audio and Speech Processing
url https://arxiv.org/abs/2409.10870