Expand description
Pattern Affinity Classification for DyMoE Routing-Drift Protection
Inspired by LLaVA-DyMoE (CVPR 2026), this module implements routing-drift protection to prevent ambiguous episodes from corrupting established high-success-rate pattern clusters during pattern extraction.
Key concepts:
- Drel (relative affinity): Measures how ambiguous an episode is relative to old vs new pattern clusters. Drel ≈ 0 → ambiguous episode.
- Episode Assignment Guard: Two-dimensional gate combining success_rate and affinity_clarity to control pattern mutation.
Reference: https://zhaoc5.github.io/DyMoE/ (Section 3.1-3.2)
Structs§
- Episode
Assignment Guard - Two-dimensional guard for episode-to-pattern assignment.
- Pattern
Affinity Classifier - Pattern Affinity Classifier for routing-drift protection.
- Relative
Affinity - Relative affinity between new and old pattern clusters.
Enums§
- Rejection
Reason - Reason why an episode was rejected from pattern mutation.
Constants§
- DEFAULT_
AFFINITY_ THRESHOLD - Default threshold for affinity clarity gating. Episodes with Drel < this threshold are considered ambiguous.
- DEFAULT_
MIN_ SUCCESS_ RATE - Default minimum success rate for pattern mutation.