Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

MultiHashFormer: Hash-based Generative Language Models

About

Language models (LMs) represent tokens using embedding matrices that scale linearly with the vocabulary size. To constrain the parameter footprint, prior work proposes hashing many tokens into a single vector within encoder-only models. While this offers parameter efficiency, many-to-one collisions prevent its use in causal LMs. In this paper, we propose MultiHashFormer, a new framework that allows hash-based autoregression. Each token is represented as a unique hash signature, a short sequence of discrete hash IDs, generated by multiple independent hash functions. A Hash Encoder compresses this signature into a single latent vector for processing by a Transformer decoder. Then, a Hash Decoder generates the hash signature of the next token, which is then mapped back to text. We evaluate our approach at the 100M, 1B and 3B parameter scales, demonstrating that MultiHashFormer consistently outperforms standard Transformer LMs across multiple benchmarks. Furthermore, we show that our model handles multilingual vocabulary expansion with a constant parameter footprint without any modifications.

Huiyin Xue, Atsuki Yamaguchi, Nikolaos Aletras• 2026

Related benchmarks

TaskDatasetResultRank
Common Sense ReasoningCOPA
Accuracy71
288
Commonsense ReasoningARC-E--
249
Commonsense ReasoningHellaSwag
Normalized Accuracy42.89
66
Reading ComprehensionReCoRD--
25
Commonsense ReasoningOBQA
Normalized Accuracy34.6
11
Commonsense ReasoningPIQA
Normalized Accuracy68.39
11
Reading ComprehensionRACE
Normalized Accuracy31.39
11
Reading ComprehensionSIQA
Normalized Accuracy41.66
11
Reading ComprehensionSciQ
Normalized Accuracy70.6
11
Language ModelingLAMBADA
Normalized Accuracy37.26
10
Showing 10 of 10 rows

Other info

GitHub

Follow for update