← Latest papers
🤖 AI

Nexus: Depth-Adaptive KV-Cache Splicing and Retrieval-Decoupled Tool Routing for Agentic LLMs on Unified Memory

Nexus accelerates agentic LLMs on unified memory by decoupling tool routing from expensive schema prefilling via a semantic lookaside buffer and compressed signatures, while employing a depth-adaptive KV-cache splicing mechanism with fallback re-decoding to maintain output fidelity despite rotary position embedding drift.

Original authors: Mustafa Arslan

Published 2026-08-24
📖 5 min read🧠 Deep dive

Original authors: Mustafa Arslan

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the rapidly evolving world of artificial intelligence, a specific type of software agent is learning to act on our behalf. These digital assistants do not just answer questions; they reach out to use tools, like checking a calendar, searching a database, or sending an email. To do this, the software must first understand a detailed instruction manual for every single tool it might use. As the number of available tools grows into the hundreds, these manuals become enormous, filling up the computer's short-term memory with repetitive text before the agent can even begin to think. This creates a bottleneck: the more tools the agent has, the longer it takes to start working, because the computer must re-read and re-process these massive instruction sets every single time it takes a new step.

Researchers have been looking for a way to bypass this bottleneck. One idea was to save the computer's work on these instructions in a compressed form, like a bookmark, and simply paste it back into the memory whenever needed. This sounds efficient, but it runs into a fundamental problem with how modern AI models track time and order. These models use a system to remember where they are in a sequence of words, and if you move a saved chunk of work to a different spot in the memory, the model gets confused about the order of events. It is like taking a page from the middle of a book and pasting it into a different chapter; the story might still make sense, but the subtle connections between sentences can break, leading to errors.

A team of independent researchers has now built a system called Nexus to navigate this tricky landscape. They discovered that while you cannot simply move these saved instruction blocks around without risk, you can do so if you are careful about where you place them and how you fix the errors that inevitably creep in. Their work, tested on a specific type of powerful computer chip found in modern laptops, reveals a precise boundary for how far you can move these blocks before the AI's output becomes unreliable. They found that if the block is moved too far, the model's understanding of the sequence drifts, but this drift is predictable. The researchers designed a method to detect when this drift gets too large and automatically re-reads just the necessary part of the instructions to stitch the memory back together perfectly.

The most significant finding from this work is that the system does not need to rely on these risky memory shortcuts for its most critical task: deciding which tool to use. Instead of forcing the AI to read the massive instruction manuals to make a choice, Nexus uses a separate, ultra-fast lookup system. This system scans a compact list of tool names and descriptions to find the right match in microseconds. Once the tool is chosen, the AI generates the necessary arguments using a tiny, compressed summary of the instructions—often just a few dozen words—rather than the full, bloated text. This approach keeps the main memory clean and allows the agent to start its work much faster, finding the first word of its answer in less than half the time it would take to re-read the full manuals.

The researchers also rigorously tested the limits of their memory-splicing technique. They confirmed that while the method works well for short distances, there is a hard limit. If the saved block is placed more than 256 positions away from where it was originally created, the errors become too significant to ignore. At this point, the system stops trying to patch the memory and instead falls back to the slower, but safer, method of re-reading the full text. This ensures that the final output is always exactly as accurate as if the computer had never tried to shortcut the process. They also proved that a simpler, cheaper method of guessing when to stop the shortcut—based on a quick check of the memory's internal state—does not work, as it fails to predict the errors reliably.

In their tests, the Nexus system managed to handle a registry of 250 different tools without slowing down, maintaining a high success rate in choosing the correct tool. When the context was moderate, the system was up to 1.7 times faster than the traditional method of re-reading everything. However, as the conversation grew longer and deeper, the speed advantage naturally faded, eventually matching the performance of the standard method. This is not a failure, but a feature of their design: the system prioritizes getting the answer right over being fast. It guarantees that the output is never worse than the standard method, even if it sometimes takes the same amount of time.

The work was conducted on a single type of computer chip with a unified memory architecture, which allows the processor to access data directly without moving it between different parts of the machine. This specific hardware setup was essential for the memory-splicing technique to work, as it requires direct physical access to the memory cells. The researchers are clear that while the speed numbers are specific to this one setup, the underlying principles—the limits of moving memory blocks and the necessity of a separate routing system—appear to be universal truths about how these models function. They have provided a clear map of where the shortcuts work, where they break, and how to build a system that respects those boundaries to deliver both speed and reliability.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →