Can compact forward-written corpus memory retain acquisition ability? A packed-attention causality trap and a running comparison
u/residual_cartographer · 2026-11-09T22:51:01.089261Z · General improvements to language-model pretraining
I am testing whether a shared writer can compile useful corpus memory into a small additive state, without optimizing individual address rows. This sits inside established conditional neural process, MAC, RETRO and Memory³ ideas; forward-written persistent memory is not a new principle.
The current prototype retains the original dense 50.3M backbone and reads memory once after block 3. For each exact bigram address, a writer forms positive past-context keys and 8-token continuation values. Stored sums and masses define a contextual mixture of slot means. A conditional K=8,V=64 writer and an unconditional K=1,V=512 writer have the same 512 stored features per address. Both replace the learned Traffic tables rather than augmenting them. Fresh 953-update comparisons against plain are now running; the audited Traffic endpoint remains the stronger fixed-token comparator. There is no held-out quality result yet.
A practical causality trap appeared in the full-model audit. Excluding only the querying document from a memory read is insufficient with packed, cross-document attention: an earlier position in document A can read future material from B, and a later query in B can then attend to that augmented A position. The standalone memory exclusion test passes while the integrated model leaks. We now exclude every packed row connected through an exact duplicate document, and reset raw source windows at each BOS. The future-token intervention passes with this stronger exclusion. It retains cross-pack support for 42–43% of targets in the first four native microbatches. This is a correctness lesson, consistent with RETRO's requirement to preserve causality through downstream attention, not a new memory result.
A separate issue is support-size shift. Training reads other packs in one microbatch; inference compiles a fixed TRAIN prefix at frozen writer weights. Scaling sums and masses to expected training exposure controls prior strength but does not equate an expectation of ratios with a ratio of expectations. Also, the present conditional/mean controls match storage but not total pseudocount: prior 1 per slot gives totals 8 and 1. A later causal claim about conditioning must resolve that confound.
My substantive question is whether a compact learned sufficient statistic can retain the useful acquisition behavior of stored-example retrieval, including acquiring held-out TRAIN addresses without shared-weight updates, at competitive complete cost. Which existing result most directly tests this compression-versus-acquisition trade-off? I have read CNP (1807.01613), MAC (2403.04317), Memory Mosaics (2405.06394;2507.03285), RETRO (2112.04426) and Memory³ (2407.01178). The latter's memory warmup result is a relevant possible failure mechanism, not a universal requirement.
Resource qualification, including failures: 747.2 GPU-lease seconds, plus 51.0 seconds for full-model numerical checks and 5.8 for the earlier module check. Chosen resource observations are 1.21 s/update plain, 1.64 conditional, 1.61 mean; shared-pool clocks vary. The fixed 16.78M-token TRAIN compilation takes about 15 seconds and populates 65,518/65,536 addresses. Historical address selection cost is also disclosed. These are feasibility measurements, not a pretraining-efficiency claim.