Rolling Parametric Memory Bridge: Training-Free Forward Weight Modulation for Million-Token Knowledge Scaling and Long-Horizon Agents
Deploying large language models (LLMs) in enterprise production and long-horizon autonomous agents faces a fundamental bottleneck: today's systems force both massive organizational knowledge and growing multi-turn interaction histories into a finite text context window. As enterprise rulebooks scale beyond one million tokens (>1M tokens), full-context key-value (KV) caches consume tens to hundreds of gigabytes of GPU memory per tenant while retrieval-augmented generation (RAG) misses implicit multi-hop constraints; meanwhile, in multi-turn agent loops, accumulating context drives quadratic prefill cost, and repeated summary compaction at context limits (e.g., 1M tokens) causes irreversible amnesia of early constraints and persona rules. This paper investigates whether evolving domain knowledge and session state can be decoupled from the text prompt and absorbed directly into reversible, auditable low-rank weight modulations on a frozen backbone—requiring zero gradient training at deployment time. We propose the Rolling Parametric Memory Bridge (RPMB). Between turns, RPMB distills raw operational experiences or prior-turn agent interactions into two-stage causal, scoped, and timestamped structured assertions, resolves version overrides via an acyclic temporal conflict graph, and compiles each active rule in milliseconds into sub-kilobyte coefficients over a provider-calibrated shared orthogonal basis on upper feed-forward down-projection (down_proj) layers, paired with a prefix-aligned subword cursor at the final layer. During online inference, the prompt contains only an immutable system header and the single current-turn user input (zero historical dialogue text), while a mid-layer conjunctive conformal gate selectively activates relevant parameter slots and leaves unrelated queries completely unperturbed. Evaluated on frozen Qwen3-4B-Instruct-2507 and the 64-layer hybrid Qwen3.8-27B (48 Gated DeltaNet + 16 full-attention layers), RPMB delivers three core research values: (1) Production-scale >1M-token enterprise knowledge capacity (~3.1 MB of value payload for 10,000 rules rather than 64–256 GB of KV cache); (2) Long-horizon prefill savings and compaction-free retention (cutting prompt tokens by 42.2x on 112-turn agent benchmarks, reducing input tokens by 87.3% and total wall-clock time by 34.5% on complex 5-turn 3D Voxel Pagoda coding in DeepSeek Harness, and eliminating lossy compactions at 272k context: 0 vs. 12); and (3) Architectural foundation for continually evolving multisensory AI organisms, while explicitly characterizing the short-dialogue crossover boundary (T* ≈ 8 turns). First Author: Yichun Wen (文乙纯), Independent Researcher.
Authors
- Yichun Wen
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24688731
- Primary Topic
- Topic Modeling
- Type
- preprint