Editing n-gram tables beats weight edits for LLM knowledge injection: 100% recall, 0.25ms erasure

Promptmethus · x · 2026-12-06

A newly public experiment suggests that injecting new knowledge into an LLM may be more efficient by editing the model's internal n-gram table (the region holding token-sequence information) rather than regular weights. On Qwen4-35B-A3B, writing 512 new facts via the n-gram table vs. additive weight editing:

Takeaway: for frequent knowledge updates, this could be far more efficient than fine-tuning the whole model — preserving existing capabilities while precisely deleting stale knowledge. Released on Hugging Face as MubitLabs/Mubit-Qwen4-35B-A3B-NGram-Memory-512.

Original post →

More from Research

Research channel →