paper-with-me

홈 › Papers

Efficient Transformers with Dynamic Token Pooling

2022-11-17 · Piotr Nawrot, Jan Chorowski, Adrian Łańcucki, Edoardo M. Ponti

Transformers achieve unrivalled performance in modelling language, but remain inefficient in terms of memory and time complexity. A possible remedy is to reduce the sequence length in the intermediate layers by pooling fixed-length segments of tokens. Nevertheless, natural units of meaning, such as words or phrases, display varying sizes. To address this mismatch, we equip language models with a dynamic-pooling mechanism, which predicts segment boundaries in an autoregressive fashion. We compare several methods to infer boundaries, including end-to-end learning through stochastic re-parameterisation, supervised learning (based on segmentations from subword tokenizers or spikes in conditional entropy), as well as linguistically motivated boundaries. We perform character-level evaluation on texts from multiple datasets and morphologically diverse languages. The results demonstrate that dynamic pooling, which jointly segments and models language, is both faster and more accurate than vanilla Transformers and fixed-length pooling within the same computational budget.

📄 PDF Abstract BibTeX arXiv:2211.09761

Code (1)

piotrnawrot/dynamic-pooling 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Attribute Surrogates Learning and Spectral Tokens Pooling in Transformers for Few-shot Learning

2022-03-17 · CVPR 2022 1 · Yangji He, Weihan Liang, Dongyang Zhao, Hong-Yu Zhou 외

This paper presents new hierarchically cascaded transformers that can improve data efficiency through attribute surrogates learning and spectral tokens pooling. Vision transformers have recently been thought of as a prom…

AttributeFew-Shot Image ClassificationFew-Shot LearningSelf-Supervised Learning

PPT: Token Pruning and Pooling for Efficient Vision Transformers

2023-10-03 · Xinjian Wu, Fanhu Zeng, Xiudong Wang, Xinghao Chen

Vision Transformers (ViTs) have emerged as powerful models in the field of computer vision, delivering superior performance across various vision tasks. However, the high computational complexity poses a significant barr…

Efficient ViTs

Token Pooling in Vision Transformers

2021-10-08 · Dmitrii Marin, Jen-Hao Rick Chang, Anurag Ranjan, Anish Prabhu 외

Despite the recent success in many applications, the high computational requirements of vision transformers limit their use in resource-constrained settings. While many existing methods improve the quadratic complexity o…

Maximizing the Position Embedding for Vision Transformers with Global Average Pooling

2025-02-05 · Wonjun Lee, Bumsub Ham, Suhyun Kim

In vision transformers, position embedding (PE) plays a crucial role in capturing the order of tokens. However, in vision transformer structures, there is a limitation in the expressiveness of PE due to the structure whe…

Position

PSViT: Better Vision Transformer via Token Pooling and Attention Sharing

2021-08-07 · BoYu Chen, Peixia Li, Baopu Li, Chuming Li 외

In this paper, we observe two levels of redundancies when applying vision transformers (ViT) for image recognition. First, fixing the number of tokens through the whole network produces redundant features at the spatial …