Reproduce “Residual Vector-based Reconstruction as Long-Context Recall Regardless of Context Window Size” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
MyungHoon Ryu, XinYu Piao, Jong-Kook Kim
A residual-vector memory system stores selected facts outside a frozen language model and later reconstructs them through gated feed-forward-layer injections, allowing source documents and token-level KV caches to be discarded. Across long-context benchmarks reaching two million tokens, it preserves nonzero factual recall with nearly constant response-time GPU memory, though multi-fact reasoning, weakly matched queries, and long narrative sentences remain challenging.
Key insights
- Activation-based residuals provide a query-independent memory representation that is separate from both source text and model weights, enabling entry-level deletion and restoration of the original model after memory removal.
- Using multiple storage layers substantially improves reconstruction, while fact specificity, anchor quality, and sentence structure strongly influence recall as the memory store grows.
- Recovering individual facts does not ensure successful composition: multi-fact questions, implicit relationships, and queries with weak overlap with stored anchors remain major failure modes.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.