arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.16469cs.DCcs.AI
收藏

B-PASTE:面向资源受限LLM代理的束感知模式引导推测执行

B-PASTE: Beam-Aware Pattern-Guided Speculative Execution for Resource-Constrained LLM Agents

Independent Researcher(独立研究者)

Yanfei Song

AI总结:

B-PASTE通过束感知技术,在资源受限条件下实现局部分支假设的推测执行,优先执行快路径并利用安全并行,提升端到端效率。

摘要:

LLM代理在交错的推理-行动循环中执行,未来工具调用必须等待当前推理步骤完成。这种串行依赖性增加了端到端延迟,并使模型在等待工具执行时处于空闲状态。PASTE通过推测可能的未来工具调用缓解这一瓶颈,但其工具导向性限制了推测范围。B-PASTE是一种束感知扩展,将推测从单个工具提升到局部分支假设,在严格资源约束下运行。B-PASTE维护一个受限制的未来执行子图束,按预期关键路径减少量而非原始执行概率对分支进行排序,并在临时空闲资源上调度高价值分支前缀。它显式建模协同运行干扰、下游解锁价值和状态安全约束,使系统在早期完成解锁有价值未来工作时优先执行串行快路径,同时在低竞争条件下利用安全并行。该设计对边缘部署尤为重要,因为推测工作不能从延迟关键的权威执行中窃取稀缺资源。在Thor级边缘环境中的初步内部测试显示,端到端速度提升高达1.4倍,表明在紧资源预算下分支感知推测执行仍有效。

英文摘要:

LLM agents execute in an interleaved reasoning-and-action loop, where future tool calls cannot be launched until the current reasoning step completes. This serial dependency inflates end-to-end latency and leaves the model idle while waiting for tool execution. Prior work, Pattern-Aware Speculative Tool Execution (PASTE), mitigates this bottleneck by speculating likely future tool invocations from mined control-flow and data-flow regularities. However, PASTE is tool-centric and speculates only individual invocations rather than bounded future branches. We propose B-PASTE, a beam-aware extension that lifts speculation from single tools to local branch hypotheses under strict resource constraints. B-PASTE maintains a bounded beam of future execution subgraphs, ranks them by expected critical-path reduction rather than raw execution probability, and schedules only high-value branch prefixes on transient slack resources. It explicitly models co-run interference, downstream unlock value, and state-safety constraints, enabling the system to prioritize serial fast-path execution when early completion unlocks valuable future work, while still exploiting safe parallelism under low contention. This design is especially important for edge-side deployments, where speculative work must not steal scarce resources from latency-critical authoritative execution. Preliminary internal testing on Thor-class edge environments shows up to 1.4X end-to-end speedup, suggesting that branch-aware speculative execution remains effective even under tight resource budgets.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑