Harness-Model Collaboration for Long-Horizon Continual Learning
Organizations: Huzhou Normal University · Alibaba Group · Zhejiang University · Ningxia University
Abstract
Long-horizon agents continuously encounter reusable procedural knowledge, yet existing systems typically rely either on model adaptation or external memory, trading persistent learning for rapid reuse. This limitation is especially important for Web agents that repeatedly execute related multi-step workflows. We propose HaMo, a Harness-Model collaborative framework that combines fast non-parametric experience accumulation with slow parametric adaptation. HaMo distills trajectories into strategy-level experience cards for immediate retrieval, while an experience-conditioned continual learning objective trains the model to interpret, ground, and execute retrieved strategies across changing contexts. A retrieval-coverage-based selection mechanism further identifies compact and complementary trajectories for parameter updates. Experiments show that HaMo outperforms harness-only and model-only adaptation under within-domain and cross-domain shifts, improving both retention and adaptation. These results highlight the importance of jointly preserving procedural experience and internalizing the competence to transfer and execute it across tasks.
Figures & tables
| Stage | HaMo | Base |
|---|---|---|
| User Goal | Chocolate-coated wafers; caramel flavor; 4.41 ounce; price below $60. | Chocolate-coated wafers; caramel flavor; 4.41 ounce; price below $60. |
| Search | Searches for “chocolate coated wafers 4.41 ounce”. | Searches for “caramel chocolate coated wafers 4.41 ounce”. |
| Candidate | Opens Loacker Tortina Chocolate Coated Wafer ($41.99). Notices “Triple Dark” in the title and checks the available flavor options . | Opens Loacker Quadratini Hazelnut Wafer Cookies ($14.99), incorrectly treating the hazelnut product as a caramel match. |
| Verification | Attempts to select the requested options: click[caramel] followed by click[4.41 ounce] ; neither changes the visible observation. | The product page offers no caramel option. Makes no flavor or size selection before buying. |
| Purchase | Checks <60 and executes click[buy now] after attempting both option selections. | Executes click[buy now] immediately after opening the mismatched product. |
| Interactions | 5 actions; completes the purchase. | 3 actions; completes the purchase. |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Setting | Value |
|---|---|
| GPU hardware | NVIDIA A800, 80 GB |
| Training epochs per stage | 3 |
| Learning rate | |
| LoRA rank | 16 |
| LoRA scaling parameter | 32 |
| Backbone parameters | Frozen |
Continual Learning for LLM Agents
Continual learning for LLM agents studies how agents adapt from experience while retaining skills and knowledge across tasks.
See all 199 papers