# Auxiliary Loss

- **Canonical URL:** https://getaimath.com/dictionary/auxiliary-loss/
- **Topics:** [Mixture of Experts (MoE)](https://getaimath.com/dictionary/category/mixture-of-experts-moe/)
- **Last updated:** 2026-11-25

## What is Auxiliary Loss?

**In one sentence:** An auxiliary loss is an extra training penalty added to encourage a side goal, such as balancing work across experts.

The main loss teaches the model to predict well. The auxiliary loss gently punishes uneven expert usage so the router spreads tokens out. It must be tuned carefully so it does not hurt the main task.

![Mixture of Experts (MoE): A Team of Specialists (Only 2 Wake Up) — Simple cartoon showing a question arriving at a Front Desk Receptionist (Router) who wakes up only 2 out of 8 specialist doctors (Math and Finance) while the other 6 specialists stay asleep to save energy.](https://getaimath.com/diagrams/mixture-of-experts-moe.png)
*Napkin Diagram (Mixture of Experts (MoE)): Mixture-of-Experts wakes up only 2 of its 8 specialists for each word (real experts’ specialties are messier than neat topics).*

## What is an example of Auxiliary Loss?

An MoE model adds a small auxiliary loss whenever some experts are overused.

## Why does Auxiliary Loss matter?

Auxiliary losses keep MoE training healthy.

## Related Concepts

- [Routed Experts](https://getaimath.com/dictionary/routed-experts/): Routed experts are the experts that are only used when the router selects them for a token.
- [Expert Parallelism](https://getaimath.com/dictionary/expert-parallelism/): Expert parallelism spreads the experts of an MoE model across different GPUs, so each GPU holds and runs some of the experts.
- [Shared Experts](https://getaimath.com/dictionary/shared-experts/): Shared experts are experts that process every token, alongside the routed experts that are picked per token.
- [Expert Communication](https://getaimath.com/dictionary/expert-communication/): Expert communication is the data sent between GPUs when tokens travel to the experts they need and back.
- [Routing Collapse](https://getaimath.com/dictionary/routing-collapse/): Routing collapse is when an MoE router ends up sending almost all tokens to just a few experts, wasting the rest.
- [Dense vs Sparse Architecture](https://getaimath.com/dictionary/dense-vs-sparse-architecture/): Dense vs sparse architecture compares models that use all parameters for every token with models that only use some.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/auxiliary-loss/)
