Hugging Face Daily PapersBowen Yang, Jingbo Zhou, Qinghong Miao1 min readpaperadvanced
FactorEngram: Factorized N-gram Memory with Basis-Level Gating for Language Models
Summary
FactorEngram proposes a factorized n-gram memory with basis-level contextual gating for LLMs. This design allows polysemous patterns to selectively retrieve relevant memory components from a shared dictionary, leading to improved language modeling and downstream task performance.
- FactorEngram uses factorized n-gram memory, retrieving sparsity-regularized coefficients over a shared dictionary of basis vectors.
- Basis-level contextual gating allows the backbone hidden state to modulate each memory component individually before reconstruction.
- This design enables polysemous patterns to selectively use memory components, addressing limitations of prior monolithic lookup-based memory.
- Parameter sharing occurs through a semantically relevant dictionary of basis vectors, not just hash collisions.
This paper offers a concrete, novel approach for scaling LLMs more efficiently by improving how external memory interacts with model context, relevant for researchers and practitioners.
8/10
