arXiv:2610.30215cs.LGOct 2026

Manuscript Offprint

arXiv:2610.30215

AI Mindmeld: A Latent Interconnect Protocol

Siavash Golkar, Jake Kovalic, Shirley Ho

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models (LLMs) are powerful tools for science, and tool calling enables them to act as autonomous agents that consult specialist models, run calculations and carry out experiments. To guide an agent's reasoning, however, specialist information must enter the LLM's context. Current-generation LLMs generally require that information to be translated into text, images, audio or video—a severe bottleneck between models that natively process rich, high-dimensional representations. We advocate direct representation exchange: a mindmeld through which an LLM could receive many properties together, including information it would not think to request. Such an interface should be extensible, making new specialists easy to add; flexible, allowing their information to support changing questions and tasks; and compositional, enabling independently connected specialists to work together without joint training.

We introduce the Latent Interconnect Protocol (LIP) to support this exchange. Its connectors are learned mappings that bring specialist representations directly into the LLM's internal states. Keeping the language model frozen and only training the connectors makes this approach practical as LLMs grow and evolve. Our demonstration connects three protein and three small molecule specialists to three LLMs, Gemma 3 (4B and 12B parameters) and Kimi K2.6 (1T total, 32B active parameters) [53], while keeping all pretrained models frozen. Independently trained connectors provide useful information without changing the LLM or existing connectors, while supporting both familiar and new question types about unseen objects. We also demonstrate zero-shot transfer to cross-domain tasks without joint training. Task performance and compositionality generally improve with LLM capability, with particularly strong gains in zero shot task transfer. The demonstration also exposes limitations of current LLMs: they were not trained to treat specialist representations as native inputs, and access to information does not ensure its reliable interpretation, integration or use during reasoning. We call on specialist developers to provide consistent representation interfaces and, especially, on LLM developers to train models to receive, combine and reason with these inputs. Together, these efforts could expand the information available to scientific agents while preserving the flexibility of conventional tools. We release data, pretrained connectors, and code for training, evaluation and interactive inference: https://github.com/PolymathicAI/AI-Mindmeld.

1 Introduction

Large language models (LLMs) are powerful tools for interpreting scientific literature, developing hypotheses and reasoning about experiments. Tool calling expands their capabilities further, en-

(a) Latent interconnect vs scientific tool calling

Figure

(b) Adapted latent injection

Figure

Figure 1: Latent Interconnect Protocol alongside tool calling. (a) The tool-output route returns selected properties as words or numbers; the latent route supplies specialist representations through learned connectors. The question and outputs are illustrative, and one agent can use both routes. (b) Connectors selected from the registry write the protein and compound representations into separate prompt slots at the marked layers. The ⊕\oplus symbols denote the mixing operation defined in Section 2.1. The layer choices are schematic and may differ between specialists. Each representation occupies one token here; LIP also permits multiple-token slots. Registry entries are trained independently, and new connectors can be added without changing the shared language model or existing connectors. The displayed models and domains illustrate the registry’s organization.

abling them to act as autonomous agents that retrieve data, run calculations and interact with experimental systems [64, 78]. Such agents have been used to plan chemical syntheses [9], operate laboratory systems [8] and answer biomedical questions using external tools and databases [31]. They can also consult specialist machine-learning models trained on scientific data, gaining access to predictions and knowledge about proteins, molecules, cells and other systems [42].

Specialist models may produce many kinds of artifacts, but their contents can inform an LLM's reasoning only if the LLM can ingest them into its context. For current-generation LLMs, this generally means text, images, video or audio—the communication media used by humans. Routing information between models through these formats imposes a severe bandwidth bottleneck, even though both models operate on high-dimensional representations (Figure 1a). As an example, for a complex query regarding a protein sequence, an agent may need to make explicit queries to specialized tools to calculate or retrieve properties. Making these properties explicit requires selecting them, retrieving or computing them, and adding the results to the agent's context. Direct representation exchange offers a richer channel: a mindmeld in which an LLM receives specialist information in latent form. One representation can carry many properties together, including information the LLM does not know or would not think to request.

A framework for this richer exchange should preserve the strengths that make tool use powerful. It should be extensible, making new specialist models easy to add; flexible, allowing the same representations to support different questions and tasks; and compositional, enabling information from independently added specialists to be used together without training on each new combination.

Furthermore, frontier language models embody substantial training investment and continue to evolve through new releases [37, 53]. Requiring each specialist to adapt and maintain its own LLM would make community-wide extension costly to sustain. A practical interface should therefore keep the shared LLM frozen and confine alignment to connectors that are economical to fit and refit as models evolve. Together, these properties would allow a scientific agent to draw on a growing set of models as its questions change.

Prior work connects scientific representations to LLMs [49, 70, 83], while the closest framework for independently composed connections focuses on perceptual modalities [55]. Updating the LLM during alignment compromises independent extensibility by changing the shared interface [70], and task adaptation through in-context demonstrations is distinct from composing independently connected specialists without examples of their combination [83]. More fundamentally, these interfaces constrain specialist information to the input embedding layer [49, 70, 83, 55], despite evidence that deeper layers capture higher-level linguistic information [67] and that multilayer injection improves performance [52] (see also Section 4.5). What remains missing is a general framework for specialist models that jointly supports flexibility, compositionality and extensibility while allowing representations to enter beyond the input embedding layer.

We introduce the Latent Interconnect Protocol (LIP) to implement this form of communication. Under LIP, each specialist is linked to the LLM by a connector: a learned mapping from the specialist's representation to the LLM's internal states at designated positions in a prompt (Figure 1b). Our ablations support injecting representations into deeper layers: a single write at a selected internal layer outperforms a single input write, while injection at six layers gives the highest average performance (Section 4.5). In our implementation, connectors are trained independently while the specialists and shared LLM remain frozen, so a new specialist can be added without changing the LLM or existing connectors. A short sentence can then bring together representations from several specialists. The LLM's existing knowledge and reasoning provide the basis for using these independently supplied representations together. LIP complements interfaces such as the Model Context Protocol (MCP) [4]; Python execution, database queries and other tools remain indispensable.

Our demonstration connects three protein specialists and three small molecule specialists to three LLMs, Gemma 3 (4B and 12B parameters) and Kimi K2.6 (1T total, 32B active parameters) [53]. These connections support questions about unseen objects and transfer to new question types. We also test whether independently trained connectors can combine information about the same protein and answer questions about relationships between proteins and compounds. Task performance and compositionality generally improve with LLM capability, with particularly strong gains in zero shot task transfer. Together, these demonstrations show how independently connected specialists can extend an LLM's capabilities across changing questions and combinations of information sources.

Our implementation illustrates a broader limitation of connecting specialists to current LLMs: the LLM was not trained to interpret their representations as native inputs. Alignment can make specialist information accessible without ensuring that the LLM recognizes what kind of input it has received, combines it reliably with other sources, or uses it consistently during generation. For example, the LLM sometimes describes an injected protein representation as a familiar word or protein name, and generating a rationale before answering reduces protein property prediction performance across all three LLMs.

Realizing the broader vision calls for a community effort on both sides of the interface. For LLM developers, the opportunity is to make specialist representations a native part of model training, explicitly teaching models to receive, combine and reason with them. Specialist-model developers can support this direction by exposing representations through consistent, documented interfaces. Shared conventions would make new models easier to connect without requiring them to learn the same representations. We call on the community to develop these capabilities so that scientific agents can use the information specialist models already encode, at the bandwidth of their representations and with the flexibility of ordinary tools.

References (78)