Skip to main content

Tencent Open-Sources AngelSpec: A Unified Training Framework for Speculative Decoding

Tencent has open-sourced AngelSpec, a unified training framework integrating MTP and block-parallel speculative decoding for Hy3 models.

AI-written
Inewgen
30 Jul 2026Source: MarkTechPost2 min read (0 views)Last updated 04 Aug 2026
Share
Tencent Open-Sources AngelSpec: A Unified Training Framework for Speculative Decoding

Stock photo for illustration only, not from the actual event

Font size
  • AngelSpec addresses workload heterogeneity with specialized dual drafters.
  • Enhances MTP via multi-depth training and target model rollout.
  • Introduces the DFly architecture for advanced block-diffusion.
  • Achieves substantial acceptance rate gains in coding and math benchmarks.

Real-world serving traffic rarely matches the averaged benchmark mixtures used in typical speculative-decoding research. To tackle this, Tencent has introduced AngelSpec, an open-source unified training framework that treats workload heterogeneity as a core design constraint by specializing structures, training data, and verification depths.

Speculative decoding operates as a lossless acceleration method where a lightweight drafter proposes future tokens, and a target model verifies them in a single forward pass. Performance depends directly on the number of accepted tokens and the round-trip duration. While high-entropy conversations benefit from shorter candidate sequences via autoregressive MTP, code and mathematical reasoning feature predictable spans that are better handled by block-parallel drafting.

deep learning code architecture diagram

Stock photo for illustration only, not from the actual event

66.4%Mean Acceptance at T = 0
4.79Mean Accepted Length on Hy3-A21B

To leverage this, AngelSpec incorporates two complementary drafters: an MTP model trained on conversational data and a block-diffusion model strengthened with code and math samples. It resolves train-inference mismatches through a shared-parameter, multi-depth scheme combined with target-model rollout from a frozen backbone.

Separating the drafters based on workload characteristics represents a major shift from one-size-fits-all speculative decoding approaches. By keeping the target backbone frozen and extracting hidden states through public APIs, AngelSpec optimizes proposal distributions safely without altering the verified target distribution.

Measured results show that at T = 0, mean acceptance increases from 52.8% to 66.4%, with deeper positions showing dramatic improvements on benchmarks like GSM8K and HumanEval. Furthermore, the DFly block-diffusion architecture—built upon DFlash with hybrid target-conditioning and a predecessor-conditioned autoregressive head—pushes performance even higher, supported by an expanded dataset of 700,000 prompts.

Source: MarkTechPost

Comments

Leave a Comment
0/2000

Found something wrong in this article? Report an issue with this article