arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.23234cs.AIcs.LG
收藏

MemCollab:通过对比轨迹蒸馏实现跨模型记忆协作

MemCollab: Cross-Model Memory Collaboration via Contrastive Trajectory Distillation

Pennsylvania State University(宾夕法尼亚州立大学);AG2AI

Yurui Chang, Yiran Wu, Qingyun Wu, Lu Lin

AI总结:

针对不同骨干模型代理间共享记忆性能下降的问题,提出MemCollab框架,通过对比同一任务上不同模型生成的推理轨迹来蒸馏共享的抽象推理约束,并引入任务感知检索机制,提升异构代理的准确性和推理效率。

摘要:

LLM代理越来越依赖记忆机制来重用过去问题解决经验中的知识。然而,现有方法通常为单个代理构建记忆,并与同一底层模型重用,将存储的知识紧密耦合到特定模型的推理风格。在异构部署中,代理可能使用不同大小、架构或专业化的骨干模型实例化,这引发了一个关键问题:一个单一的记忆系统能否在不同骨干模型的代理之间共享?我们发现,简单的跨模型记忆传输可能会降低性能,因为存储的记忆常常将任务相关知识纠缠到模型特定的偏见中。为了解决这一挑战,我们提出了MemCollab,一个协作记忆框架,通过对比不同基于模型的代理在同一任务上生成的推理轨迹来构建共享的跨模型记忆。通过这一对比过程,MemCollab蒸馏出捕获共享任务级不变量的抽象推理约束,同时抑制模型特定的伪影。我们进一步引入了一种任务感知检索机制,根据任务类别调节记忆访问,确保在推理时只检索相关的约束。在数学推理和代码生成基准上的实验表明,MemCollab在不同代理(包括不同模型族设置)上一致地提高了准确性和推理效率。这些结果表明,协作构建的跨模型记忆可以作为异构基于LLM的代理的共享推理资源。

英文摘要:

LLM agents increasingly rely on memory mechanisms to reuse knowledge from past problem-solving experiences. However, existing methods typically construct memory for a single agent and reuse it with the same underlying model, tightly coupling stored knowledge to model-specific reasoning styles. In heterogeneous deployments, where agents may be instantiated with backbone models of different sizes, architectures, or specializations, this raises a key question: can a single memory system be shared across agents with different backbone models? We find that naive cross-model memory transfer can degrade performance, because stored memories often entangle task-relevant knowledge with model-specific biases. To address this challenge, we propose MemCollab, a collaborative memory framework that builds shared cross-model memory by contrasting reasoning trajectories generated by different model-based agents on the same task. Through this contrastive process, MemCollab distills abstract reasoning constraints that capture shared task-level invariants while suppressing model-specific artifacts. We further introduce a task-aware retrieval mechanism that conditions memory access on task category, ensuring that only relevant constraints are retrieved at inference time. Experiments on mathematical reasoning and code generation benchmarks show that MemCollab consistently improves both accuracy and inference-time efficiency across diverse agents, including settings with different model families. These results demonstrate that collaboratively constructed cross-model memory can serve as a shared reasoning resource for heterogeneous LLM-based agents.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑