A Collision-Free Hot-Tier Extension for Engram-Style Conditional Memory: A Controlled Study of Training Dynamics
Tao Lin
TL;DR
Engram-Nine tests whether removing high-frequency collisions via a Minimal Perfect Hash Function improves Engram-style memory during training under iso-parameter control. The study finds no statistically significant validation-loss benefit, suggesting collisions may provide implicit regularization and that precision alone is not the bottleneck. A route-stratified evaluation reveals a hot/cold flip during training and a gating preference that mismatches late-stage performance, pointing to gating credit assignment as a core mechanism. The findings imply practical guidance: retain collisions in data-scarce regimes and use the proposed diagnostics to understand memory dynamics before pursuing retrieval-precision enhancements.
Abstract
We investigate whether high-frequency key collisions are a primary bottleneck in Engram-style conditional memory. To isolate the effect of collisions, we introduce Engram-Nine, a collision-free hot-tier extension that maps the most frequent n-grams through a Minimal Perfect Hash Function (MPHF) while retaining the original multi-head hashed lookup as a cold tier. Under a strictly iso-parameter setup, the collision-free design does not consistently improve validation loss. Through route-stratified evaluation (decomposing per-token loss into hot/cold contributions), we uncover a consistent "hot-to-cold advantage flip" during training: hot (high-frequency) positions initially have lower loss, but cold positions eventually surpass them. Crucially, collision-free configurations flip earlier than collision-prone baselines, suggesting that collisions act as implicit regularization. We also identify a gating mismatch: the gate learns to favor hot positions early in training, but this preference persists even after the flip, assigning higher weights to positions with higher loss. Our findings suggest that improving lookup precision alone does not guarantee better training outcomes. The dominant limitation may lie in gating credit assignment rather than index accuracy, and collision-induced noise may provide beneficial regularization that should not be naively eliminated.
