r/LocalLLaMA • u/LagOps91 • 17m ago
Discussion Looped MoE Transformers - Possible solution to halucinations?
Looping layers and MoE - in my oppinion - are a match made in heaven. you get greather depth and fast inference in one single package.
But i think the real benefit could be something else - an internal representation of "I don't know".
Let me explain what i mean:
Through the use of MoE, only a small part of the total parameters become active due to only a small subsection of FFN experts being routed. In current MoE models, if the expert routing misses experts holding key information, the output quality is reduced. But with lopped MoE transformers, a miss like that could be be corrected by fetching different experts on the second pass.
So what would happen if you condition expert selection on the passes beyond the first by conditioning the selection not just on the current latent state, but also on the prior routing choices? In other words, the expert router not only gets the current latent state as an input, but also a list of expert ids that have been selected in the previous loop(s).
In this scenario, there suddenly IS a benefit to enconding "i don't know" or "i need more information" in the pre-training stage! if a latent state after the first pass still encodes that information is lacking, the router could query entirely different experts to try and retrieve further knowledge. And if sufficient knowledge is there, it could try to retrieve information about adjacent/related concepts to enrich the existing latent state.
The resulting pre-trained model would still halucinate (as predicting "i don't know" hurts perplexity), but it would have internalized a representation of it's own confidence/knowledge that could easily be unearthed later on during RL. Current models lack this internal representation, which is why i think they fail to estimate their own understanding / knowledge accurately and cannot be prevented from halucinating.
1
u/Alumin-MC 13m ago
Nope, you can check if Astra hallucinates often or not for a real example.
1
u/Middle_Bullfrog_6173 2m ago
My understanding is that the most common reason for hallucinations that has been found mechanistically is that attention brings up something from context that makes the model think it knows something it doesn't. Either because it makes some unrelated MLP neuron(s) fire or because it makes the model think something is in context that actually isn't.
Is there any evidence looping makes these less likely? My guess would actually be that it adds ways things can go wrong.