• bitcoinBitcoin(BTC)$64,714.002.31%
  • ethereumEthereum(ETH)$1,920.032.28%
  • tetherTether(USDT)$1.000.02%
  • binancecoinBNB(BNB)$591.944.75%
  • usd-coinUSDC(USDC)$1.00-0.01%
  • rippleXRP(XRP)$1.091.88%
  • solanaSolana(SOL)$74.442.76%
  • tronTRON(TRX)$0.3286891.04%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.032.95%
  • HyperliquidHyperliquid(HYPE)$55.093.37%
  • dogecoinDogecoin(DOGE)$0.0705371.97%
  • USDSUSDS(USDS)$1.000.00%
  • RainRain(RAIN)$0.013359-1.53%
  • leo-tokenLEO Token(LEO)$9.770.03%
  • zcashZcash(ZEC)$472.023.11%
  • moneroMonero(XMR)$364.884.09%
  • whitebitWhiteBIT Coin(WBT)$56.511.97%
  • cardanoCardano(ADA)$0.1705226.00%
  • chainlinkChainlink(LINK)$8.453.34%
  • stellarStellar(XLM)$0.1720461.81%
  • CantonCanton(CC)$0.1220251.54%
  • daiDai(DAI)$1.000.00%
  • bitcoin-cashBitcoin Cash(BCH)$217.386.00%
  • USD1USD1(USD1)$1.000.02%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.422.63%
  • Ethena USDeEthena USDe(USDE)$1.000.01%
  • litecoinLitecoin(LTC)$45.632.77%
  • Global DollarGlobal Dollar(USDG)$1.00-0.19%
  • Circle USYCCircle USYC(USYC)$1.13-0.13%
  • hedera-hashgraphHedera(HBAR)$0.0683742.01%
  • suiSui(SUI)$0.692.39%
  • avalanche-2Avalanche(AVAX)$6.451.93%
  • uniswapUniswap(UNI)$4.3913.39%
  • shiba-inuShiba Inu(SHIB)$0.0000051.35%
  • paypal-usdPayPal USD(PYUSD)$1.000.00%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • crypto-com-chainCronos(CRO)$0.0549110.50%
  • tether-goldTether Gold(XAUT)$4,091.790.96%
  • nearNEAR Protocol(NEAR)$1.696.68%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.140.00%
  • OndoOndo(ONDO)$0.4173545.93%
  • BittensorBittensor(TAO)$192.973.10%
  • pax-goldPAX Gold(PAXG)$4,097.140.96%
  • okbOKB(OKB)$85.601.57%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.054859-0.39%
  • AsterAster(ASTER)$0.612.27%
  • HTX DAOHTX DAO(HTX)$0.0000021.11%
  • usddUSDD(USDD)$1.000.03%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • aaveAave(AAVE)$98.763.77%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Tencent Open-Sources AngelSpec: A Unified Training Framework for MTP and Block-Parallel Speculative Decoding on Hy3 Models

July 30, 2026
in AI & Technology
Reading Time: 35 mins read
A A
Tencent Open-Sources AngelSpec: A Unified Training Framework for MTP and Block-Parallel Speculative Decoding on Hy3 Models
ShareShareShareShareShare

Tencent has released AngelSpec, an open-source, torch-native training framework for speculative-decoding draft models. The release covers both autoregressive multi-token prediction (MTP) and the block-parallel DFlash family.

Most speculative-decoding work searches for one drafter that scores well on an averaged benchmark mixture. Real serving traffic does not look like that mixture. AngelSpec treats workload heterogeneity as a first-class design constraint, and specializes structure, training data, and verification depth around it.

Why one universal drafter underperforms

Speculative decoding is lossless. A lightweight drafter proposes several future tokens, and the target model verifies them together in one forward pass using rejection sampling. Acceleration then depends on two things: how many draft tokens get accepted, and how long the complete draft–verify round takes.

Those two quantities move in opposite directions across domains. In high-entropy open-ended conversation, many continuations are semantically valid. The target may pick any one of them, so acceptance decays quickly with proposal depth. Generating and verifying a long block wastes compute. Autoregressive MTP drafting fits this regime because it proposes a shorter candidate sequence.

Code and mathematical reasoning behave differently. Programming syntax, repeated identifiers, formal expressions, and step-by-step derivations constrain future tokens more strongly. These workloads create longer predictable spans, which is exactly what block-parallel drafting amortizes well.

AngelSpec therefore ships two complementary drafters, not one compromise. The MTP model is trained on rich, diverse conversation-oriented data. The block-diffusion model is strengthened with code- and mathematics-focused samples.

The MTP path: Training-Time Test and target-model rollout

The original Hy3 model is trained with a single MTP layer and no recurrent self-conditioned unrolling. At inference the block can be reused recurrently, but the training objective never prepared it for a long self-generated chain. Errors accumulate with depth, so the second and third draft positions accept at substantially lower rates than the first.

AngelSpec addresses this train–inference mismatch with a shared-parameter, multi-depth scheme. It retains D logical prediction depths but reuses one physical MTP block. During training that block is autoregressively unrolled for D steps, with each prediction fed into the next invocation. Following the Training-Time Test principle of EAGLE-3, depth k+1 receives the arg max prediction from depth k instead of the ground-truth token. Parameters are shared, but supervision stays depth-specific: the teacher target advances one future position at every depth.

Two further choices carry most of the gain. First, the target backbone and target language-model head are frozen, and MTP inputs from the backbone are detached. The drafter improves its proposal distribution without touching the distribution that verification must preserve. Second, training uses target-model rollout: responses are generated by the frozen target rather than taken from the original reference corpus. That produces the exact token choices, hidden-state trajectories, and local uncertainty patterns MTP has to approximate at serving time.

The measured effect is concentrated where it should be. At T = 0, mean acceptance moves from 52.8% to 66.4%, and mean accepted length from 2.58 to 2.99. The first-position rate is nearly preserved at 0.799 → 0.814. The deeper positions carry the delta: p3 climbs from 0.290 to 0.706 on GSM8K, and from 0.387 to 0.757 on HumanEval.

DFly: hybrid target conditioning and a predecessor-conditioned AR head

DFly is the block-diffusion architecture. It builds on DFlash with two structural changes.

Hybrid target-conditioning backbone: DFlash concatenates hidden states from multiple target layers and transforms them with a fully connected layer, producing one shared context feature. That single context is then supplied to every draft layer, which limits layer specialization. DFlare instead learns per-layer fusion weights, giving each draft layer its own view of the target hierarchy, but drops DFlash’s learned cross-layer transformation. DFly composes them: the FC branch establishes a common semantic basis, and the per-layer fusion is applied as a residual refinement on top. The extra branch introduces only D × T scalar weights, and its softmax coefficients can be precomputed after training.

Predecessor-conditioned autoregressive head: A parallel backbone predicts each block position from the accepted context only. It cannot see which continuation was actually selected at earlier draft positions, which produces suffix acceptance decay. DFly places a small sequential head after the parallel backbone, converting position-wise marginal predictions into prefix-conditioned distributions. The expensive backbone stays fully parallel; only the small head runs left to right.

Early Performance

On Qwen3-8B, DFly reaches 5.41 average mean accepted length, against 5.32 for DSpark, 4.57 for DFlash, and 3.24 for MTP. It takes the best result on all five math and code benchmarks. DSpark stays slightly ahead on MT-Bench at 3.77 versus 3.67, which is consistent with DFly being positioned for code and math.

On Hy3-A21B, the margin is wider. DFly reaches 4.79 against 3.69 for DFlash and 3.00 for MTP — relative gains of 29.8% and 59.7%. It improves every one of the six reported benchmarks.

The cumulative ablation on Hy3-A21B under greedy decoding traces where that comes from: DFlash backbone 3.77, DFly backbone 4.40, plus Markov head 4.56, and hidden correction 4.60, and code/math data 4.75. The data expansion adds 700K prompts — 500K code from OpenCodeInstruct and OpenCodeReasoning, 200K math from Big-Math. Any prompt sharing a contiguous 16-token span with an evaluation example is removed before response generation.

Inside the framework

AngelSpec is built on TorchSpec and extends it in several places. The foundation is disaggregated: inference engines run the frozen target model and stream hidden states through a Mooncake-backed RDMA store directly to distributed training workers. Hidden states are captured inside vLLM worker processes through public vLLM APIs — a speculative hidden-state extraction hook and a custom KV connector — without forking the engine.

The extensions that matter for this work:

  • TTT rollout unrolled in parallel over the whole sequence, with the causal-prefix-plus-diagonal attention structure reproduced implicitly via compiled FlexAttention and logsumexp merging. Memory stays close to a single causal pass.
  • Long-context training with Ulysses sequence parallelism, validated at context lengths up to 128k tokens. Each local shard carries a D-token halo so depth-shifted supervision stays rank-local.
  • Document-aware sequence packing with three isolation mechanisms — an attention document gate, a depth-shift document gate specific to the MTP path, and document-local position encoding. Cross-document isolation is covered by unit tests verifying zero attention leakage.
  • Evaluation server that periodically runs genuine speculative decoding against the latest checkpoint on dedicated GPUs, reporting mean accepted length and per-position acceptance as measured by the serving engine itself.
  • Pluggable interfaces at three levels: targets (runtime vLLM plugin entry point, no source patch), objectives (composed over a shared base, selected by config), and optimizers (Muon as a drop-in alternative to AdamW).

Backends are tiered: vLLM is first-class, with SGLang and HuggingFace Transformers supported at community tier.

Key Takeaways

  • Seven checkpoints ship on Hugging Face and ModelScope, including no-think and high-think DFly variants.
  • AngelSpec trains six draft architectures — DFly, DFlash, DFlare, Eagle3, DSpark, MTP — behind one config-driven pipeline.
  • DFly lifts mean accepted length on Hy3-A21B to 4.79, versus 3.69 for DFlash and 3.00 for MTP.
  • On HY3-295B-A21B with TP=8, DFly-8 delivers a 1.98–2.40× speedup over autoregressive decoding across concurrency 4 to 64.
  • D-cut pushes live-traffic throughput to 981 tok/s at c64, +15.7% over DFly, while giving up 2.8% acceptance.

Check out the Paper, GitHub Repo, Documentation, Hugging Face Collection and ModelScope Collection. All credit for this research goes to the researchers of this project.


YOU MAY ALSO LIKE

Big Tech Makes the Case for Open-Weight AI | Bloomberg Tech 7/24/2026

Scribe Bets on a New Era of Gene Editing

Michal Sutter is a data science professional with a Master of Science in Data Science from the University of Padova. With a solid foundation in statistical analysis, machine learning, and data engineering, Michal excels at transforming complex datasets into actionable insights.

Credit: Source link

ShareTweetSendSharePin

Related Posts

Big Tech Makes the Case for Open-Weight AI | Bloomberg Tech 7/24/2026
AI & Technology

Big Tech Makes the Case for Open-Weight AI | Bloomberg Tech 7/24/2026

July 30, 2026
Scribe Bets on a New Era of Gene Editing
AI & Technology

Scribe Bets on a New Era of Gene Editing

July 30, 2026
‘The Real Debate Isn’t Open-Weight AI, It’s Chinese AI’: Krach Institute’s Giuda
AI & Technology

‘The Real Debate Isn’t Open-Weight AI, It’s Chinese AI’: Krach Institute’s Giuda

July 30, 2026
SpaceX Is Betting Its Future on Starship
AI & Technology

SpaceX Is Betting Its Future on Starship

July 30, 2026
Next Post
NBC Nightly News with Tom Llamas Full Episode – July 8

NBC Nightly News with Tom Llamas Full Episode - July 8

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
L.A. Mayor Karen Bass gets booed over warehouse fire

L.A. Mayor Karen Bass gets booed over warehouse fire

July 28, 2026
Iran’s supreme leader vows revenge for father’s killing

Iran’s supreme leader vows revenge for father’s killing

July 27, 2026
Lin-Manuel Miranda on how immigrants make the U.S. great

Lin-Manuel Miranda on how immigrants make the U.S. great

July 28, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!