arXiv:2610.22174cs.CLOct 2026

Manuscript Offprint

arXiv:2610.22174

Mosaic: Multi-Session Agentic Reinforcement Learning

Yilong Xu, Minrui Xu, Xinyu Zhou, Xiang Long, Haochen Tan, Zhijiang Guo

Abstract

Most existing agentic reinforcement learning methods assume single-session trajectories, where interaction proceeds within one continuously accumulated context. However, agentic techniques such as context compaction and subagent forking may produce trajectories spanning multiple sessions, creating a mismatch between the single-session training assumption and inference-time execution. Therefore, we introduce Multi-Session Agentic Reinforcement Learning, a more general setting that supports an arbitrary number of sessions within a trajectory. Under this setting, a widely adopted method is to broadcast trajectory-level advantages to all sessions, but this does not distinguish contributions from various sessions or guide session allocation within trajectories. To address this issue, we propose Mosaic, a multi-session agentic RL method with critic-free hierarchical optimization. At the trajectory level, it incorporates session-usage signals into advantage estimation. At the session level, it shapes each session's advantage according to the estimated marginal contribution. Experiments on BrowseComp with Qwen3.5-4B show that Mosaic outperforms broadcasting in both context compaction and subagent forking scenarios while using fewer sessions on average. Further analyses show that our method achieves improvements in session utility and allocation, which we suggested is a promising target for future advances in multi-session agentic RL.

1. Introduction

Agentic Reinforcement Learning (Agentic RL; Gao et al., 2025; Jin et al., 2025; Zhang et al., 2025) trains Large Language Model (LLM) agents (Shinn et al., 2023; Yao et al., 2022) for multi-turn reasoning, tool use, and interaction with external environments via online rollouts and reward feedback, yielding broad performance gains. More recently, LLM agents have incorporated advanced inference techniques, such as context management (Mei et al., 2025; Zhang et al., 2026a) and harness engineering (Lin et al., 2026; Zhou et al., 2026), enabling agentic workflows to tackle increasingly complex and long-horizon tasks. However, most agentic RL methods assume a single-session setting, where each rollout unfolds as a coherent multi-turn trajectory within a continuously accumulated context and yields a single training segment (Wang et al., 2026; Xu et al., 2026b).

We argue that the single-session setting is not sufficiently general for optimizing LLM agents. For example, context compaction compresses the execution history to free up context space while rewriting the prefix that conditions subsequent actions (Lu et al., 2025; Nguyen et al., 2025; Wu et al., 2025), thereby initiating a new session. Similarly, subagent forking delegates global goal to subagents which creates branch sessions (Song et al., 2025; Team et al., 2026; Xu et al., 2026d). Those resulting trajectories no longer satisfy the single-session assumption, creating a mismatch between training and inference that compromises consistency and limits optimization potential.

Corresponding author(s): Zhijiang Guo (zhijiangguo@hkust-gz.edu.cn), Haochen Tan (haochetan2-c@my.cityu.edu.hk)

Figure

Figure 1 | The comparison between multi-session and single-session trajectories.

To address this gap, we introduce a new setting termed Multi-Session Agentic Reinforcement Learning, which supports an arbitrary count of sessions and enables agents with diverse inference mechanisms to be optimized within a unified algorithm. A straightforward way to handle multi-session rollouts is through broadcasting, whereby a trajectory-level outcome reward or advantage is replicated to every token across all sessions (Accio-Lab, 2026; Xu et al., 2026a). However, we argue that this method provides only coarse supervision and offers no explicit control over optimization across sessions, resulting in poorly targeted learning signals as trajectories span more sessions.

In this work, we propose MOSAIC, a multi-session agentic RL method with critic-free hierarchical optimization. First, session-aware trajectory-level advantage estimation calibrates outcome-based advantages using within-group rankings of session counts conditioned on task outcomes, encouraging successful trajectories to solve tasks efficiently while allowing unsuccessful trajectories sufficient exploration. Its bounded modulation preserves outcome-induced ordering while incorporating session-usage guidance, thereby widening relative advantage margins for homogeneous-reward groups. Second, session-level advantage shaping calculates each session's marginal outcome gain as an immediate reward, applies group-relative normalization separately by session type, and combines the resulting shaping signal with the trajectory-level advantage. Overall, the former provides a long-term, outcome-oriented global signal, while the latter captures short-term local marginal effects. They together form a hierarchical optimization target for multi-session agentic RL.

To evaluate our method, we conduct experiments on BrowseComp (Wei et al., 2025) and select Qwen3.5-4B (Qwen Team, 2026) as the base model. Our MOSAIC outperforms multiple single-session and multi-session agentic RL baselines under both context compaction and subagent forking scenarios. Moreover, MOSAIC achieves up to a 10.1% relative improvement in accuracy over the broadcasting baseline while using fewer sessions per trajectory on average (3.17 → 2.35). Ablation studies further demonstrate that session-aware trajectory-level advantage estimation and session-level advantage shaping each contribute to the final performance gains. Our analyses also reveal several key insights: (1) shaping trajectory-level advantages with session counts increases within-group advantage variance and improves sample efficiency; (2) different session types exhibit distinct distributions of session-level marginal gains, which our type-conditioned normalization helps stabilize; (3) effective multi-session optimization improves session utility and allocation, a pattern that MOSAIC strengthens and that might offer a potential direction for future work.