Rust in Everything
← Papers

Flide: Accelerating Decision Inference with Exact State Forking

Bobo Li, Jiajia Song, Hao Fei, Wynne Hsu, Mong Li Lee

2026-11-10▲ 31arXiv 2610.42148v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

Flide is an exact inference engine that flattens each round of decision requests into one token stream while preserving each question's standalone computation through GPU-resident metadata and state forking across attention and Gated DeltaNet layers.

Problem

Decision models answer several questions about a shared state, but generation-oriented engines treat each question as an independent sequence, repeatedly computing or reloading the shared prefix. On hybrid models, prefix caches restore recurrent states only at block boundaries, so every question and agent step recomputes tokens past the last boundary. Multi-item scoring avoids some recomputation but inserts delimiter tokens that change hidden states and output probabilities. Dynamic batching also changes floating-point reduction orders, which can make answers fluctuate with server load.

Method

Flide separates the logical tree of a decision request from its physical execution by laying a round out as one flat token stream without padding and recording request, branch, and position metadata on the GPU. ForkAttention lets full-attention layers enforce that each question token attends only to its own state trunk and its own question, matching the standalone prompt. For Gated DeltaNet layers, Flide runs two calls: the first processes all state segments and outputs the recurrent state at the end of each state plus convolution windows, and the second processes all question segments, starting each question from its request's state through an index without copying state. Flat-graph execution keeps round-dependent variables in GPU-resident buffers and captures length-bucketed CUDA graphs, so different request mixtures reuse the same launch configuration. Flide also checkpoints recurrent states and attention keys/values to resume growing agent histories, and offers an optional batch-invariant mode that fixes reduction orders.

Results

  • On Qwen3.5 average, Flide reports 18.0 ms RACE one-question latency versus 29.4 ms for vLLM and 36.8 ms for SGLang; for multi-question workloads it reaches up to 9.5 times lower latency and 8.5 times higher throughput than the best baseline. §4.2
  • Flide is faster even with a single question per state, cutting the latency of a lone request by up to 3.2 times on the smallest Qwen3.5 model, while under load it matches the best baseline where model computation dominates. §4.2
  • Averaged over Qwen3.5 sizes, Flide's top answer agrees with the float32 reference most often on every workload; its accuracy stays within 1.2 points of vLLM's in every cell, and its answers change at most 0.2 percent between one and 64 clients versus up to 1.7 percent for SGLang and 3.2 percent for vLLM. §4.3
  • Multi-item scoring moves the answers it shares; on DI average total variation Flide is 0.44 versus 0.64 for vLLM, 0.66 for SGLang, and 4.84 for multi-item scoring. §E
  • In the ablation on Qwen3.5-4B, removing CUDA graphs raises DI latency from 8.8 to 76.1, while removing forks raises QuALITY all latency from 135.6 to 1868.5 and lowers DI throughput from 48.9 to 20.7 requests per second. §4.4
  • On recurring states with caches enabled, Flide answers a recurring QuALITY article in 18.4 ms versus 39.1 ms for vLLM and 75.0 ms for SGLang, and stays ahead by 2.6 to 44 percent under load on single-question workloads and by 1.6 to 2.1 times on DI. §F

Limitations

  • Experiments leave exactness under floating point qualified: Proposition 3.1 holds in exact arithmetic, while in floating point differences remain at the rounding level and the default mode can change up to 0.2 percent of answers with load; bitwise identity requires the optional batch-invariant mode.
  • Results are not uniformly faster in every cell or model size; for example, QuALITY one-question latency is 340 ms for Flide versus 337 ms for vLLM on Qwen3.5 27B, and 405 ms versus 400 ms on Gemma 4 31B, leaving large-model low-branch scenarios without a clear lead.
  • The constructed workloads are bounded: every engine reads at most 26 options per choice question, 10 levels per score question, and 64 questions per request, and QuALITY is cut to fit 3,600 tokens, leaving larger option counts, question counts, and longer contexts untested.
  • The paper does not include a dedicated limitations section; these limitations are stated by the paper or clearly left open by its experimental setup.

Key points

  • A decision request is a state of P tokens plus n questions; in exact arithmetic each question's option probability depends only on the state and that question. §3.1
  • Flide flattens an entire round into one continuous token stream, with metadata giving each token its request index, branch index, and sequential position. §3.2
  • Full-attention layers use a visibility rule requiring the key and query to share a request, the key to be in the trunk or the same question, and the key position not to exceed the query position. §3.2.1
  • Gated DeltaNet layers run in two calls: state segments first to produce the recurrent state at the end of each state and convolution windows, then question segments start from that state through an index without copying. §3.2.2
  • Proposition 3.1 states that in exact arithmetic Flide's hidden state at any question token equals the hidden state from processing the standalone prompt, regardless of other requests and questions in the round. §3.2.3
  • Flat-graph execution stores segment lengths, positional indices, key ranges, and state indices in device buffers, then reuses captured graphs indexed by stream capacity so different request mixes share the same launch shape. §3.3
  • For growing agent histories, Flide checkpoints recurrent states and convolution windows plus attention keys and values at an internal position, then resumes later requests from the checkpoint when their prefix matches. §3.4
  • The optional batch-invariant mode fixes the sum order of every output element and gives every question its own attention tiles and Gated DeltaNet chunks, so answers keep the same bits under any load on the same hardware and software. §3.5

Mind map

Flide exact decision inference
Problem
Repeated prefix computation
Delimiter probability shifts
Batch-dependent floating point
Method
ForkAttention
Flat token stream metadata
Gated DeltaNet two calls
Checkpoints for growing states
Batch-invariant mode
Selective readout
Execution
GPU-resident round metadata
Length-bucketed CUDA graphs
No padding between requests
Graph replay by stream capacity
Exactness
Proposition 3.1 equality
Induction over layers
Float32 rounding tests
Results
Up to 9.5 times lower latency
Closest to float32 reference
Ablation shows forks and graphs
Recurring states resume fast
Limitations
Exact only in exact arithmetic
Not fastest in every large-model cell
Workload caps on options and length