potentialpaper

NGM: A Plug-and-Play Training-Free Memory Module for LLMs

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:01 UTC · 60cbf21961b6 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "s4Zb2KvfE0"
- }
- ],
- "title": "NGM: A Plug-and-Play Training-Free Memory Module for LLMs",
- "authors": [],
- "abstract": "Recent studies have introduced memory-augmented architectures that decouple knowledge storage from neural computation, enabling more direct access to stored representations. However, existing approaches often rely on learned memory embeddings or explicit memory and retrieval components, requiring additional training or increasing architectural complexity. To address these limitations, we propose \\textbf{N-gram Memory (NGM)}, a training-free, plug-and-play module that repurposes a backbone model's pretrained token embedding space as memory. NGM consists of a \\textbf{Causal N-Gram Encoder} and a \\textbf{Cosine-Gated Memory Injector}. The former constructs N-gram representations by directly aggregating pretrained token embeddings, while the latter uses cosine similarity with ReLU gating to adaptively control the amount of retrieved memory injected into contextual representations. Unlike conventional memory-augmented architectures, NGM requires neither additional embedding training nor a separately learned memory bank or external retrieval infrastructure.\nWe evaluate NGM on ten benchmarks across six language-model backbones spanning two model families and multiple scales, including four Qwen3 models (0.6B, 1.7B, 4B, and 8B) and two Llama-3.2-Instruct models (1B and 3B). NGM consistently improves the ten-task average across all six backbones. Notably, it improves \\textbf{HumanEval by 4.26}, \\textbf{HumanEval+ by 2.41}, and \\textbf{GPQA-Diamond by 6.56} percentage points. Furthermore, NGM extends beyond text-only language models to vision-language models, with Qwen3-VL-2B achieving improvements across all five VLM benchmarks.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "728378c8-b4a6-467c-a90e-7415d9a26fbb"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "NGM: A Plug-and-Play Training-Free Memory Module for LLMs",
+ "authors": [],
+ "abstract": "Recent studies have introduced memory-augmented architectures that decouple knowledge storage from neural computation, enabling more direct access to stored representations. However, existing approaches often rely on learned memory embeddings or explicit memory and retrieval components, requiring additional training or increasing architectural complexity. To address these limitations, we propose \\textbf{N-gram Memory (NGM)}, a training-free, plug-and-play module that repurposes a backbone model's pretrained token embedding space as memory. NGM consists of a \\textbf{Causal N-Gram Encoder} and a \\textbf{Cosine-Gated Memory Injector}. The former constructs N-gram representations by directly aggregating pretrained token embeddings, while the latter uses cosine similarity with ReLU gating to adaptively control the amount of retrieved memory injected into contextual representations. Unlike conventional memory-augmented architectures, NGM requires neither additional embedding training nor a separately learned memory bank or external retrieval infrastructure.\nWe evaluate NGM on ten benchmarks across six language-model backbones spanning two model families and multiple scales, including four Qwen3 models (0.6B, 1.7B, 4B, and 8B) and two Llama-3.2-Instruct models (1B and 3B). NGM consistently improves the ten-task average across all six backbones. Notably, it improves \\textbf{HumanEval by 4.26}, \\textbf{HumanEval+ by 2.41}, and \\textbf{GPQA-Diamond by 6.56} percentage points. Furthermore, NGM extends beyond text-only language models to vision-language models, with Qwen3-VL-2B achieving improvements across all five VLM benchmarks.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}