arXiv:2610.38796cs.LGOct 2026

Manuscript Offprint

arXiv:2610.38796

Routed Continual Learning

Michael Philip, Mahesh Balakrishnan, David Geraghty, David Mao, Vidhya Venkat, Ilya Mironov

Michael Philip¹*, Mahesh Balakrishnan¹, David Geraghty¹, David Mao¹, Vidhya Venkat¹, Ilya Mironov¹

¹FAIR at Meta

*Main Contributor

Agents deployed at scale repeatedly encounter related problems, and it is natural to let them learn from each other’s experience rather than starting over each time. Unfortunately, there is no single way to retain that experience that works well across settings, and no way to know in advance which future problems a given experience will help with. A global history preserves every detail but becomes expensive and mixes together experience that may not belong together; compressing that history into one fixed representation limits the cost but can throw away valuable details.

We introduce Routed Continual Learning (Routed CL), an architecture that decides how to partition and retain experience. Past trajectories are grouped into clusters, each of which maintains state using one memory system from a fixed library. Before each run, an LLM-based router either reuses an existing cluster or creates a new one, basing its decision on the problem statement, memory system descriptions, and cluster summaries. We also introduce Context Memory Adapter, which mediates between the memory system and the agentic loop by augmenting the agent’s initial context with the memory system’s outputs and updating the selected cluster with information from the trajectory.

We evaluate the architecture on a heterogeneous stream that interleaves 301 instances from the six CL-Bench tasks with 97 banking instances from τ3\tau^3-Bench, for 398 instances total. Across four language models and five matched rollouts, Routed Continual Learning raises normalized reward over a single global in-context learning (ICL) history by 15–30% of the maximum attainable normalized reward, achieves higher mean normalized reward than ICL-only clustering, and reduces estimated API cost by 65–72% relative to Global ICL. These results support approaching continual learning as a routing problem that chooses both a learning mechanism and a state cluster rather than committing to one representation globally.

Date: October 2026

Correspondence: Michael Philip at michaelphilip@meta.com

Meta

1 Introduction

State-of-the-art agentic systems are designed to operate at scale, with distributed heterogeneous agents acting concurrently and independently. Many of these agents encounter related problems and could benefit from shared knowledge, which can reduce token cost, improve task performance, and keep agents from repeating one another’s mistakes. One striking example occurred during a recent OpenAI cyber-capability evaluation. Independently instantiated agents created an unintended shared message board and used it to propagate exploit findings across runs. The resulting exchange of information enabled agents in the broader evaluation to obtain breakthrough capabilities beyond the reach of individual agents (OpenAI, 2026; Greenblatt et al., 2026).

Our goal is to make such sharing deliberate: to build a system that supplies agents with relevant prior experience by design, rather than expecting them to develop one. To this end, we must decide what information to extract from trajectories, how to represent it, which agents should receive it, and when it should be provided. Different applications may require different answers to these questions; no single memory system is optimal across all of them. For example, coding-heavy tasks may benefit from a repo index, tool-oriented workloads from examples, knowledge tasks from grounded facts, data analytics from time-series models, etc.

Table 1 Normalized reward across five matched rollouts. Each cell reports the mean and the range as [min, max]. Stateless-reference gain is reported separately in Table 4. Higher is better; bold marks the best of the four staged conditions. Ground-truth assignment uses source-task identity, unavailable to the router, to apply a fixed memory-system-cluster mapping specified before confirmatory evaluation.

ModelStateless ICLGlobal ICLRouted ICLRouted CLGround-truth assignment
Gemini 3.7 Flash-0.055[-0.066, -0.041]-0.030[-0.055, -0.022]0.211[0.199, 0.245]0.213[0.111, 0.272]0.284[0.236, 0.333]
GPT-5.6 Sol0.130[0.122, 0.137]0.168[0.125, 0.189]0.387[0.333, 0.424]0.464[0.442, 0.501]0.478[0.441, 0.531]
Opus 4.70.060[0.051, 0.067]0.092[0.077, 0.104]0.209[0.189, 0.242]0.243[0.184, 0.309]0.312[0.276, 0.370]
Opus 50.178[0.155, 0.196]0.169[0.152, 0.198]0.340[0.302, 0.383]0.401[0.356, 0.433]0.408[0.392, 0.423]

The distributed environment of an enterprise setting compounds these challenges: agents are built by different teams, wrap different models, and have no reason to know that other agents exist. Our architecture places minimal requirements on the agents it supports. It intercepts an agent’s prompt and, when useful, injects relevant content directly into the agent’s context, requiring no explicit cooperation.

The result of this work is an architecture with two central features:

  • Transparent deployment: The architecture requires neither coordination among individual agents nor changes to how they operate.

  • Routing: Because no single memory system serves every application equally well, a routing component selects a memory system and relevant prior state for each run.

Continual Learning Bench (CL-Bench; Asawa et al., 2026) provides a useful starting point for evaluating an implementation of this architecture. Following CL-Bench’s convention, we call each individual problem an instance; a sequence of instances from the same domain is a task. Examples of these tasks include text-to-SQL transformations and playing poker against deterministic opponents. An instance of a task for the first example is a single natural-language question that may require multiple SQL queries to resolve; an instance of the poker task is a single hand. CL-Bench evaluated six such tasks in isolation and found that naïve in-context learning (ICL) outperformed dedicated memory systems on the aggregate metric. Retaining prior trajectories provides a strong baseline when each task is evaluated separately, which is the target scenario for the benchmark. This approach becomes less effective when different tasks are interleaved: a single history combines experience that may be useful for one task but irrelevant for another. A learning system must therefore decide what observations to share among which instances, and when to use a different memory system.

To expand the range of tasks beyond CL-Bench, we incorporate the Banking Knowledge domain from τ3\tau^3-Bench (Shi et al., 2026). Each instance is a multi-turn customer-service conversation in which an agent must follow a domain policy, retrieve unstructured knowledge, and use tools while interacting with a simulated user. This contributes 97 thematically related instances with an interaction structure and reward function substantially different from those of the six CL-Bench tasks.

We introduce Routed Continual Learning, which assigns each instance to a cluster that couples a memory system with a set of prior trajectories (that can be empty). Before each instance, a router, implemented as a large language model (LLM), decides whether to reuse an existing cluster or create a new one, in which case the router selects a memory system from a fixed library. The memory system defines the learning mechanism; the cluster maintains the memory system’s state and publishes a summary to guide assignment of future instances. The router uses only the current instance, memory system descriptions, and cluster summaries; task labels during the benchmark evaluation are not supplied.

Our five memory systems (Table 2) retain prior trajectories, distill reusable reasoning strategies, or model structured numerical state. Some memory systems require mapping a task-specific schema into generic state. We therefore introduce Context Memory Adapter, a shared runtime that derives this mapping, or adapter, from prior experience and supplies learned state through the agent’s context.

We evaluate four language models on a heterogeneous 398-instance stream combining all six CL-Bench tasks with 97 τ3\tau^3-Bench banking instances. Four staged conditions progressively add capabilities: Stateless ICL (no cross-instance state), Global ICL (one shared history), Routed ICL (router-partitioned ICL histories), and Routed CL (the full memory system library). We compare these conditions on normalized reward and API cost.

Our contributions are:

  • We formulate continual learning over heterogeneous, interleaved instance sequences as a joint decision: how to represent experience and which instances should share state.

  • We introduce Routed Continual Learning, which for each instance selects a memory system from a fixed library and a cluster to hold its resulting state.

  • We show that across four language models and five matched rollouts, Routed CL improves normalized reward over both Global ICL and Routed ICL while reducing estimated API cost by 65–72% relative to Global ICL.

References (68)