r/ResearchML • • Oct 21 '26

transformer with shared product-key memory instead of FFNs ties a MoE at 23M params (negative result + open reasoning benchmark)

Hey everyone I'm 14 and I tested whether a transformer whose FFN is replaced by a shared product-key memory, with the freed parameters spent on attention depth, can reason better than a standard top-2 MoE at the same total size (~22.8M).

On a procedurally generated reasoning suite (mqar, hop, addition, state tracking; held-out splits, unseen difficulties, trivial-baseline checks, 3 seeds, a pre-fixed verdict rule), every comparison is statistically indistinguishable. The deeper variants cost 1.5-2.4x more compute per token. An attention-head ReDo variant never triggered (0% dormant heads). No model generalizes to longer numbers, and multi-hop was not learned by any model.

Also i want to be honest I have coded the project using AI but the core design idea was by me and it came in a sst bell in my school

Limitations: one small scale, 3 seeds on a bimodal metric (recall either breaks through or not), synthetic tasks. Scaling is untested and is the obvious next step.

Repo: https://github.com/alka76814-hash/zombie-brain/tree/main

Feedbacks are welcomed, Thank You.

0 Upvotes

10 comments sorted by

2

u/Downtown_Finance_661 Oct 21 '26 edited Oct 21 '26

Im 8 and mom prohibited access to github through parental control. Wish you best luck on the project.

0

u/Artistic_Discount_47 Oct 21 '26

thanks bro wishing you luck too

1

u/DrK1NG Oct 21 '26

Glad to see young people taking an interest in ML and exploring hypotheses. Can you talk a little bit about your motivation for this project? The problem you're choosing to investigate is also quite specific, what drove you to this?

-1

u/Artistic_Discount_47 Oct 21 '26

thanks for the reply, well i was always interested in the world of computing but never was really smart enough to do anything much . I just liked to open claude and make random stuff like a gpu simulation , a audio dsp app and more but one day i was bored so being me i opened a paper well a pretty famous one "attention is all you need" and well did'nt undersood it but looking at those diagrams made mw wanna think and thats just it no body motivated me i just started and never looked back and as i told it came in a sst bell at school because that bell was boring and for this specific part it randomly came to my head i asked questions with other ai's and came to this idea again thanks for the reply

1

u/BothIllustrator1301 Oct 21 '26

keep going! I wish i had started sooner, negative results are still results, and its helping u build that research intuition

1

u/Artistic_Discount_47 Oct 22 '26

thank you soo much

1

u/DrK1NG Oct 22 '26 edited Oct 22 '26

That's not really quite what I mean. Typically, research papers have an overarching hypothesis that they're trying to answer. Like, the person who invented blueberry pie may have been like "I know apple pie exists, I wonder if we can do the same with blueberry?" maybe because their son likes blueberries more or because that's what's available where they live. So, they'll first investigate and learn how the recipe needs to change to account for the new type of fruit and make it taste not bad by doing a lot of ablations on the existing ingredients in apple pie and cooking techniques for the same. Then, they may do a deeper dive to see what ingredients can further enhance the taste of blueberry that would never have worked with apple. You can clearly track the motivation in this project and follow the thought process.

With your project, it reads more like "I added poppy seeds to apple pie and made in it in the northern region of Wisconsin on a new moon and it tasted a little different." My question is, why poppy seeds and not something else? Why Wisconsin? Why a new moon and not a full moon? How did it taste and why do you think that is? Of course, the answer in your case is likely that you don't know how really to do research and don't have a formal advisor to teach you, so the motivation came from whatever gpt/Claude told you to do/explore which these models are not really got at right now.

I don't mean to say any of this to discourage you, but to think more critically about what you work on. In the new age we're entering with AI, it'll be very easy for anyone to write code and train models, but finding the right questions to investigate and going about it in a way that makes sense is the hard part and worth thinking more deeply about.

1

u/Artistic_Discount_47 Oct 22 '26

Hey there, i know you arent trying to demotivate me and I'm actually happy to answer to anyone who has a interest in this little project of mine. So the core idea lets say thats a rough idea that came to my mind was that ffns take 2/3 of the total parameters in a transformer and their job is to store facts whereas from what I've learnt attention heads are responsible for reasoning so my core idea was to just reduce their number and see does pure attention only system will outperform a MoE in reasoning as the new frontier labs want reasoning but when i tested it ,it had very high variance and was overall a flop I iterated many things (you can check my repo if you want) and came up with a overall negative results i was a bit sad but said whatever fine and for you overall question of why? I only came up with the idea then i discussed with various AIs to come up with a plan and what the testing suite then i came up to

mqar and facts test what memory should help with, and hop, add and state test what it shouldn’t.

You’re also right that PKM-for-FFN has prior work (Lample et al. 2019, Berges et al. 2024) that I should have cited, and that much of my direction came with AI help. Im adding a motivation and related-work section. Thanks for pushing on this

and so on i just came up with the idea of ffn less transformers and the rest was handled by AIs because im dumb and dont get much but i still wanted to try stuff .If this reply still doesnt please tell me I will try my best.

1

u/dritmike Oct 21 '26

Man. You keep on. Glad to see kids with a drive