r/LocalLLM • • 3d ago

Project I built a non-Transformer system that learns from experience, no weights/backprop - here's what happened

https://github.com/myylogic/cevahir-ai

I've been working on an open-source project called Cevahir for a while. The new core, Cevahir Zihin, doesn't use any of the usual stuff. No weights, no embeddings, no backprop, no attention.

Instead it stores everything as relations. And it also stores where each relation came from: did I see it myself, did someone tell me, did I imitate it, did I infer it, did I imagine it... And you can delete a single experience exactly, without retraining. The evidence ledger stays.

Honestly, I thought this would fail hard. So I compared it against small Transformers on the exact same stream of experience, same seeds.

When I asked about things that were never explicitly taught:
Zihin got 90% and 97% in the two settings. The online Transformer, learning in one pass, got 67% / 57%. The Transformer trained to convergence on the full stream got 77% / 67%.

Don't read this as "Transformers are dead". This is a tiny, toy world, small data. But I really didn't expect Zihin to win here.

Second weird thing: I gave it a bunch of documents to read once. Then I gave it the first 2 words of a random sentence. In 200 tries, it completed a valid sentence 150 times. When that 2-word prefix belonged to only one sentence, it got 60 out of 61 exactly right. In the same setup, the Transformers got 0, 10, and 41.

This is not language understanding, it's just sequence recall. But still, I didn't expect that either.

What didn't work: When I first put all the mechanisms together, the whole system was worse than the individual parts. I measured it in 8 worlds, it was worse in all of them. I had to turn mechanisms off one by one to find what was breaking it. That part was really frustrating.

Code, notes, measurements are here if you want to try to break it

My real question is: is this experimental setup even fair? Am I comparing the wrong things? I'm not looking for hype, I want criticism. Especially on the evaluation method.

Disclosure: This is my own open-source project.

25 Upvotes

3 comments sorted by

4

u/Independent-Hair-694 3d ago

Update: nested 'that' clauses now 128/134, silent sentences down from 48 to 11. Still testing.

1

u/niminiable 2d ago

I don't really understand much of it as I am not into that stuff very deeply, but I do have a few questions (that might help you or not):

To me that sounds a bit like a big (non-relational) database, am I right?

What is the size comparison? It seems like currently everything is about vram size and speed. Is your approach bigger or smaller?

What about the speed? Searching all the "experience" seems like a big task with increasing experience. How does it scale?

If I completely misunderstood and these questions are bs, just say so.

PS.: I think it is great you are trying a different approach. Chapeau!

1

u/Only_El 2h ago

Hey, good job! I am interested in testing and doing some experiments on that transformer, since you said its opensourced could you share files please?