AI News HubLIVE
Original source2 min read

Dual-Flow Transformers: Decoupling the Primary Prefill Path from Additional Decode Computation

A new paper proposes Dual-Flow Transformers, which decouple the primary prompt-prefill path from auxiliary decode-only computation. The auxiliary flow activates only after the final prompt position, adding continuation-prediction compute without writing persistent state, and achieves lower validation loss in matched-token comparisons. In MoE models, the design enables phase-specific expert allocation.

SourcearXiv AIAuthor: Liming Liu, Mingze Wang, Tuo Zhao

-->

[Submitted on 31 Jul 2026]

Title:Dual-Flow Transformers: Decoupling the Primary Prefill Path from Additional Decode Computation

View a PDF of the paper titled Dual-Flow Transformers: Decoupling the Primary Prefill Path from Additional Decode Computation, by Liming Liu and Mingze Wang and Tuo Zhao

View PDF HTML (experimental)

Abstract:As large language models serve more requests, cumulative inference cost is becoming increasingly important relative to one-time training cost. The two inference phases stress hardware differently: prompt prefill is parallel and typically compute-bound, whereas autoregressive decode is sequential and often memory-bandwidth-bound. Conventional width or depth scaling increases both costs together because every added layer is evaluated in both phases. We ask whether additional learned computation can instead be allocated to continuation prediction while preserving the prompt-wide primary computation and a single persistent key-value (KV) cache. We introduce the Dual-Flow Transformer. Its primary flow is a complete causal language model that processes the prompt and writes the KV cache. The auxiliary flow is omitted during prompt processing and activated only from the final prompt position onward, adding continuation-prediction computation without writing persistent state or influencing the primary flow. The two flows share major attention, MLP, and output matrices, while using separate token embeddings and lightweight coupling. Sharing weights and the primary cache also creates opportunities to reuse loaded weights and cached keys and values during grouped execution. Across matched-token comparisons, Dual-Flow achieves lower validation loss across architectures and data configurations. In MoE models, the separation makes primary and auxiliary expert fan-outs independent controls over prompt cost, continuation cost, and predictive quality. We study two regimes: increasing decode computation at fixed prefill expert computation, and reallocating a fixed decode expert budget between the two flows. These experiments expose a prefill-decode-quality trade-off and demonstrate the potential of phase-specific expert allocation.

Comments: 18 pages

Subjects:

Artificial Intelligence (cs.AI)

Cite as: arXiv:2608.12385 [cs.AI]

(or arXiv:2608.12385v1 [cs.AI] for this version)

https://doi.org/10.48550/arXiv.2608.12385

arXiv-issued DOI via DataCite

Submission history

From: Liming Liu [view email] [v1] Fri, 31 Jul 2026 17:18:36 UTC (117 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled Dual-Flow Transformers: Decoupling the Primary Prefill Path from Additional Decode Computation, by Liming Liu and Mingze Wang and Tuo Zhao

View PDF

HTML (experimental)

TeX Source

view license

Current browse context:

cs.AI

new | recent | 2026-08

Change to browse by:

cs

References & Citations

NASA ADS

Google Scholar

Semantic Scholar

Loading...

Data provided by:

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)