Enhancing elusive clues in knowledge learning by contrasting attention of language models
Jian Gao, Xiao Zhang, Ji Wu, Miao Li
TL;DR
This work tackles the inefficiency of knowledge learning in pretraining, especially with knowledge-dense, small corpora, by identifying elusive yet important clues via contrasting attention between large and small language models. It introduces an attention-difference guided token-dropout augmentation that reinforces learning from non-obvious cues, improving fact memorization for both small and large models during continual pretraining. Empirical results on synthetic biographies and real-world Wikipedia data show significant gains over baseline augmentations, suggesting broad applicability to knowledge acquisition tasks. The approach is simple, complementary to existing training pipelines, and supported by code and data releases for reproducibility.
Abstract
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.
