Skip to content

m6jones/rem-memory

Repository files navigation

Project REM: Anti-Gravity Memory Prototype

Dream State Visualization

This is the "Dirty Prototype" for Project REM, an experimental memory consolidation engine that uses an "Anti-Gravity" algorithm to prevent Model Collapse in AI systems.

The Concept

Standard RAG systems retrieve memory based on the strongest probability (Gravity). This leads to the reinforcement of common paths and the forgetting of unique, creative, or long-tail data.

Project REM introduces "Dream Cycles":

  1. Invert Gravity: Treat edge strength as "Cost". Stronger edges are harder to traverse.
  2. Find the Weakest Path: The algorithm seeks the path of least resistance through weak connections.
  3. Synthesize a Dream: The AI generates a narrative bridging these weak concepts, strengthening the synaptic weight between them.

Setup

Requires Python 3.8+ and networkx.

pip install networkx matplotlib

Running the Experiment

To replicate the "Scout Report" (Ancient Rome -> Python Coding):

python demo_experiment.py

To run a random "Dream Cycle" on a mock dataset:

python run_dream.py

To visualize a random Dream Path (requires matplotlib):

python visualize_dream.py

Files

  • rem_engine.py: The core MemoryGraph class and Anti-Gravity pathfinding logic.
  • demo_experiment.py: The specific script proving the "Rome -> Python" bridge.
  • run_dream.py: A script that runs continuous random dream cycles.

Built as a proof-of-concept for the Anti-Gravity Memory architecture.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages