External Publication
Visit Post

Wave-Coherence Scoring: Phase-Aware Alternative to Cosine Similarity

Hugging Face Forums [Unofficial] March 15, 2026
Source

Wave Memory: Persistent Experience for Kerr-ODE Models

New investigation results and a fourth repo.

The concept: Model weights are the education — frozen, never change. A separate 1.5KB file stores accumulated harmonic band states — the experience. Each conversation shifts the Kerr-ODE’s starting position on the unit circle. Same model, different trajectory, different output. The model reads and writes memory in the same coordinate system it thinks in — no translation, no vector database, no RAG retrieval.

The mechanism: During inference, the ODE final states feed an exponential moving average. Bands consistently active across tokens accumulate. Bands that spike once and fade contribute nothing. At conversation end, the accumulator merges into the persistent file. Next conversation starts from a different position because of what came before.

5 experiments, 4 passes, 1 honest null:

Experiment Result
Injection sensitivity Random noise at α=0.05 improves perplexity by 8.8% (stochastic resonance)
Accumulation stability Converges over 20 conversations, growth rate 280%→9.5%
Topic separation (char-level) NULL — captures corpus texture, not topic. Bounded by model capacity
Topic separation (word-level) PARTIAL POSITIVE — love→"fair",“give thee” vs war→"dishonour",“death” from same prompt
Memory reset Bit-identical to baseline after deletion
Anomaly detection Spike caught immediately before affecting output

The stochastic resonance finding is the unexpected one. Injecting random noise into ODE initial conditions makes the model generate better , not worse. The nonlinear Kerr dynamics (self-phase modulation, cross-phase coupling) use the perturbation constructively. Standard transformers degrade with any perturbation — they have no mechanism to exploit noise. The Kerr-ODE does.

The topic separation scaled with tokenisation: character-level saw only texture (0.987 correlation between love and war memories). Word-level saw tone — same top bands but 2x energy difference, reordered peaks, and measurably different generation. BPE with a larger model is predicted to enable full semantic separation.

The safety model: Delete the file → model returns to trained baseline (verified bit-identical). Inspect the file → harmonic census shows exactly what accumulated. The model weights never change during inference. Memory is experience, not education. Neither corrupts the other.

The repos:

  • kerr-memory — wave memory library, 920 lines Rust, zero dependencies (Apache 2.0)

  • kerr-server — serves models with --memory flag (Apache 2.0)

  • kerr-engine — trains models that produce the checkpoints (Apache 2.0)

  • Wave Coherence — research framework, 70 defensive patents (MIT)

Full pipeline works: train → serve → chat → accumulate → save → inspect. All Rust, all open source.

Discussion in the ATmosphere

Loading comments...