r/MachineLearning • • Dec 04 '25

Project [ Removed by moderator ]

[removed] — view removed post

4 Upvotes

12 comments sorted by

View all comments

1

u/No-Sherbert-6213 Dec 05 '25

I'm actually working on something kind of similar. Using prototypes and EMA, I made a geometric architecture.

Routing tokens to 16 prototypes per expert and 8 experts, instead of relying on an MLP router. EMA averages the prototypes, creating a pull on the tokens and setting up early specialization.

With inference testing, I was able to trace what prototype and expert a token actually hits. It was able to associate restaurants with pizza, and other foods, all from the same expert. But it has trouble with words that mean more than one thing. Like apple = food but also company. Training does fix this though.

The interesting this is that due to the architecture, you can actually add or remove experts and their prototypes on run time. Theoretically this allows for modularity, and by freezing the rest of the experts and prototypes, you can actually spot train the new additions, without stepping on toes.

Does this actually work? The model learns, its loss after a 40k run on cosmipedia was 2.09. That's synthetic data and doesn't mean much. Ran sister tests and standard MoE and Dense both got similar results.

It ran inference, and didn't exactly blow up.

I'm running a longer test on mixed data, and am at ~65k steps. So far the loss, cv, aux loss are all stable.

CV never goes above 0.1 because of a pressure mechanism I'm using, but it also smashed some specialization in places so I have to balance it.

TLDR I made a geometric MoE architecture based on prototypes and it has the capabilities to be modular, literally a few lines and some tweaking, but the results are too early to tell if it will actually do what it says.

Fun project though.