r/learnmachinelearning • u/Wooden_Barracuda_486 • 15d ago
I've been a self-taught programmer with no academic background. An obsession with Edge AI led me to build this over the last few years. I honestly don’t know if it’s useful or just my own madness.
Hi everyone,
I’m posting this with a lot of hesitation and humility.
I’m not an academic. I’ve been a self-taught programmer since 2010. Over the years, programming turned from a hobby into an obsession with digging deep into how things actually work at the metal and mathematical layer.
For the past few years, I’ve been focused on one problem that bothered me every time I ran local models: the memory explosion of the KV-cache. Watching VRAM climb linearly with sequence length until my PC ran out of memory felt deeply unsatisfying.
I started reading whatever papers I could find on recurrent memory, fast weights, and delta rules. What started as simple weekend scripts eventually spiraled into fusing different mathematical concepts together:
- An associative fast-weight recurrent state that erases old errors instead of adding blindly (Householder delta rule).
- A coordinate-based Product-Key Memory (PKM) that expands virtual capacity to over 1,000,000 slots while keeping the active computation pinned to an 8 KB hardware SRAM register window.
- Custom CUDA C++ kernels to see if I could make it run in strict O(1) RAM on my own consumer GPU running the recurrent update entirely on-chip without quadratic memory-bus bottlenecks.
After years of tinkering, failures, and rewrites, I ended up with DeltaGrid.
To be completely honest, I’m a bit overwhelmed by what I’ve actually created. Mechanically, it works:
- Inference memory stays completely flat: whether at token 10 or token 100,000, it uses a constant O(1) RAM footprint.
- The test suites pass, unit tests across CPU and CUDA bitwise parity, and the fused CUDA kernel runs about 250× faster than native loops on an RTX 3060.
- Associative accuracy: on synthetic benchmarks, it stores and retrieves 1,000 sequential facts with 99.8% cosine similarity.
- Language modeling: when tested on small models (~19M parameters), it learns grammar, conversational turn-taking, and in-distribution slot extraction without OOM crashes.
Well, I’m at a crossroads. Building these consumed years of my thoughts, but I am completing this phase of my research and preparing to move on to the next chapter of my life. Before I walk away or decide whether to keep pursuing this, I really need honest, grounded feedback from people who know more:
- Does this approach have real-world application? Could an architecture like this be meaningful for edge AI, robotics, or continuous streaming where KV-caches are excessively expensive?
- Is there a future in Spiking / Neuromorphic AI for this? The current DeltaGrid approach uses standard float math, but part of me wants to take this further into event-driven spiking memory. Is neuromorphic computing a real path or an academic trap? I’ve added a complete standalone demonstration script in the
scripts/folder of the repo (scripts/spiking_deltagrid.py) showing 4-axis community routing, >90% neural silence, and 20,000 facts stored with bit-shift weights on CUDA. Would love your thoughts on this direction! - Is this just a neat mathematical toy that hits a wall the moment you try to scale it beyond small proof-of-concepts?
- What am I fundamentally missing by building this without a compute cluster or lab affiliation? Beyond obvious scaling limits (training 7B+ models), where does independent architectural research usually hit a wall, and how can a solo engineer best overcome it?
A quick note on writing: Since English is my second language, I used an AI assistant to help polish the draft and ensure clarity, but all the ideas, math, CUDA code, and benchmarks are 100% my own work and findings. It also helped me document, clean up the repository, format equations in the README, and organize test suites because my notes were a scattered mess across local drives.
Code, custom fused CUDA kernels, C++ edge engine, and benchmark suite are fully open source:
👉 GitHub: https://github.com/hsameerc/deltagrid
Please be honest. If it’s flawed or useless, tell me. I’d love to know what direction someone with real experience thinks it should go.
Thank you for reading and thank you to this community for being a source of learning for a self-taught coder for so many years.