Prototype a mixture-of-experts / routing-tree architecture #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Prototype a mixture-of-experts / routing-tree architecture — the direction Jan and Tobias were most interested in.
This is not a full soft-gated MoE. It's a tree of several small networks, with one selected per call based on the condition, so each call evaluates one small expert instead of a single large monolithic net — the source of the speedup against the ~10× native-Geant4 budget.
Routing conditions (individually or combined): PDG (species), energy (regime), process (interaction type).
Differentiability: a hard branch on a continuous variable (energy) breaks gradients at the boundary. For the energy split use a soft turn-on — a stochastic/soft gate rather than a hard cut — so routing stays differentiable. Discrete pdg/process selectors don't have the boundary-gradient issue. This is the same problem class as the
n_secmultiplicity gradient (Gumbel-Softmax / straight-through), applied to the router. Compare per-call cost and quality against the monolithic Phase 2 baseline.Source: Jan & Tobias meeting 2026-07-07 §3 (incl. the soft-turn-on action item).
created branch
4-prototype-a-mixture-of-experts-routing-tree-architectureto address this issuecreated branch
4-prototype-a-mixture-of-experts-routing-tree-architecture-2to address this issuementioned in merge request !2
mentioned in merge request !3
mentioned in commit
098dacb8cd