Nexus Speeds Agentic LLM Tool Routing with KV-Cache Splicing

Mustafa Arslan· August 24, 2026 View original

Key takeaways

  • Nexus significantly reduces time-to-first-token for agentic LLMs by decoupling tool routing from schema prefill.
  • It uses a semantic lookaside buffer and compressed textual signatures for efficient tool selection.
  • Depth-adaptive KV-cache splicing further optimizes performance while maintaining output fidelity.
  • The approach offers substantial context token savings and improved routing accuracy at scale.

Who benefits

AI/ML EngineeringSoftware DevelopmentCloud ComputingRoboticsAutomation

Summary

Nexus introduces a novel approach to accelerate agentic LLMs by decoupling tool routing from expensive schema prefill costs using a semantic lookaside buffer and compressed textual signatures. It also employs depth-adaptive KV-cache splicing to further speed up time-to-first-token, offering significant performance gains while maintaining output fidelity.

This research introduces Nexus, a system designed to significantly improve the performance of agentic large language models (LLMs) by addressing the computational burden of tool routing. Traditional methods often re-encode verbose tool schemas with every turn, leading to prefill costs that scale quadratically with sequence length and dominate the time-to-first-token (TTFT). Nexus tackles this by decoupling tool routing from the schema prefill cost. It utilizes an INT8 semantic lookaside buffer (SLB) with a calibrated cross-encoder to select tools via retrieval. Arguments are then generated over a highly compressed textual signature, drastically reducing the need for extensive key/value (KV) cache splicing. This depth-independent approach maintains high routing accuracy even with a large registry of 250 tools, achieving a 1.66x faster first-argument token and saving approximately 80% of main-context tokens. Additionally, Nexus incorporates depth-adaptive KV-cache splicing, where a compiled schema KV block is directly inserted into the live context. While this offers TTFT speedups at moderate depths, it is bounded by rotary position embedding (RoPE) phase drift. Nexus ensures output fidelity by repairing the seam with a depth-adaptive suffix redecode, escalating to a full re-prefill only when necessary, guaranteeing a "never-regress" property on output quality.

Why it matters

For professionals building and deploying agentic LLMs, Nexus offers a critical solution to improve latency and efficiency, especially as tool registries grow. Faster time-to-first-token and reduced context window usage translate directly into more responsive and cost-effective AI agents.

How to implement this in your domain

  1. 1Evaluate current agentic LLM architectures for prefill bottlenecks related to tool schema re-encoding.
  2. 2Investigate implementing a semantic lookaside buffer (SLB) for tool selection to decouple routing from schema prefill.
  3. 3Explore generating arguments over compressed textual signatures instead of full KV-cache splicing for tool calls.
  4. 4Consider depth-adaptive KV-cache splicing techniques to optimize context management and reduce latency for moderate-depth interactions.
  5. 5Benchmark the performance gains and fidelity guarantees of these techniques on specific LLM models and hardware configurations.

Original post by Mustafa Arslan

"arXiv:2608.20397v1 Announce Type: new Abstract: Agentic large language models (LLMs) on the Model Context Protocol (MCP) re-encode verbose tool schemas every turn, so prefill - quadratic in sequence length - dominates time-to-first-token (TTFT) as the tool registry grows. Nexus's…"

View on X

Originally posted by Mustafa Arslan on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses

More in AI Engineering & DevTools