Learning to Share: Selective Memory for Efficient Parallel Agentic Systems

Joseph Fioresi, Parth Parag Kulkarni, Ashmal Vayani, Song Wang, Mubarak Shah

Parallel agentic systems have emerged as a robust way to solve complex, long-horizon tasks. By deploying multiple AI teams to work on the same problem simultaneously, these systems ensure that if one team's reasoning trajectory fails, another might succeed. However, this parallelism comes at a steep computational cost: redundant intermediate computation.

For example, multiple teams might independently execute the same web search, parse the same data table, or write identical data-processing code. Simply broadcasting all findings across teams is counterproductive, as it floods the agents' limited context windows with irrelevant noise, failed tool calls, and errors. The challenge lies in determining exactly what information is worth sharing to maximize utility without causing context bloat.

The Solution: Learning to Share (LTS)

To address this efficiency gap, researchers introduce Learning to Share (LTS), a framework that augments parallel agentic systems with a selective, shared-memory mechanism. LTS slashes runtime while maintaining or improving task success. It consists of two primary components:

  1. Global Shared Memory Bank: A centralized repository storing intermediate steps as key-value pairs. The "key" is a concise natural-language summary of the step, while the "value" holds the full raw output (e.g., scraped data or executed code).
  2. Learned Memory Controller: A lightweight language model (based on Qwen3-0.6B) acting as a gatekeeper. After every agent action, the controller evaluates the task query, the current memory state, and the new result, outputting a binary "YES/NO" token to decide if the step should be committed to the memory bank.

Training the Controller

The controller is trained using Stepwise Reinforcement Learning, relying on two key mechanisms to ensure high-quality memory admission:

  • Usage-Aware Reward Shaping: The controller receives a bonus reward if a stored memory is later retrieved and utilized by another team, teaching the model to identify globally useful information.
  • Sparsity Regularization: To prevent the controller from hoarding useless data, a penalty is applied for every "YES" decision, forcing strict selectivity.

How It Works: Key Insights

  • Summaries as Searchable Headers: By exposing agents only to the summaries (keys), they can browse the memory bank and selectively inject only the necessary high-volume data into their context, effectively preventing context bloat.
  • Bypassing Contagious Errors: In standard parallel systems, an error in one branch often triggers retries that bottleneck the entire pipeline. Shared memory allows teams to bypass these hurdles by retrieving a successful intermediate result from a peer.
  • Steering Toward Accuracy: Sharing memory does more than accelerate execution; it often improves accuracy. Exposure to successful intermediate steps from other teams effectively steers agents toward more reliable reasoning trajectories.

Evaluation and Results

LTS was rigorously evaluated on two long-horizon benchmarks requiring real-world tool use and multi-step reasoning: GAIA (General AI Assistants) and AssistantBench. Notably, the memory controller was trained exclusively on the AssistantBench development set but tested on GAIA without further tuning, demonstrating strong cross-domain generalization.

The quantitative gains across different model backbones (such as Qwen3-32B and GPT-5.1) are significant:

  • Massive Speedups: On the GAIA benchmark using Qwen3-32B, LTS reduced the average wall-clock runtime from 1569 seconds to 892 seconds—a 55% reduction.
  • Improved Success Rates: LTS improved overall accuracy on GAIA by +5.6 percentage points compared to memory-free baselines.
  • Negligible Overhead: The lightweight memory controller accounts for only 0.2% of total execution time. The time saved by avoiding redundant computation far outweighs the cost of running the controller.

Limitations and Future Directions

While LTS represents a significant step forward, it currently relies on ephemeral memory, creating a fresh memory bank for each new task rather than maintaining long-term persistence across sessions or users. Furthermore, the system lacks a "delete" mechanism to revise or remove information if a previous memory entry is later found to be incorrect or outdated.

Future iterations could explore dynamic memory management, including hierarchical structures or agents capable of actively editing the shared knowledge base to keep the memory bank accurate and up-to-date.

Summary updated

BibTeX
@inproceedings{fioresi2026learning,
  author = {Joseph Fioresi and Parth Parag Kulkarni and Ashmal Vayani and Song Wang and Mubarak Shah},
  title = {{Learning to Share: Selective Memory for Efficient Parallel Agentic Systems}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=cCFyY2LmF5},
}
Figure