tgakathunderr

tgakathunderr / BIM-2

Public

Biologically inspired language model using Jaccard Surprise as its only training signal. No backprop. No GPU. Online Hebbian learning from corrections. Two-layer cortex with apical feedback. Runs on CPU under 200MB.

10
0
100% credibility
Found May 26, 2026 at 10 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

BIM 2 is a biologically-inspired sequence learning system that learns from text through a two-layer brain-like structure, using 'surprise' as its only learning signal—when predictions are wrong, it strengthens the connections that should have predicted correctly. Users interact through a conversational interface where they teach facts, receive predictions, and correct mistakes, while the system forms concepts from repeated patterns.

How It Works

1
🧠 Discover a brain-inspired learner

You hear about an AI that learns like a brain, without the usual technical complexity of machine learning.

2
🚀 Start your first session

You install two free tools and launch the program with a simple command to start a conversation.

3
📝 Teach it new knowledge

You type sentences to teach the system facts, like telling it 'zara directs novacorp' and watching it learn.

4
🤔 See predictions in action

After each sentence, the system predicts what comes next and shows a 'surprise' score when it's wrong.

5
✏️ Help it learn from mistakes

If the system guesses wrong, you type 'WRONG: liam RIGHT: zara' to correct it and strengthen the right connections.

💡 Watch concepts emerge

Over time, the system forms concepts from repeated patterns and can answer multi-hop questions like 'who does zara mentor?'

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 10 to 10 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is BIM-2?

BIM-2 is a biologically inspired language model built entirely in Python that learns sequences without backpropagation, GPUs, or pretraining. It uses Jaccard Surprise as its sole training signal, scaling Hebbian learning rates directly by prediction error. The system runs a two-layer cortical architecture with top-down feedback on CPU hardware, consuming under 200MB of memory. Users interact through a REPL where they can teach facts, correct mistakes mid-conversation, and query learned knowledge.

Why is it gaining traction?

The anti-deep-learning crowd finally has a working alternative. BIM-2 proves you can build sequence memory using only Hebbian plasticity and sparse distributed representations, not gradient descent. The correction mechanism is particularly clever: type "WRONG: liam RIGHT: zara" and the system applies maximum-strength learning to the correct response. The built-in benchmark that tests direct recall and 2-hop inference on fictional company data gives you measurable proof the model actually learned something. No GPU required means you can run experiments on a laptop during a coffee break.

Who should use this?

Researchers exploring biologically plausible learning algorithms will find this the most complete open-source implementation of HTM-style cortex with Hebbian plasticity. Neuromorphic computing enthusiasts who want to experiment with apical feedback and synaptic homeostasis without custom hardware. Anyone building toy knowledge bases where explainability matters more than accuracy. Not suitable for production language tasks or anyone needing state-of-the-art performance.

Verdict

BIM-2 is a serious research prototype with a well-documented architecture and working benchmarks, but the 1.0% credibility score and 10 stars reflect its niche appeal and early-stage status. The code is clean and the concepts are sound, but test coverage, documentation, and community support are minimal. Try it if you want to learn about biological learning or experiment with alternatives to backpropagation. Do not use it for anything that requires reliability or performance.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.