Research Project · Actively Building · April 2026

Myrtle AI

A graph-based persistent memory AI. Memory should grow, not slide. Every interaction teaches the graph — answers come from traversing it, not generating from scratch.

AI / ML Graph Theory Memory Research Python
01 · The Wall

We're predicting tokens. We should be traversing graphs.

Current large language models generate answers by predicting the next token in a sequence — an enormously compute-intensive process driven by massive matrix multiplications. The model "knows" things at inference time only because knowledge was baked into its weights during training.

The model cannot learn from the conversation it's having with you right now. Every session starts cold. Every "memory" is faked through context-stuffing. That's the wall — and I think there's a way around it.

02 · The Idea

Memory as a graph that grows.

"Instead of predicting tokens one by one using massive matrix multiplication, an AI should build persistent relationship graphs from interactions — then retrieve and compose answers by traversing those graphs. The neural network is the backend thinker. The graph is the memory and the answer."

Every interaction the AI has — every fact learned, every preference noted, every concept explored — gets written into a persistent, bidirectional relationship graph. Instead of generating from scratch, the system traverses that graph and composes a response from what it actually knows about you and the world.

03 · The Pipeline

6 layers, every input.

  1. 01

    Raw Input

    User speaks or types. No preprocessing — natural language goes in untouched.

  2. 02

    Abstraction & Compression

    Extract keywords in order. Drop linguistic noise. Keep semantic signal.

  3. 03

    Graph Activation

    Activate relationship nodes bidirectionally. Use context weights to disambiguate meaning.

  4. 04

    Context Weight Filter

    Dynamic weights based on usage frequency, recency, and domain. Prune irrelevant paths.

  5. 05

    Composition

    Assemble the response from retrieved relationships using learned grammatical templates.

  6. 06

    Feedback Loop

    User signals correct/incorrect. Graph updates metadata. Background neural processes strengthen edges or weaken them.

04 · The Graph

Bidirectional. Context-weighted. Always growing.

Every relationship is stored both ways. "Clawy likes pizza" also means "pizza is liked by Clawy." Reverse-lookup activates the full network around any concept regardless of which direction it was learned.

// node structure
node: "coffee"
  → made_from: ["coffee_beans"]
  → requires:  ["water", "heat"]
  → liked_by:  ["Clawy", "Sam"]
  → context_weight: 0.82
  → metadata: { domain: "food", last_used: "today" }
05 · Three Tiers of Trust

Admin teaches. Learning questions. Regular validates.

Admin Mode

Creator layer · trust 1.0

The highest trust tier. Reserved for the creator. Inputs bypass the validation pipeline and write directly to the base graph. No confidence threshold, no frequency filter, no neural cross-check. Admin establishes the foundational knowledge and rules — this is where the AI is educated before it meets any users.

Learning Mode

Bootstrap tier · questions over rejection

Lower validation strictness — the system doesn't need high confidence to store a relationship. But instead of silently flagging unknowns, it asks questions. When it encounters something it can't validate, it surfaces the gap directly: "I'm not sure about this — can you clarify?" Claude runs in the background as a temporary validator. As the graph matures, Claude steps back automatically.

Regular Mode

User layer · full validation

Standard users operate here. Full 4-stage intake pipeline. Neural validation before any relationship solidifies. Local context separation — corrections stay local unless multi-user validated. Users traverse admin-authored nodes but cannot modify them. The system protects itself.

06 · Why this matters

Cheaper. Persistent. Auditable.

  • Persistent learning without retraining. The graph grows with every interaction. No "training cutoff" for the user.
  • Bidirectional indexing. Reverse-lookup finds patterns LLMs can't surface efficiently.
  • Dramatically lower compute. Traversal and composition are orders of magnitude cheaper than matrix multiplication at inference time.
  • Per-user identity. The AI evolves naturally from behaviour, not from settings or prompts.
  • Sleep, not delete. Knowledge accumulates. Old nodes fade in weight but never disappear.
  • Auditable answers. Every response can be traced back through the specific graph traversal that produced it.
Status

Concept → prototype. April 2026.

Started as a 30-minute thinking session. Now actively building. Neural backend in Python, graph layer in active development, teaching pipeline being designed. Open-source intent.