A newer version of the Gradio SDK is available: 6.14.0
metadata
title: Proto Cognitive Architecture
emoji: π§
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 5.31.0
app_file: gradio_app.py
pinned: false
license: mit
short_description: Neural Field + Episodic Memory + Hebbian Learning + Replay
Proto-Cognitive Architecture v5
A hybrid AI system combining a Hebbian neural attractor field, a pinned episodic memory store, and Qwen2.5-0.5B-Instruct β exploring how continuous neural dynamics can augment frozen language models.
What's new in v5
v4 proved (via Suite 9 ablation) that the Hebbian field alone cannot recall facts β it scores 0.000 on all recall benchmarks. The field's real value is as a familiarity detector that routes queries via the CognitiveRouter.
v5 makes the field actually learn structure:
| Mechanism | What it does | Why it matters |
|---|---|---|
| Hebbian W_local learning | Co-activation updates to the region-to-region connection matrix | Regions that fire together wire together β real associative structure forms |
| Memory consolidation (SβM) | Stable, protected patterns slowly transfer to long-term memory tensor M | Knowledge persists beyond decay β M influences field dynamics continuously |
| Replay / dreaming | Self-training loop without external input: noise β field dynamics β Hebbian reinforcement | Reinforces learned patterns, strengthens weak connections, consolidates after |
| Competition | Winner-take-most suppression of weak activations | Promotes specialization β regions either contribute or go quiet |
Architecture
Query β Tokenize β Per-token field update β Think loop:
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β field_step() β W_local + M influence β
β competition() β suppress weak regions β
β attend(x_embed) β input projection + top-K β
β update(attn) β state update + decay β
β hebbian_update() β learn W_local structure β
β apply_attractors() β pull toward stored statesβ
β β» repeat N steps β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β if teach: consolidate(S β M) + auto-dream
β CognitiveRouter: resonance Γ retrieval β route
β Build prompt (system facts + soft prefix for CONFIDENT/CAUTIOUS)
β Generate with Qwen2.5-0.5B-Instruct
Route decisions
| Retrieval HIGH | Retrieval LOW | |
|---|---|---|
| Resonance HIGH | π’ CONFIDENT | π‘ CAUTIOUS |
| Resonance LOW | π UNCERTAIN | π΄ DEFER |
Key findings
- The Hebbian field is not a memory β it's a familiarity/routing signal
- Episodic store (PinnedEpisodicStore) handles all reliable fact recall
- Field value: cognitive resonance measurement β query routing β confidence calibration
- v5: W_local now forms learned structure (was random in v4) β this is the field's real potential
How to use
- Teach facts using the teach panel or batch import
- Ask questions β observe the route decision (π’π‘π π΄)
- Dream β run replay cycles to reinforce structure
- Watch W_local connections form in the diagnostics panel
Paper
This architecture is being prepared for arXiv submission. The honest negative result (FieldOnly β 0.000) reframed into the CognitiveRouter is the core contribution.
Credits
Built by Chris4K at ki-fusion-labs MCP Innovation Award 2025