Context-Addressed Resonant Memory — Structural immunity to forgetting
CARM (Context-Addressed Resonant Memory) provides structural immunity to catastrophic forgetting through prime-lattice weight crystallization.
Instead of storing weights as raw scalars (which collide), CARM stores them as phase offsets on a periodic manifold. Each context gets its own prime number, creating geometrically isolated storage.
| Source | Prime | Description |
|---|---|---|
| rag | 137 | Genesis channel (α⁻¹) |
| llm | 139 | Generic LLM responses |
| vac | 149 | V.A.C. emerged solutions |
| groq | 151 | Groq API responses |
| gemini | 157 | Gemini API responses |
| local | 163 | Ollama local responses |
| cerebras | 167 | Cerebras API responses |
| claude | 173 | Claude API responses |
| free | 179 | Free LLM responses |
| multi | 181 | Multi-AI consensus |
1. Training (Encoding)
2. Crystallization (Snapping)
After snapping, cos(snapped_phase × prime) = ±1 exactly. Binary stability achieved.
3. Retrieval (Context-Aware)
Tested on 99% correlated inputs with contradictory labels:
| Test | Result | Status |
|---|---|---|
| Zero Forgetting | Error < 0.15 | PASS |
| Context Matters | Wrong key = wrong answer | PASS |
| Channel Isolation | Interference < 0.16 | PASS |
CARM is automatically integrated with RAC (Resonance-Augmented Continuity):
No configuration needed. Just use BAZINGA normally and CARM works in the background.
The genesis channel uses prime 137 — the inverse fine structure constant (α⁻¹ ≈ 137.036).
This isn't arbitrary. 137 appears in:
Srivastava, A. (2026). "Context-Addressed Resonant Memory (CARM): A Two-Factor Architecture for Structural Immunity to Catastrophic Forgetting."
GitHub • PyPI • Built by Abhishek Srivastava