Tencent’s open release of DFly2 shows how a small speculative model can accelerate long-context generation by sharing the main model’s sparse attention work. The results are promising, but measured decoding gains, full-request latency and deployment readiness are not the same thing.
The race to improve artificial intelligence is often described as a contest to train larger or more capable models. Yet much of the experience of using a model depends on something that happens after training: the machinery that turns a prompt into a sequence of output tokens. On 26 November 2026, Tencent’s Hunyuan AI Infrastructure team released DFly2’s weights, training code and technical report, extending a speculative-decoding approach to several sparse-attention language models. The release is not a new general-purpose chatbot competing on reasoning benchmarks. It is a specialised companion model intended to help existing systems generate answers more quickly, particularly when a conversation or agent workflow contains a great deal of previous context.
That distinction matters because model capability and delivery efficiency are different dimensions of progress. A system may answer questions accurately but spend considerable time producing a long response, while a faster decoder can improve responsiveness without changing the model’s learned knowledge. Tencent reports substantial improvements in selected experiments, including higher throughput under concurrent long-context workloads. Those figures deserve attention, but also careful interpretation: they are measurements supplied by the developers, on specified models and tasks, and cannot be transferred automatically to every AI service.
Why generating the next word is expensive
Language models generate text token by token. A token may represent a word, part of a word or punctuation, and the model repeatedly calculates a probability distribution for what should come next. The calculations involved in producing each token can be expensive, especially for large models. As an interaction grows to include documents, previous messages, retrieved material and tool results, the model must also manage information about earlier tokens. Systems commonly store intermediate attention information in a key-value cache, often abbreviated to KV cache, so they do not need to recompute the entire history for every step.
The cache makes generation practical, but it consumes memory. A long context can require substantial storage and memory bandwidth, limiting the number of requests a server can handle simultaneously. Some newer models address this by using sparse attention: rather than consulting every earlier position at every step, they select a smaller subset judged relevant to the current calculation. That selection can preserve access to useful distant information while reducing the work required. The central insight behind DFly2 is that an auxiliary decoding model should be able to reuse both the cache and the selection already created by the main model.
The speculative shortcut
Speculative decoding separates proposing tokens from checking them. A smaller or cheaper draft model predicts several likely next tokens, and the larger target model verifies the proposal. When the draft agrees with the target, the system can accept multiple tokens in a single verification cycle rather than generating them one at a time. Properly implemented, the procedure preserves the target model’s output distribution while reducing the amount of sequential work. The benefit depends on the quality of the draft, the cost of producing it and the expense of verification.
Earlier speculative approaches can encounter a difficulty with long contexts. A draft model may need its own cache, which consumes memory and requires preparation, or it may repeatedly attend to a broad window of preceding tokens. As the history grows, the supposed cheap assistant becomes less cheap. DFly2’s authors propose a different arrangement in their technical preprint submitted on 25 November. Each draft layer reads the target model’s existing KV cache and uses the positions selected by the corresponding sparse-attention layer. In other words, the draft does not independently decide where to look; it borrows the target’s earlier decision.
The authors call these two mechanisms KV sharing and index sharing. In the models examined, a draft token consults a bounded selection of roughly two thousand cached positions rather than scanning an ever-expanding context. DFly2 also avoids maintaining a separate KV cache of its own. This is a specific architectural improvement, not a general claim that all inference becomes constant-cost. The target still performs its own calculations, and the system still pays for processing the prompt and verifying proposed tokens. The claim concerns the marginal attention work of the drafter under the supported sparse-attention arrangement.
What the reported measurements show
The AngelSpec repository documents released DFly2 variants for Hy4 flash, DeepSeek-V4.1-Flash and GLM-5.3-Flash, alongside the training framework. The accompanying paper compares DFly2 with other draft architectures trained under matched recipes. Across the reported general, long-context and agentic tests, the authors find that DFly2 accepts more proposed tokens per verification step. They report a larger advantage on long-context and agent tasks than on general workloads, consistent with the design goal of avoiding redundant work over lengthy histories.
One result deserves particularly careful wording. In experiments with DeepSeek-V4.1-Flash at high concurrency, the paper reports throughput improvements of 62 per cent and 81 per cent on two workloads with 64,000-token contexts, at matched per-user decoding speed. These are not universal improvements in the speed of a chatbot response. Throughput measures how much work a serving system can complete across requests; individual latency measures how long a particular user waits. A technique can improve one more than the other, depending on batch size, prompt length and the balance between initial prompt processing and output generation.
Similarly, Tencent’s public announcement refers to speedups reaching 4.2 times in particular long-context conditions. The headline number is not a promise that every end-to-end task will finish four times faster. The published benchmark tables distinguish decoding measurements from the time spent preparing the prompt. A task dominated by reading a very long input may see a smaller overall gain than a task dominated by generating a lengthy answer. Software integration, hardware configuration and concurrency can alter the result further. The reported gains should therefore be read as evidence of potential under tested conditions, not as an independent production benchmark.
The research also includes an interesting test of whether attention selections can be reused for subsequent draft tokens. A selection made slightly earlier will not necessarily match what the target would choose later, yet the authors report substantial overlap. That empirical observation helps explain why index sharing can work: it sacrifices some freshness in the drafter’s view while keeping verification with the target. The target remains responsible for accepting or rejecting proposals. The architecture relies on this division of responsibility rather than treating the drafter’s guesses as authoritative output.
Where this matters for agents
Long-running AI agents are a natural setting for this kind of work. An agent may examine a repository, call tools, read their responses, revise a plan and continue through many rounds. Its history can become lengthy even when each individual action is short. If every new output token requires expensive attention over that accumulated history, responsiveness and server capacity suffer. A drafter that reuses the target’s sparse cache could reduce one part of the cost without requiring developers to train a more capable foundation model.
The same principle may matter for document analysis and retrieval-based systems, where the prompt includes passages from many sources. But benefits will depend on how much output the application generates and whether the supported model architecture matches DFly2’s assumptions. A system that mostly classifies short inputs, or that relies on a dense-attention model with different cache structures, may not obtain comparable gains. This is not a drop-in universal acceleration layer. The project documentation describes specific model families and implementation requirements, and wider compatibility remains an engineering question.
Open research, but not frictionless deployment
The 26 November release is notable because Tencent provided more than a performance claim. Its public repository contains the training framework and examples, while model artefacts are linked through Hugging Face. That makes it possible for other researchers and engineering teams to inspect implementation choices and attempt reproduction. Openness should still be described precisely. The framework and different model weights can carry different licence terms, so the availability of code does not mean every component is unrestricted for every commercial use.
Reproduction also demands more than downloading weights. Serving engines must support the required interaction between draft layers, the target cache and sparse-attention indices. Hardware, numerical precision, batching and the particular target checkpoint affect results. Tencent’s repository includes installation and training instructions, but successful release of code is not equivalent to validation across mainstream production stacks. The distinction is especially relevant when impressive performance numbers come from specialised experimental configurations rather than independent deployments.
There is an additional methodological limitation. The DFly2 paper is a preprint, and the reported comparisons come from the team developing the method. The work is sufficiently documented to justify technical examination, but external replication would strengthen confidence about portability and robustness. Future assessments should distinguish accepted draft length, tokens generated per second, time to first token, full-request latency, throughput under concurrency and memory consumption. These measures answer different questions, and selecting only the most favourable one can create a misleading picture of real-world improvement.
Efficiency as a form of model progress
DFly2 illustrates a broader change in how AI advances should be assessed. A foundation model’s quality is only one part of a usable system. Inference software determines how efficiently that quality is delivered, how many simultaneous users can be served and which workloads remain economically practical. Research that removes duplicated computation may create meaningful capacity without changing the underlying model weights. This is particularly important as longer contexts and multi-step agents make generation costs more visible.
The new release does not prove that sparse-attention sharing will become the dominant design for all language models. Architectures differ, and the trade-offs between speculative acceptance, verification cost, memory use and deployment complexity remain active research questions. What it does establish is a concrete, publicly documented attempt to make draft generation depend less on the length of a conversation. Its significance is not that a model has suddenly learned something new, but that engineers may be able to obtain more useful work from models that already exist. Whether the reported advantages persist across independent systems is the next question the evidence must answer.
Image credit: Umberto / Unsplash. Unsplash Licence. Illustrative circuit-board photograph, not DFly2 hardware. Resized for web.
