Adaptive Large Language Models via Attention Shortcuts
Abstract
Transformer architectures are the backbone of the modern AI revolution. However, these models simply stack the same blocks in dozens of layers and process 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 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.
BibTeX
@inproceedings{icassp2025_adaptivelargelan,
title = {Adaptive Large Language Models via Attention Shortcuts},
author = {Prateek Verma and Mert Pilanci},
booktitle = {ICASSP 2025},
year = {2025}
}