The mixture of experts (MoE) is a method that combines several small networks (experts) with a gating network that decides which expert to use for each input, so that the experts divide the training data among themselves and learn it. It was proposed in 1991 by Jacobs, Jordan, Nowlan, and Hinton in the paper "Adaptive Mixtures of Local Experts".
When a single large network is trained with backpropagation on several tasks of different nature together, weight changes made for one task can destroy the weights needed for another (the paper calls this "interference"). As a result, learning becomes slow and generalization suffers.
The paper therefore made the way of dividing up the tasks itself something to be learned. The gate looks at the input and decides "this case belongs to this expert", and when there is an error, only that expert's (and the gate's) weights are corrected. The weights of experts handling other cases are not touched, so interference does not occur. This is similar to a general hospital where the reception desk looks at the symptoms and sends the patient to the appropriate department. The doctors in each department see only their own patients and get better at them, and the reception desk also learns from experience "which department is good at which symptoms".
The key point of the paper lies in how the error is measured. If the error is defined not by summing the experts' outputs but by assuming that the gate stochastically selects one expert, the experts compete rather than cooperate, and each grows into a "local" expert responsible for part of the input space.
This idea was carried over into Sparsely-Gated MoE, used as a layer inside deep networks, and became the basis for large language models such as GShard, Switch Transformer, and Mixtral.

