Tencent Open-Sources DFly2: Decoding Speed Up 4.55 Times—So Why Are Long Tasks Only 1.35 Times Faster?

artifactNovember 28, 2026release AiFun
63 0

On November 26, Tencent’s Hunyuan AI Infra team released the weights, training code, and technical report for DFly2, along with corresponding draft models for targets such as Hy4 Flash, DeepSeek-V4.1-Flash, and GLM-5.3-Flash. What’s most noteworthy isn’t a single acceleration figure, but rather two columns on the same benchmark table: decoding speed and end-to-end speed (including input processing). These determine whether you’re optimizing the model’s processing speed or the actual wait time for users.Tencent AngelSpec - DFly2 Technical Report, Table 9

Which task does DFly2 eliminate?

Speculative decoding allows a lighter draft model to first predict a set of subsequent tokens, which the target model then verifies. If the predictions are accurate, the same-length answer can be obtained with fewer sequential verification rounds. The problem lies in long inputs: if the draft model must also process the entire prompt separately and maintain its own history cache, the time saved during the generation phase may end up being consumed by the input phase.

DFly2 reuses the Top-K historical positions selected by the target model’s sparse attention, while also reusing the key-value cache of the corresponding layer. The draft can see the older content that the target model deems worth revisiting, rather than focusing solely on the most recent segment, and it does not need to create a separate draft cache for the entire input. The target model remains responsible for validation; the draft model does not replace the target model. This also explains the deployment costs: the draft weights must match those of the target model and its inference implementation; one cannot arbitrarily attach draft weights from a Hy4 flash to another model.Implementation and Scope of Support

One Type of Acceleration, Three Billing Options

Sample Thesis Decoding Acceleration End-to-End Acceleration with Input Processing
Hy4 flash / AgentLongBench 4.55× 1.35×
Hy4 flash / CodeSpan 64K 3.48× 2.51×
GLM-5.3-Flash / MemoryAgentBench 2.20× 0.98×

These are measurements taken by the author when running the model independently against a reference model, using greedy decoding and single-request concurrency; they are not based on actual tests conducted by this site. The 0.98× in the last line indicates that this case is slightly slower overall and should not be interpreted as a “98% speedup.” The 1.35× in the first line means that, under the same conditions, the execution time is approximately 74% of the original—it does not mean that the wait time is reduced by a factor of 4.55. The paper also lists the total deployment throughput under different concurrency levels separately; these comparisons are based on the specified DeepSeek target and workload and cannot be generalized as performance guarantees for other models.Experimental Conditions and Throughput Chart

It’s easier to understand this table if you roughly break down the latency into “input preparation, output generation, and external wait.” Suppose a request originally took 80 seconds to prepare input and 20 seconds to generate output. If the generation time is accelerated by a factor of 4, the total time would still be 85 seconds. This is a theoretical example and not a retroactive calculation of the time taken by the samples in the paper. Real-world agents also involve waiting times for retrieval, network delays, or tool queues, and the actual benefits typically need to be measured separately.

How can you tell if a service is worth trying?

First, group data by input length, output length, and task type. For the same target model, version, and sampling settings, run two sets of tests—one with the feature enabled and one with it disabled. First, compare the first token, output rate, and overall P95; then add real concurrency to measure peak GPU memory usage, total throughput, and cost per GPU unit. Knowledge Q&A tasks with long inputs and short outputs should not be averaged together with code modification tasks featuring long inputs and long outputs; in scenarios involving tool calls, the session end time must also be recorded. Before switching, retain the path that does not use drafts to verify whether the system can reliably revert under conditions of version mismatches, long inputs, and traffic spikes.

My assessment: DFly2 is worth trying for services that are already running sparse model adaptation and where decoding accounts for the majority of the wait time. The project’s true advantage lies in allowing drafts to leverage the work already done by the target model. Whether it can save money or reduce latency during peak and off-peak periods should be determined by small-scale controlled trials across a production distribution, rather than by the fastest single line of code.

© Copyright notes

Related articles

No comments

none
No comments...