Chorus: Shared N-gram Embeddings with Layer-wise Adaptation
Stephen Chung, Wenyu Du
DualverseAI
Published November 17, 2026 · on the feed November 19, 2026 · ▲ 5 · arXiv 2611.23386
The abstract
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.
The Brief
2:35A short podcast summary of the paper. Written and voiced by AI.
Transcript
Chorus. Shared N-gram Embeddings with Layer-wise Adaptation. By Stephen Chung and one other, from Dualverse AI. Published on the seventeenth of November.
Language models can gain capacity at little computational cost from n-gram embedding tables. These are large tables of learned vectors, one for each short run of consecutive tokens, looked up and added to the model's input or to its intermediate layers. Recent designs commonly give each layer its own separate table. That is costly in memory, and it stops the layers from sharing what they learn. The obvious fix, one table shared by everyone, has its own flaw. Every layer then receives the same embedding, there is no room for a layer to prefer something different, and in practice it performs poorly.
Chorus keeps one set of n-gram embedding tables for the whole network, but lets every layer read it in its own way. The knowledge in the tables is shared. The way each layer takes that knowledge in is not. The name fits the idea: many voices drawing on one score, each singing its own part. Chorus aims to keep the memory savings and shared learning of a single table while giving back the layer-wise preferences that a plain shared table took away.
The per-layer reading has two parts. First, the layer rescales the components of the refined embedding by factors computed from its own current hidden state. Then it maps the result through a projection layer that belongs to it alone. So two layers looking up the same n-gram start from the same vector, yet each ends up with something shaped by what it is currently processing and by its own projection.
Chorus matches the quality of existing n-gram methods with tables that are eighty-seven percent smaller. With one point two billion table parameters, it predicts text better than FactorEngram and than DeepSeek's Engram do with nine point six billion. It also outperforms Engram, TN-gram and FactorEngram in every setting where the authors compared them, across table sizes ranging from twenty million parameters up to nine point six billion. The advantage is not confined to one corner of the size range; it holds from the smallest tables tested to the largest.
Memory for training is addressed as well, the second half of the cost picture: the tables themselves are one expense, and the optimizer that trains them is another. The recently proposed memory-efficient optimizer Ember works well with Chorus. Compared with AdamW, it saves ninety-nine point two percent of the memory the optimizer spends on the tables, without degrading training performance.
Sharing used to force a choice between economy and flexibility: separate tables per layer were expensive, and a single shared table left every layer with the same view. Chorus keeps the single table and moves the flexibility into how each layer reads it. The authors see this as opening the way to scaling n-gram tables further along the table-size axis, since memory use falls and what one layer learns can be reused by the rest.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free