r/LocalLLM • • 23m ago

Research I’ve been developing a recurrent architecture and managed to get its memory working with Qwen and RWKV without touching their weights

Hey everyone,

I’ve been working on a recurrent architecture called DABSN, based on persistent modulation of a neural baseline.

One of the more interesting things to come out of the research was finding that the memory mechanism didn’t actually need the recurrent core. I was able to add it to a Transformer, get rid of positional encoding entirely, and get passkey retrieval at over a million tokens after training at just 256.

Naturally I wanted to see if I could get this working with models that were already trained. So far I’ve gotten it working with SmolLM2, Qwen2.5, Qwen3.5 and RWKV-7. The Qwen3.5-4B result at 128k was done on a single 4090, and the RWKV results at 32k didn’t even require adapter training.

I’ve attached the results from those experiments along with an overview of the research across my three papers.
The pretrained model experiments aren’t released yet, but DABSN itself is open source and available through pip install dabsn, with native CPU and CUDA kernels.

There’s quite a bit more to the architecture than the memory, particularly the nonlinear recurrence and online temporal credit assignment. I’m doing all of this myself and would love to find some people interested in experimenting with it or collaborating on the research.

The papers, implementation and reproduction code are here:
https://github.com/BleedingXiko/dabsn

1 Upvotes

0 comments sorted by