English

CoPS: Empowering LLM Agents with Provable Cross-Task Experience Sharing

Machine Learning 2024-10-23 v1 Artificial Intelligence

Abstract

Sequential reasoning in agent systems has been significantly advanced by large language models (LLMs), yet existing approaches face limitations. Reflection-driven reasoning relies solely on knowledge in pretrained models, limiting performance in novel scenarios, while experience-assisted reasoning often depends on external experiences and lacks clear principles for selecting representative experiences. We address these limitations by proposing CoPS (Cross-Task Experience Sharing), a generalizable algorithm that enhances sequential reasoning by cross-task experience sharing and selection. In detail, CoPS leverages agents' experiences on previous tasks, selecting distribution-matched experiences via a provable pessimism-based strategy to maximize utility while minimizing risks from distribution shifts. Extensive experimental results on benchmarks like Alfworld, Webshop, and HotPotQA demonstrate that CoPS consistently outperforms state-of-the-art baselines, with superior sample efficiency suitable for resource-constrained scenarios. Theoretically, we show that the performance of our algorithm depends on both the quality of the pretrained LLM and the matching between the agent's task-dependent trial distribution and that generated by the LLM. Our work bridges the gap between existing sequential reasoning paradigms and validates the effectiveness of leveraging cross-task experiences, shedding light on the potential to improve agents' generalization and adaptability across diverse tasks. Our codes are available at \href\href{https://github.com/uclaml/COPS}{\text{https://github.com/uclaml/COPS}}.

Keywords

Cite

@article{arxiv.2410.16670,
  title  = {CoPS: Empowering LLM Agents with Provable Cross-Task Experience Sharing},
  author = {Chen Yang and Chenyang Zhao and Quanquan Gu and Dongruo Zhou},
  journal= {arXiv preprint arXiv:2410.16670},
  year   = {2024}
}

Comments

25 pages, 5 tables, 3 figures

R2 v1 2026-06-28T19:30:53.564Z