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

Mosaic: Multi-Session Agentic Reinforcement Learning

Yilong Xu, Minrui Xu, Xinyu Zhou, Xiang Long, Haochen Tan, Zhijiang GuoarXiv 2026

Modern Large Language Model (LLM) agents are increasingly complex. To handle long-horizon tasks, they don't just talk in a single linear thread; they use advanced tricks like context compaction (summarizing their own history to save memory) and subagent forking (spinning off mini-agents to handle subtasks).

However, most Reinforcement Learning (RL) methods used to train these agents still assume a "single-session" world. A new paper from researchers at HKUST and Huawei introduces Mosaic, a framework designed to bridge this gap by treating multi-session trajectories as first-class citizens in the RL training loop.

TL;DR

Mosaic is a hierarchical reinforcement learning framework for LLM agents that operate across multiple sessions (like context compaction or subagent forking). By combining a global, session-aware advantage signal with local rewards based on "marginal information gain," Mosaic trains agents that are not only more accurate but also significantly more efficient in how they allocate their computational resources.

What Problem Does This Paper Address?

Standard Agentic RL typically assumes a single, continuously growing context window. But in production, agents hit context limits. To survive, they must compress their history or delegate tasks. These actions create a "multi-session" trajectory—a tree or sequence of distinct interaction segments.

The current state-of-the-art approach for training these agents is "broadcasting": if the agent eventually finds the right answer, every single token in every session gets a "good job" reward. The authors argue this is too blunt. It doesn't distinguish between a session that provided a breakthrough and one that was a waste of time. Furthermore, it doesn't penalize an agent for being "chatty" or inefficient with its sessions.

Figure 1: The mismatch between single-session training assumptions and the reality of multi-session agent execution.

Methods

Mosaic builds on Group Relative Policy Optimization (GRPO), a critic-free RL algorithm, and introduces a two-level hierarchical optimization:

  1. Session-Aware Trajectory-Level Advantage: Instead of a flat reward for success, Mosaic modulates the reward based on session count.
  2. For Successful Trajectories: Fewer sessions = higher reward (encouraging efficiency).
  3. For Unsuccessful Trajectories: More sessions = higher reward (encouraging exploration over giving up early).
  4. Session-Level Advantage Shaping: This provides a "process reward" for each individual session. It calculates the marginal information gain: how much more likely the model is to know the ground-truth answer after a session compared to before it.
  5. Type-Conditioned Normalization: Since a "compaction" session (summarizing) has a different information profile than a "normal" search session, Mosaic normalizes these rewards separately to ensure the agent doesn't become biased against necessary but low-gain tasks like memory management.
Figure 2: The Mosaic pipeline, showing how global trajectory rewards and local session-level gains are fused to update the policy.

Datasets

The researchers evaluated Mosaic on BrowseComp, a challenging benchmark requiring agents to navigate the web to find "entangled" information that isn't easily accessible. They used Qwen3.5-4B as the base model. For RL training, they utilized REDSearcher_RL_1k, a dataset of 1,000 complex deep-search tasks.

Key Insights and Ideas

  • Efficiency is a Trainable Trait: By penalizing session count for successful runs, the authors proved that agents can be taught to "think more with less," reducing the overhead of long-horizon tasks.
  • The "Aha!" Moment as a Reward: Using the change in log-likelihood of the correct answer as a reward signal effectively captures the utility of a session. If a session brings in a key piece of evidence that makes the answer obvious to the model, that session gets a high reward.
  • Stabilizing Heterogeneous Sessions: One of the cleverest bits is type-conditioned normalization. Without it, the agent might learn to avoid compacting its context because compaction sessions naturally show lower "information gain" than active search sessions, even though they are vital for long-term survival.

Key Results

Mosaic demonstrated clear superiority over standard broadcasting and single-session baselines:

  • Accuracy Boost: Mosaic achieved a 10.1% relative improvement in accuracy over the broadcasting baseline in context compaction scenarios.
  • Higher Efficiency: In the compaction scenario, Mosaic reduced the average number of sessions per trajectory from 3.17 to 2.35 while improving performance.
  • Faster Convergence: As seen in the training curves, Mosaic reaches higher reward levels faster than baselines and manages to stabilize the session count more effectively.
  • Computational Savings: Compared to turn-level information gain methods (like IGPO), Mosaic is much faster to train because it only computes information gain at the boundaries of sessions, not for every single turn.
Figure 3: Performance results showing Mosaic outperforming baselines in both compaction and subagent scenarios.

Limitations and Future Work

The authors identify several hurdles for the field:

  • Data Scarcity: There is a lack of high-quality, public multi-session training data. Most datasets are still formatted for single-turn or single-session interactions.
  • State Transfer: While Mosaic rewards successful sessions, it doesn't explicitly optimize how information is transferred (e.g., the quality of the summary in a compaction session). Improving "cross-session state transfer" is a key next step.
  • Asynchronous Scaling: The current experiments were conducted in a synchronous setup. Moving to production-scale asynchronous RL will introduce challenges like policy staleness that Mosaic hasn't yet addressed.

For researchers building the next generation of autonomous web agents or coding assistants, Mosaic offers a blueprint for moving beyond simple "right/wrong" feedback toward a more nuanced understanding of agent efficiency and process.

Summary updated

BibTeX
@misc{xu2026mosaic,
  author = {Yilong Xu and Minrui Xu and Xinyu Zhou and Xiang Long and Haochen Tan and Zhijiang Guo},
  title = {{Mosaic: Multi-Session Agentic Reinforcement Learning}},
  year = {2026},
  eprint = {2610.22174},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.22174},
}
Figure