Dual-Cache Latent Space Communication between Heterogeneous Language Models
The paper introduces XKV, a novel communication protocol that enables heterogeneous, frozen language models to exchange information via a learned translator of their KV caches, overcoming prior limitations in geometry and layer alignment to achieve superior accuracy and significantly faster inference compared to both text-based and previous latent-space communication methods.
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 modern landscape of artificial intelligence, large language models are increasingly acting not as solitary thinkers, but as members of a team. Imagine a group of researchers working on a complex mystery, where each person has read only a different set of documents. To solve the case, they must share what they know. In the digital world, these "researchers" are software agents, and the documents they hold are pieces of evidence hidden inside their internal memory. For these agents to work together, they need a way to pass information from one to another. Until recently, the standard method was to have one agent write a summary in plain English and send it to the next. While this is easy for humans to read, it is inefficient for machines. The sending agent must slowly construct the message word by word, and the receiving agent must then read those words and rebuild its own internal understanding from scratch. This process is like a relay race where the runners must stop, write a note, hand it over, and then spend time reading it before they can run again.
Researchers have been exploring a faster way to communicate, one that skips the writing and reading of words entirely. Instead of exchanging text, they tried to pass the raw, internal "thoughts" of one machine directly to another. This is akin to handing a runner a pre-written note that they can instantly absorb without reading. However, early attempts at this direct transfer hit a wall. They worked well only when the two machines were identical twins, or they forced the sender to compress all its knowledge into a single, generic summary that ignored what the receiver already knew. This meant the receiver was often handed a message that was either too vague or irrelevant to its specific needs. The challenge was to create a communication channel that was fast, worked between different types of machines, and allowed the receiver to ask for exactly the information it needed, rather than accepting a one-size-fits-all summary.
A team of researchers has now introduced a new system called XKV that solves these problems. Their approach treats the communication between two different language models as a joint effort rather than a simple handoff. In their system, the two models—one holding a piece of the puzzle and the other holding the rest—remain frozen in their original state, meaning their core intelligence is not altered. Instead, a lightweight translator sits between them. This translator looks at the internal memory of both models at the same time. It does not just summarize what the first model knows; it figures out what the second model is missing by comparing the two sets of memories. It then creates a compact, shared memory bank that blends the sender's evidence with the receiver's current state.
The innovation lies in how this shared memory is used. In previous systems, every part of the receiving model was forced to listen to the same single summary, like a classroom where every student hears the exact same lecture regardless of what they already understand. The new XKV system allows every single position in the receiver's memory to ask a specific question to this shared bank. It is as if each student in the class could raise their hand to ask for the specific fact they are missing, and the teacher would provide just that. The system then delivers a precise, tailored update to each part of the receiver's memory, filling in the gaps without disturbing the rest of its knowledge. This process happens in a fraction of the time it takes to write and read a text message, and it works even when the two models are built on completely different architectures, use different vocabularies, or have different numbers of internal layers.
The researchers tested this system across a wide variety of scenarios, pitting different families of language models against each other on five different reasoning tasks. These tasks involved answering questions that required combining evidence split between the two agents, such as connecting facts from different paragraphs to solve a multi-step problem. The results showed that the new system consistently outperformed both the traditional text-based method and the previous best attempt at direct memory transfer. On average, the new system improved the accuracy of the answers significantly, with some specific tests showing a jump of over four percentage points in exact match scores compared to the previous best method. Beyond just being smarter, it was dramatically faster. The translator component of the new system ran more than ten times faster than the previous leading method and was nearly seven times faster than the standard text-based approach.
The study also highlighted that this speed did not come at the cost of complexity. The new translator required 76 percent fewer trainable parameters than the previous leading method, making it much more efficient to build and run. Crucially, the system maintained its high performance even when the two models communicating were completely different from one another, such as a model from one company talking to a model from another, or a smaller model talking to a larger one. This flexibility suggests that the system can be deployed in real-world scenarios where diverse AI tools need to collaborate without needing to be retrained or forced into a uniform shape. The researchers found that the system worked best when it could build a joint memory from both sides, rather than relying on a summary from just one. This confirmed that the most effective communication happens when the sender and receiver are considered together, allowing the receiver to retrieve exactly what it needs from a shared pool of information.
The implications of this work extend beyond just making AI faster. By removing the need for models to speak in human language to understand each other, the system opens the door for more fluid and efficient multi-agent systems. These systems could coordinate complex tasks, such as analyzing vast amounts of data or solving intricate scientific problems, without the bottleneck of generating and re-reading text. The researchers demonstrated that it is possible to create a communication channel that is aware of the receiver's state, retrieves specific updates from a shared memory, and remains strictly cheaper and faster than the sender-centric summaries it replaces. This represents a shift from treating AI agents as isolated entities that must translate their thoughts into words, to treating them as a cohesive network that can share raw understanding directly. The findings suggest that the future of collaborative artificial intelligence may not lie in better language, but in better ways to share the silent, internal states that drive intelligence.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.