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:
- Recall of added knowledge: 68.4% → 100%
- Existing-capability retention tests: 2/6 → 6/6
- Time to erase 50 facts: 94.1s → 0.25ms
- 90.5% recall under paraphrased questions; the knowledge patch is only 9.74MB
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.
More from Research
- NVIDIA paper: models managing own context lift GPT 6.1 from 21% to 56% — MaryamMiradi · 2026-12-06
- Eric Topol interviews Strogatz: AI has upended math and CS — is medicine next? — EricTopol · 2026-12-06
- Anthropic: better pretraining yields more aligned models, per Jared Kaplan — niloofar_mire · 2026-12-06
- David Deutsch explains P vs BQP: complexity classes are parameterized tasks — AryHHAry · 2026-12-06
- Berkeley's PEINT model in Nature replays and predicts protein evolution — berkeley_ai · 2026-12-06
- 2026 saw 149 open math problems solved, mostly AI-assisted — EricTopol · 2026-12-06