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

为语言模型的跨模式知识检索级联你的数据集

CASCADE Your Datasets for Cross-Mode Knowledge Retrieval of Language Models

University of Washington(华盛顿大学);Microsoft Research(微软研究院)

Runlong Zhou, Yi Zhang

AI总结:

针对语言模型跨模式知识检索准确率下降的问题,提出CASCADE预训练算法,利用不同序列长度的级联数据集并在后半部分计算损失,有效提升了模型跨格式知识访问能力。

摘要:

语言模型通常难以进行跨模式知识检索——即在以另一种格式(模式)查询时,访问以某一种格式(模式)所学知识的能力。我们证明,在多个数据源(例如Wikipedia和TinyStories)上训练的模型,在以不同于其原始训练模式的格式检索知识时,准确率会显著降低。本文通过对不同模式下的随机token序列记忆进行受控研究,定量地探讨了这一现象。我们首先探索了数据集重写作为一种解决方案,揭示出有效的跨模式检索需要极其繁重的重写工作,且遵循类似sigmoid的关系。作为替代方案,我们提出了CASCADE,这是一种新颖的预训练算法,它使用具有不同序列长度的级联数据集,并仅在每个训练序列的后半部分计算损失,以捕获不同尺度的知识。我们的实验表明,即使被压缩成具有统一损失函数的单个模型,CASCADE也优于数据集重写方法。这项工作既提供了跨模式检索局限性的定性证据,又提供了一种实用解决方案,以增强语言模型独立于呈现格式访问知识的能力。

英文摘要:

Language models often struggle with cross-mode knowledge retrieval -- the ability to access knowledge learned in one format (mode) when queried in another. We demonstrate that models trained on multiple data sources (e.g., Wikipedia and TinyStories) exhibit significantly reduced accuracy when retrieving knowledge in a format different from its original training mode. This paper quantitatively investigates this phenomenon through a controlled study of random token sequence memorization across different modes. We first explore dataset rewriting as a solution, revealing that effective cross-mode retrieval requires prohibitively extensive rewriting efforts that follow a sigmoid-like relationship. As an alternative, we propose CASCADE, a novel pretraining algorithm that uses cascading datasets with varying sequence lengths and computing losses on only the second half of each training sequence to capture knowledge at different scales. Our experiments demonstrate that CASCADE outperforms dataset rewriting approaches, even when compressed into a single model with a unified loss function. This work provides both qualitative evidence of cross-mode retrieval limitations and a practical solution to enhance language models' ability to access knowledge independently of its presentational format.

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

↑