arXiv:2409.17954cs.AI2024-09AAAI被引 1

通过对比大小模型注意力,挖掘隐藏知识线索提升预训练效率

Enhancing elusive clues in knowledge learning by contrasting attention of language models

  • 用大模型和小模型注意力差异识别被忽略的关键线索
  • 基于识别线索进行丢弃增强,显著提升大小模型的事实记忆能力
  • 适合关注预训练阶段知识获取效率的研究者

因果语言模型在预训练中从通用文本语料库中获取大量知识,但学习效率在知识密集且规模小的语料上表现不佳。问题源于长距离依赖难以捕捉,以及对共现模式和干扰线索的过拟合。为此,本文提出一种方法:通过对比大、小语言模型的注意力权重,发现语言模型自身识别出的隐蔽但关键的知识线索。研究发现,大模型更关注非明显但重要的线索,这些线索常被小模型忽略。利用这些线索作为引导,在训练文本上实施令牌丢弃数据增强,显著提升了大小模型在事实记忆上的表现。结果表明,不同性能模型的行为差异蕴含重要知识学习线索,可通过放大实现效率提升。

原文摘要 · Abstract (English)

Causal language models acquire vast amount of knowledge from general text corpus during pretraining, but the efficiency of knowledge learning is known to be unsatisfactory, especially when learning from knowledge-dense and small-sized corpora. The deficiency can come from long-distance dependencies which are hard to capture by language models, and overfitting to co-occurrence patterns and distracting clues in the training text. To address these issues, the paper proposes a method to enhance knowledge learning during language model pretraining, by enhancing elusive but important clues in text discovered by the language model themselves. We found that larger language models pay more attention to non-obvious but important clues, which are often overlooked by smaller language models. Therefore, we can identify these clues by contrasting the attention weights of large and small language models. We use the identified clues as a guide to perform token-dropout data augmentation on the training text, and observed a significant boost in both small and large models' performance in fact memorization. This shows that the behavior contrast between more and less-performant language models contains important clues for knowledge learning, and it can be ``amplified" for a straight-forward improvement in knowledge learning efficiency.

预训练注意力机制知识学习数据增强

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。