K-ON: Stacking Knowledge On the Head Layer of Large Language Model
Lingbing Guo, Yichi Zhang, Zhongpu Bo, Zhuo Chen, Mengshu Sun, Zhiqiang Zhang, Wen Zhang, Huajun Chen
TL;DR
The paper tackles the granularity mismatch between knowledge graphs and token-level LLM predictions. It introduces K-ON, which stacks knowledge on the head layer of LLMs by using $K$ head modules to predict the target entity in a single pass and trains with an entity-level contrastive loss. Key components include Head MLPs, conditional attention, LoRA score layers, $K$-step gathering, and Head Trajectory Tuning to align the $K$-step predictions with the original single-step distribution. Experiments on DB15K and MKGW show K-ON outperforms state-of-the-art KG completion methods, including multi-modal baselines, while offering improved training efficiency.
Abstract
Recent advancements in large language models (LLMs) have significantly improved various natural language processing (NLP) tasks. Typically, LLMs are trained to predict the next token, aligning well with many NLP tasks. However, in knowledge graph (KG) scenarios, entities are the fundamental units and identifying an entity requires at least several tokens. This leads to a granularity mismatch between KGs and natural languages. To address this issue, we propose K-ON, which integrates KG knowledge into the LLM by employing multiple head layers for next k-step prediction. K-ON can not only generate entity-level results in one step, but also enables contrastive loss against entities, which is the most powerful tool in KG representation learning. Experimental results show that K-ON outperforms state-of-the-art methods that incorporate text and even the other modalities.
