arXiv:2610.37935cs.AIOct 2026

Manuscript Offprint

arXiv:2610.37935

SkillMem: Compact External Skill Memory for Latent Multi-Agent Reasoning

Yuxuan Zhu, Mohammad Mohammadi Amiri, Pin-Yu Chen, Keerthiram Murugesan

ABSTRACT

Latent multi-agent systems reduce inference cost by keeping intermediate reasoning and inter-agent communication in continuous representations. Reusable skills, however, are commonly supplied as text or stored as layer-wise Key-Value states or skill-specific model parameters, introducing repeated processing or substantial per-skill storage. We introduce SkillMem, which represents each reusable skill as a small external latent memory and makes it directly available during latent multi-agent reasoning. A role-conditioned cross-attention reader allows the same memory to guide different agents according to their roles and current hidden states. We train the skill memories and shared reader through behavioral distillation, matching the change in token predictions induced by a textual skill while keeping the backbone frozen. For our experiments, we obtain textual skills from paired successful and failed multi-agent trajectories, although existing skills can also be compiled directly. Across six benchmarks and Qwen3 models ranging from 4B to 14B parameters, SkillMem provides strong gains for smaller backbones while preserving efficient latent multi-agent inference across model scales. We use the same 8 × 256 memory configuration across all evaluated model scales, requiring 9.6 KB of skill-specific storage per skill, including its retrieval embedding. For a library of 100 skills, SkillMem reduces total storage by more than 38× compared with alternative skill representations and achieves up to a 4.23× end-to-end inference speedup. These results show that compact procedural memories can be reused without sacrificing the efficiency of latent multi-agent reasoning.

1 INTRODUCTION

Large language model (LLM) based multi-agent systems (MAS) assign different roles to agents, allowing them to plan, critique, and refine a solution across multiple reasoning steps. This division of work can improve performance over a single model response, yet role specialization alone does not prevent recurring errors. Some of these errors can be addressed by procedures such as checking assumptions or verifying intermediate results. Skills (Zhang et al., 2025) capture such reusable procedures from previous experience and make them available for similar problems. In text-based MAS, agents express their reasoning and exchange intermediate results in natural language. Latent reasoning and latent MAS replace this text-based reasoning and communication with continuous representations, reducing the need to generate and process intermediate text (Hao et al., 2024; Shen et al., 2025; Zou et al., 2026). A textual skill is typically inserted into an agent's prompt, so the model must prefill the skill tokens each time the skill is used. Across repeated uses, this extra prefilling can erode the inference speed gained from latent reasoning and communication. This raises a question: how should agents reuse skills efficiently when their reasoning and communication remain in latent space?

To avoid repeatedly processing skill text, we can store skills in other forms. For example, a cached key-value (KV) prefix avoids recomputing a skill prompt's activations, but its storage grows with the prefix length and the number of layers (Jin et al., 2026). A skill-specific LoRA adapter stores parameter updates for the layers it modifies (Zhang & Qi, 2026). Although each adapter is smaller than the full model, storing one for every skill can still require substantial storage as the library

Figure

Figure 1: Accuracy and efficiency comparison. (a) Accuracy changes of SkillMem relative to TextMAS and LatentMAS using Qwen3-4B. (b) Total storage required by different skill representations as the skill library grows. (c) End-to-end inference speedup relative to TextMAS.

grows. These trade-offs motivate a compact but efficient, retrievable skill representation that agents can use directly during latent reasoning.

We introduce SkillMem, a framework that stores each reusable skill as a small set of learned latent memory vectors. The memory is external to the frozen backbone and can be retrieved independently of other skills. Given a task query, SkillMem selects a relevant skill and makes its memory available throughout latent multi-agent reasoning. Agents continue to exchange latent states, while the retrieved skill provides procedural guidance without adding its textual description to each agent's prompt. This separates the choice of a skill from the way an agent uses it.

Sharing a skill across agents requires more than giving every role the same memory vectors. A planner and a critic may use the same procedure at different stages and for different purposes. SkillMem therefore uses a role-conditioned reader to access the retrieved memory embedding at selected layers of the frozen backbone. The memory is stored once, while the reader uses the current agent's role to produce a role-dependent update to its hidden states. This allows agents to share procedural knowledge without requiring a separate skill representation for each role.

The remaining challenge is how to learn a useful skill memory. Rather than training the memory to reconstruct the skill description, we train it to preserve the skill's effect on model behavior. We first generate a response using the textual skill. We then measure how much the skill changes the probability of each token in that same response. Behavioral distillation trains the memory and shared reader to reproduce these changes while keeping the backbone frozen. In our experiments, the textual skills come from paired successful and failed multi-agent answer trajectories for the same task. Comparing these trajectories helps identify reusable procedures. The compilation step takes a textual skill as input, so it can use either a skill discovered from trajectories or an existing skill that has already proved useful.

Across six reasoning, question-answering, and code-generation benchmarks, SkillMem improves on the latent MAS baseline. On Qwen3-4B, accuracy rises from 17.97% to 35.63% on GPQA-Diamond and from 72.40% to 89.90% on GSM8K. Each skill requires only 9.6 KB of skill-specific storage. SkillMem achieves a 4.23×4.23\times end-to-end speedup over TextMAS and a 1.63×1.63\times speedup over Latent-MAS with text skills. With a library of 100 skills, its total storage, including the shared reader, is 38.3×38.3\times smaller than KV Skill and 86.6×86.6\times smaller than LoRA Skill. These results show that SkillMem can provide reusable skills for latent multi-agent reasoning, as summarized in Figure 1.

References (44)