paper-with-me

Papers

HashFormers: Towards Vocabulary-independent Pre-trained Transformers

2022-10-14 · Huiyin Xue, Nikolaos Aletras

Transformer-based pre-trained language models are vocabulary-dependent, mapping by default each token to its corresponding embedding. This one-to-one mapping results into embedding matrices that occupy a lot of memory (i.e. millions of parameters) and grow linearly with the size of the vocabulary. Previous work on on-device transformers dynamically generate token embeddings on-the-fly without embedding matrices using locality-sensitive hashing over morphological information. These embeddings are subsequently fed into transformer layers for text classification. However, these methods are not pre-trained. Inspired by this line of work, we propose HashFormers, a new family of vocabulary-independent pre-trained transformers that support an unlimited vocabulary (i.e. all possible tokens in a corpus) given a substantially smaller fixed-sized embedding matrix. We achieve this by first introducing computationally cheap hashing functions that bucket together individual tokens to embeddings. We also propose three variants that do not require an embedding matrix at all, further reducing the memory requirements. We empirically demonstrate that HashFormers are more memory efficient compared to standard pre-trained transformers while achieving comparable predictive performance when fine-tuned on multiple text classification tasks. For example, our most efficient HashFormer variant has a negligible performance degradation (0.4\% on GLUE) using only 99.1K parameters for representing the embeddings compared to 12.3-38M parameters of state-of-the-art models.

📄 PDF Abstract BibTeX arXiv:2210.07904

Code (0)

등록된 구현이 없습니다.

Tasks

text-classificationText Classification

Similar Papers 제목 키워드 기반

Task Addition and Weight Disentanglement in Closed-Vocabulary Models

2025-11-18 · Adam Hazimeh, Alessandro Favero, Pascal Frossard arxiv

Task arithmetic has recently emerged as a promising method for editing pre-trained \textit{open-vocabulary} models, offering a cost-effective alternative to standard multi-task fine-tuning. However, despite the abundance…

Image Classification

MAVISEG: Manifold Propagation and Visual Prototypes for Zero-Shot Open-Vocabulary Segmentation in Diffusion Transformers

2026-08-06 · Rajatsubhra Chakraborty, Xujun Che, Ritabrata Chakraborty, Xi Niu 외 arxiv

Text-to-image diffusion transformers learn about objects and scenes by learning to generate them, making them strong candidates for training-free zero-shot open-vocabulary semantic segmentation. State-of-the-art attribut…

Semantic Segmentation

GIVT: Generative Infinite-Vocabulary Transformers

2023-12-04 · Michael Tschannen, Cian Eastwood, Fabian Mentzer

We introduce Generative Infinite-Vocabulary Transformers (GIVT) which generate vector sequences with real-valued entries, instead of discrete tokens from a finite vocabulary. To this end, we propose two surprisingly simp…

Conditional Image GenerationDecoderDepth EstimationImage Generation+1

Fine-Tuning Transformers: Vocabulary Transfer

2021-12-29 · Vladislav Mosin, Igor Samenko, Alexey Tikhonov, Borislav Kozlovskii 외

Transformers are responsible for the vast majority of recent advances in natural language processing. The majority of practical natural language processing applications of these models are typically enabled through trans…

Transfer Learning

QbyE-MLPMixer: Query-by-Example Open-Vocabulary Keyword Spotting using MLPMixer

2022-06-23 · Jinmiao Huang, Waseem Gharbieh, Qianhui Wan, Han Suk Shim 외

Current keyword spotting systems are typically trained with a large amount of pre-defined keywords. Recognizing keywords in an open-vocabulary setting is essential for personalizing smart device interaction. Towards this…

Keyword Spotting