Chorus: Shared N-gram Embeddings with Layer-wise Adaptation

Hugging Face Daily Papers Papers

Summary

Chorus introduces shared n-gram embeddings with layer-wise adaptation, reducing table size by ~87% while outperforming Engram and FactorEngram, and pairing with the Ember optimizer to cut optimizer-state memory by 99.2% vs AdamW.

Language models can gain capacity at little computational cost from n-gram embedding tables: large tables of learned vectors for short sequences of consecutive tokens, which are looked up and added to the model's input or to its intermediate layers. Recent designs commonly use a separate n-gram embedding table for each layer, which makes the tables costly in memory and prevents layers from sharing what they learn. Sharing a single table, however, gives every layer the same embedding and leaves no room for layer-wise preferences, and it performs poorly in practice. We propose Chorus, in which one set of n-gram embedding tables serves the whole network and every layer reads it in its own way. Each layer maps the refined embedding through its own projection layer, after rescaling its components by factors computed from its current hidden state. Chorus matches the quality of existing n-gram methods with 87% smaller tables: with 1.2B table parameters it predicts text better than FactorEngram and DeepSeek's Engram do with 9.6B. It outperforms Engram, TN-gram and FactorEngram in every setting where we compared them, across table sizes from 20M to 9.6B parameters. We also show that the recently proposed memory-efficient optimizer Ember works well with Chorus, saving 99.2% of table-optimizer memory compared with AdamW without degrading training performance. These results enable further scaling of n-gram embedding tables along the table-size axis by reducing memory use and allowing shared knowledge to be reused across layers.
Original Article
View Cached Full Text

Cached at: 11/19/26, 11:29 AM

Paper page - Chorus: Shared N-gram Embeddings with Layer-wise Adaptation

Source: https://huggingface.co/papers/2611.23386 N-gram embedding tables improve language models by storing learned representations of short token sequences, but recent designs commonly use separate tables at different layers, consuming substantial memory and preventing sharing. Chorus instead looks up token and n-gram embeddings once, combines and refines them, and shares the resulting representations across the input and intermediate layers. Each layer adapts these shared representations to its own needs.

Experiments on ClimbMix and FineWeb show improvements across model sizes. In our table-size comparison, Chorus with 1.2 billion table parameters outperforms Engram and FactorEngram with 9.6 billion, using roughly 87% smaller tables. Training these tables with the Ember optimizer also reduces optimizer-state memory by 99.2% compared with AdamW while preserving performance. These results allow n-gram tables to grow within a smaller memory budget while reusing knowledge across layers.

Similar Articles

Engram gone wild! 2b model update...

Reddit r/LocalLLaMA

This article provides an update on the Engram model, detailing its 2.6b parameter architecture with a large Engram table and initial training progress at 100m tokens, showing improved completions with context-aware data offloading.