ACL 2025long0 citations

Self-supervised Quantized Representation for Seamlessly Integrating Knowledge Graphs with Large Language Models

Qika Lin, Tianzhe Zhao, Kai He, Zhen Peng, Fangzhi Xu, Ling Huang, Jingying Ma, Mengling Feng

Abstract

Due to the presence of the natural gap between Knowledge Graph (KG) structures and the natural language, the effective integration of holistic structural information of KGs with Large Language Models (LLMs) has emerged as a significant question. To this end, we propose a two-stage framework to learn and apply quantized codes for each entity, aiming for the seamless integration of KGs with LLMs. Firstly, a self-supervised quantized representation (SSQR) method is proposed to compress both KG structural and semantic knowledge into discrete codes (i.e., tokens) that align the format of language sentences. We further design KG instruction-following data by viewing these learned codes as features to directly input to LLMs, thereby achieving seamless integration. The experiment results demonstrate that SSQR outperforms existing unsupervised quantized methods, producing more distinguishable codes. Moreover, the fine-tuned LLaMA2 and LLaMA3.1 also have superior performance on KG link prediction and triple classification tasks, utilizing only 16 tokens per entity instead of thousands in conventional prompting methods.

BibTeX
@inproceedings{lin-etal-2025-self-supervised,
    title = "Self-supervised Quantized Representation for Seamlessly Integrating Knowledge Graphs with Large Language Models",
    author = "Lin, Qika  and
      Zhao, Tianzhe  and
      He, Kai  and
      Peng, Zhen  and
      Xu, Fangzhi  and
      Huang, Ling  and
      Ma, Jingying  and
      Feng, Mengling",
    editor = "Che, Wanxiang  and
      Nabende, Joyce  and
      Shutova, Ekaterina  and
      Pilehvar, Mohammad Taher",
    booktitle = "Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
    month = jul,
    year = "2025",
    address = "Vienna, Austria",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.acl-long.667/",
    doi = "10.18653/v1/2025.acl-long.667",
    pages = "13587--13602",
    ISBN = "979-8-89176-251-0"
}
Self-supervised Quantized Representation for Seamlessly Integrating Knowledge Graphs with Large Language Models · ACL 2025