Flide:通过精确状态分叉加速决策推理
研究论文 · 2026/11/10
Flide 是一种高效且精确的推理引擎,用于加速决策模型(如 Jev)的推理。它通过 ForkAttention 将决策请求的逻辑树结构与物理执行解耦,在单个扁平化 token 流中利用 GPU 常驻索引处理标准注意力和循环 Gated DeltaNet 层,确保每个查询分支的计算与独立前向传播完全一致。Flide 用紧凑的预记录执行图支持多样请求混合,并允许从早期检查点恢复扩展的代理历史。在公开混合和决策模型上的评估表明,Flide 比 vLLM 和 SGLang 快最多 9.5 倍,且总变差距离最接近 float32 参考。
Flide 为 LLM 代理系统中的决策模型提供了高效且精确的推理方案,显著提升推理速度并保持数学精确性,对延迟敏感的代理应用具有重要价值。
Decision models such as Jev have emerged as a highly promising paradigm for LLM agent systems, providing lightweight and reliable categorical reasoning for rapid System One execution. However, existing generation-oriented inference engines fail to support these workloads effectively, suffering from severe prefix recomputation overheads or distorted output probabilities. To address this challenge, we propose Flide, an efficient and exact inference engine that decouples the logical tree structure of a decision request from its physical execution within a single flattened token stream. Through ForkAttention, Flide navigates request dependencies using GPU-resident indices across both standard attention and recurrent Gated DeltaNet layers, guaranteeing in exact arithmetic that every query branch evaluates identically to an isolated forward pass. By expressing branch topologies directly in GPU-resident metadata, Flide accommodates diverse request mixtures with a compact set of pre-recorded execution graphs while enabling expanding agent histories to resume from checkpoints saved in earlier passes. Extensive evaluations on public hybrid and decision models demonstrate that Flide answers queries up to 9.5 times faster than vLLM and SGLang while staying closest to a float32 reference in total variation distance. By unifying physical execution throughput with mathematical exactness, Flide establishes a principled foundation for scalable, latency-critical decision intelligence in agent systems.