NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

$n$-Musketeers: Reinforcement Learning Shapes Collaboration Among Language Models

Ryozo Masukawa, Sanggeon Yun, Hyunwoo Oh, SuhgHeon Jeong, Raheeb Hassa, Hanning Chen, Wenjun Huang, Mahdi Imani, Pietro Mercati, Nathaniel D. Bastian, Mohsen Imani · DOI

Abstract

Recent progress in reinforcement learning with verifiable rewards (RLVR) shows that small, specialized language models (SLMs) can exhibit structured reasoning without relying on large monolithic LLMs. We introduce soft hidden-state collaboration, where multiple heterogeneous frozen SLM experts are integrated through their internal representations via a trainable attention interface. Experiments on Reasoning Gym and GSM8K show that this latent integration is competitive with strong single-model RLVR baselines. Ablations further reveal a dual mechanism of expert utilization: for simpler arithmetic domains, performance gains can largely be explained by static expert preferences, whereas more challenging settings induce increasingly concentrated and structured expert attention over training, indicating emergent specialization in how the router connects to relevant experts. Overall, hidden-state collaboration provides a compact mechanism for leveraging frozen experts, while offering an observational window into expert utilization patterns and their evolution under RLVR.

Introduction

As Small Language Models (SLMs) become increasingly capable of structured reasoning, the AI community is shifting toward multi-agent systems that compose collections of off-the-shelf experts. However, coordinating these experts remains a significant challenge. Current paradigms typically fall into two categories: output-level collaboration, such as text-based debate, which is token-heavy and opaque; or hard routing, which is computationally efficient but brittle, often limiting cross-expert interaction.

This paper addresses a fundamental question: can a policy trained purely on outcome-based reinforcement learning (RLVR) learn to extract useful information from the internal hidden states of frozen experts? We propose a "soft hidden-state collaboration" method that exposes expert representations directly to a policy model, allowing us to observe if and how RLVR induces functional specialization without explicit routing supervision.

Methods: Hidden State Soft Prompting

Comparison of collaboration strategies: (a) Output-level, (b) Hard routing, and (c) the proposed Hidden State Soft Prompting.

Our architecture avoids retraining expert models or relying on discrete text aggregation through a four-stage process:

  1. Hidden State Extraction: Given a prompt, the system runs it through a set of frozen expert SLMs (e.g., math specialists, coding specialists, and generalists) and extracts their final-layer hidden states via last-token pooling.
  2. Latent Alignment & Bottleneck: These hidden states are aligned via linear projections and passed through a Perceiver-style cross-attention bottleneck. This compresses varying expert representations into a fixed number of trainable latent context tokens ($m$ tokens).
  3. Soft Prompting: These context tokens are prepended to the main trainable policy model (a LoRA-adapted Qwen-2.5-3B-Instruct) as a soft prompt.
  4. End-to-End RLVR: The policy and the attention bottleneck are trained end-to-end using the GRPO algorithm. The only supervision signal is the final outcome (e.g., correctness of a math solution), forcing the system to autonomously determine how to weigh and combine expert inputs.

Key Insights and Results

RLVR Induces Emergent Specialization

One of the most significant findings is that RLVR naturally differentiates experts without explicit labels. Over the course of training, the attention mechanism shifts from a uniform distribution to highly concentrated allocations. The system actively learns to favor useful experts while suppressing weaker ones (such as GPT-2).

Reward progress and change in attention weights during training, showing emergent specialization and correlation between selective attention and performance.

We observed that "routing entropy"—a measure of how uniformly the model pays attention to experts—decreases monotonically during training. This entropy has a strong negative correlation with reward (Spearman $\rho = -0.48$), suggesting that selective expert usage is a primary driver of performance gains.

The "Goldilocks" Rule of Expert Utility

Adding latent experts is not a universal solution; its effectiveness is highly regime-dependent:

  • Middle-Ground Success: On Reasoning Gym Arithmetic tasks, the 3-expert team boosted accuracy from 52.34% to 75.26%.
  • Saturated Tasks: If a task is too easy and the base model is already high-performing (e.g., Logic tasks at 96.88%), adding experts introduces structured noise and can drop performance (e.g., down to 82.81%).
  • Overwhelming Difficulty: In extremely hard algorithmic settings, the experts provided little marginal benefit.

Coarse Signatures vs. Fine Traces

Surprisingly, ablation studies showed that pooling the first token's hidden state performed as well as the last token's. This suggests the policy is not reading fine-grained, step-by-step reasoning traces from experts. Instead, it likely uses hidden states as coarse "model signatures" to regularize its own generation process.

Conclusion and Limitations

While hidden-state collaboration provides a powerful observational window into expert utilization, it faces challenges. The method exhibits high run-to-run variance as the expert team grows, indicating instability in coordinating multiple experts under sparse RLVR signals. Additionally, while lighter than text-based debate, the requirement for a forward pass through all experts makes it computationally heavier than hard routing.

Future work will investigate selective execution to save compute and explore finer-grained specialization as SLMs continue to evolve. Ultimately, $n$-Musketeers demonstrates that latent-level integration is a viable and insightful path for multi-model reasoning systems.

Summary updated

BibTeX
@misc{masukawa2026n,
  author = {Ryozo Masukawa and Sanggeon Yun and Hyunwoo Oh and SuhgHeon Jeong and Raheeb Hassa and Hanning Chen and Wenjun Huang and Mahdi Imani and Pietro Mercati and Nathaniel D. Bastian and Mohsen Imani},
  title = {{$n$-Musketeers: Reinforcement Learning Shapes Collaboration Among Language Models}},
  year = {2026},
  eprint = {2602.09173},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.09173},
}
Figure