Puls Dane publiczne, aktualizowane automatycznie
arXiv – nowe publikacje publikacja

Low-Bit N-Gram Embeddings for Language Models

[Przetwarzanie języka] Autorzy: Stephen Chung, Wenyu Du

Many recent open-weight language models use n-gram embedding tables to improve performance. These tables store learned representations of short token sequences, such as pairs or triples of consecutive tokens, which the model retrieves during processing. However, they can require substantial memory: DeepSeek-V4.1-Flash, for example, allocates 196 billion parameters to its Engram n-gram memory. We therefore investigate whether this memory cost can be reduced while preserving the performance improvement that the tables provide. We propose storing n-gram embeddings at low precision and systematically investigate different quantization methods and bit allocations across tables. Across nanochat-, Llama-, and GPT-2-family models trained from scratch, four-bit tables save approximately 75% of table memory while preserving more than 99% of the validation-loss improvement from adding the tables. …

Kategoria arxiv
cs.CL
Kategoria
Przetwarzanie języka
Pdf
https://arxiv.org/pdf/2610.31646v1

Otwórz oryginał w źródle ↗

Więcej z tego źródła

Wszystkie