FactorEngram: Factorized N-gram Memory with Basis-Level Gating for Language Models
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:41 UTC · 2a04070aab6a ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "7KPpuMycof"- }- ],- "title": "FactorEngram: Factorized N-gram Memory with Basis-Level Gating for Language Models",- "authors": [],- "abstract": "Lookup-based memory has been a promising way to scale the parameters of large\nlanguage models (LLMs). It retrieves learned representations of local token\npatterns, such as $n$-grams, instead of reconstructing them through\nsuccessive layers of computation. However, existing designs such as Engram\ntreat each retrieved embedding as a monolithic unit. Each embedding\nis stored in its own hashed slot and modulated by a single scalar gate. As\na result, polysemous patterns cannot selectively read out the components of\ntheir memory that are relevant to the context. Moreover, parameters are\nshared only through hash collisions, which are largely unrelated to\nsemantics. We propose FactorEngram, a factorized $n$-gram memory\nwith basis-level contextual gating. FactorEngram retrieves\nsparsity-regularized coefficients over a dictionary of basis vectors shared\nacross patterns, so related patterns can reuse common components. The same\ndictionary is also used for gating. The backbone hidden state is scored\nagainst each basis vector to gate the corresponding coefficient before\nreconstruction, which lets the context modulate each memory component\nindividually. FactorEngram also covers both individual tokens and\nmulti-token $n$-grams, and we systematically study where the memory branch\nshould be inserted. On 340M- and 1B-parameter Transformer backbones,\nFactorEngram improves language modeling and downstream task performance. Ablation studies confirm the contribution\nof each component and identify insertion before the attention sublayer in\nthe middle layers as an effective configuration. All code, data, and models will be made publicly available upon acceptance.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "3b04ed31-4014-4472-9484-58860f2b9013"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "FactorEngram: Factorized N-gram Memory with Basis-Level Gating for Language Models",+ "authors": [],+ "abstract": "Lookup-based memory has been a promising way to scale the parameters of large\nlanguage models (LLMs). It retrieves learned representations of local token\npatterns, such as $n$-grams, instead of reconstructing them through\nsuccessive layers of computation. However, existing designs such as Engram\ntreat each retrieved embedding as a monolithic unit. Each embedding\nis stored in its own hashed slot and modulated by a single scalar gate. As\na result, polysemous patterns cannot selectively read out the components of\ntheir memory that are relevant to the context. Moreover, parameters are\nshared only through hash collisions, which are largely unrelated to\nsemantics. We propose FactorEngram, a factorized $n$-gram memory\nwith basis-level contextual gating. FactorEngram retrieves\nsparsity-regularized coefficients over a dictionary of basis vectors shared\nacross patterns, so related patterns can reuse common components. The same\ndictionary is also used for gating. The backbone hidden state is scored\nagainst each basis vector to gate the corresponding coefficient before\nreconstruction, which lets the context modulate each memory component\nindividually. FactorEngram also covers both individual tokens and\nmulti-token $n$-grams, and we systematically study where the memory branch\nshould be inserted. On 340M- and 1B-parameter Transformer backbones,\nFactorEngram improves language modeling and downstream task performance. Ablation studies confirm the contribution\nof each component and identify insertion before the attention sublayer in\nthe middle layers as an effective configuration. All code, data, and models will be made publicly available upon acceptance.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}