EAGLE's Unified Draft Head vs. Medusa's Multi-Head Approach
EAGLE's draft model uses a single transformer layer and reuses the target model's frozen LM head, effectively resolving feature uncertainty with a shifted token sequence. In contrast, Medusa employs a set of simpler linear heads, which can sometimes lead to less coherent multi-token drafts due to challenges in context construction.
The top 3
- EAGLE's Unified Head: Superior Integration & Efficiency: EAGLE employs a single, lightweight transformer decoder layer as its 'draft head' directly attached to the target model's internal layers, eliminating the overhead of a separate draft model, whereas Medusa uses multiple parallel decoding heads.
- Performance Edge: EAGLE's Feature-Level Alignment: By conditioning its draft head on the target model's internal representations, EAGLE generates predictions more closely aligned with the target's output, leading to higher acceptance rates and substantial speedups, such as 2.7x-3.5x for LLaMA2-Chat 70B and up to 6x overall.
- Resource Footprint: Lightweight Co-Deployment: EAGLE's draft head, typically 1-3 billion parameters and around 277 MB (e.g., for GLM-4.7-Flash-Eagle3), is small enough to be co-deployed on the same GPU as the target model without requiring its fine-tuning, optimizing hardware utilization.
Sources
Open the full topic