arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.14857cs.CL
收藏

HiNS:分层负采样用于更全面的记忆检索嵌入模型

HiNS: Hierarchical Negative Sampling for More Comprehensive Memory Retrieval Embedding Model

OPPO;Zhejiang University(浙江大学)

Motong Tian, Allen P. Wong, Mingjun Mao, Wangchunshu Zhou

AI总结:

HiNS通过分层负采样方法提升记忆检索嵌入模型的检索保真度和泛化能力,在多个任务中取得显著性能提升。

摘要:

基于记忆的语言代理依赖嵌入模型进行有效的记忆检索。然而,现有训练数据构建忽视了一个关键限制:负样本的层次难度及其在人机交互中的自然分布。实际上,一些负样本是语义接近的干扰项,而另一些则是明显无关的,自然对话中这些类型的分布具有结构化的比例。当前使用合成或均匀采样的负样本的方法未能反映这种多样性,限制了嵌入模型学习细微辨别能力以实现稳健的记忆检索的能力。在本工作中,我们提出了一种原则性的数据构建框架HiNS,明确建模负样本难度层级,并结合从对话数据中获得的实证负样本比例,使嵌入模型在记忆密集型任务中训练出显著改进的检索保真度和泛化能力。实验显示显著改进:在LoCoMo上,F1/BLEU-1得分提升为3.27%/3.30%(MemoryOS)和1.95%/1.78%(Mem0);在PERSONAMEM上,总分提升为1.19%(MemoryOS)和2.55%(Mem0)。

英文摘要:

Memory-augmented language agents rely on embedding models for effective memory retrieval. However, existing training data construction overlooks a critical limitation: the hierarchical difficulty of negative samples and their natural distribution in human-agent interactions. In practice, some negatives are semantically close distractors while others are trivially irrelevant, and natural dialogue exhibits structured proportions of these types. Current approaches using synthetic or uniformly sampled negatives fail to reflect this diversity, limiting embedding models' ability to learn nuanced discrimination essential for robust memory retrieval. In this work, we propose a principled data construction framework HiNS that explicitly models negative sample difficulty tiers and incorporates empirically grounded negative ratios derived from conversational data, enabling the training of embedding models with substantially improved retrieval fidelity and generalization in memory-intensive tasks. Experiments show significant improvements: on LoCoMo, F1/BLEU-1 gains of 3.27%/3.30%(MemoryOS) and 1.95%/1.78% (Mem0); on PERSONAMEM, total score improvements of 1.19% (MemoryOS) and 2.55% (Mem0).

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

↑