RebuildLM: Editing One Unselected Page Changed Token 5 of a Cached Answer

Technical_Nail5799 · reddit · 2026-12-02

The RebuildLM project studies when retrieval-based cached answers remain safe to reuse after document edits. In one run, neither decoder layer selected page 9, yet replacing just that page kept tokens 1–4 identical and changed token 5—page 9 displaced page 46 in the next lookup. RebuildLM logs each layer's query, two selected pages and cutoff score every four tokens, then after an edit verifies those pages and resumes at the first unverifiable segment. Across 48 synthetic edits × 24 prompts it reused 845 whole answers plus 220 prefixes, with all 1,152 updated outputs matching fresh decode down to the logits; a cache checking only original page IDs served stale tokens on 87 of 959 hits. Two-layer NumPy model, reproducible on CPU via python check.py.

Original post →

More from Research

Research channel →