mlsanityData to 14 Oct 2026

KaLM: Knowledge-aligned Autoregressive Language Modeling via Dual-view Knowledge Graph Contrastive Learning

arXiv 2412.04948 ↗First posted 6 Dec 2024cs.CL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Autoregressive large language models (LLMs) pre-trained by next token prediction are inherently proficient in generative tasks. However, their performance on knowledge-driven tasks such as factual knowledge querying remains unsatisfactory. Knowledge graphs (KGs), as high-quality structured knowledge bases, can provide reliable knowledge for LLMs, potentially compensating for their knowledge deficiencies. Aligning LLMs with explicit, structured knowledge from KGs has been a challenge; previous attempts either failed to effectively align knowledge representations or compromised the generative capabilities of LLMs, leading to less-than-optimal outcomes. This paper proposes KaLM, a textitKnowledge-aligned Language Modeling approach, which fine-tunes autoregressive LLMs to align with KG knowledge via the joint objective of explicit knowledge alignment and implicit knowledge alignment. The explicit knowledge alignment objective aims to directly optimize the knowledge representation of LLMs through dual-view knowledge graph contrastive learning. The implicit knowledge alignment objective focuses on incorporating textual patterns of knowledge into LLMs through triple completion language modeling. Notably, our method achieves a significant performance boost in evaluations of knowledge-driven tasks, specifically embedding-based knowledge graph completion and generation-based knowledge graph question answering.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 25 of its 36 references that are in the map. First posted on arXiv 6 Dec 2024.

Builds on

25 of 36 references.

References · 25

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  6. 2016Pointer Sentinel Mixture Modelscited by 3,096
  7. 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,405
  8. 2014Embedding Entities and Relations for Learning and Inference in Knowledge Basescited by 932
  9. 2019RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Spacecited by 898
  10. 2021Towards a Unified View of Parameter-Efficient Transfer Learningcited by 872
  11. 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 784
  12. 2017Convolutional 2D Knowledge Graph Embeddingscited by 730
13 more
  1. 2020Understanding the Behaviour of Contrastive Losscited by 398
  2. 2019KEPLER: A Unified Model for Knowledge Embedding and Pre-trained Language Representationcited by 356
  3. 2023StructGPT: A General Framework for Large Language Model to Reason over Structured Datacited by 343
  4. 2019KG-BERT: BERT for Knowledge Graph Completioncited by 324
  5. 2020Supervised Contrastive Learning for Pre-trained Language Model Fine-tuningcited by 276
  6. 2023Fine-Tuning LLaMA for Multi-Stage Text Retrievalcited by 272
  7. 2022A Contrastive Framework for Neural Text Generationcited by 225
  8. 2022SGPT: GPT Sentence Embeddings for Semantic Searchcited by 204
  9. 2021Whitening Sentence Representations for Better Semantics and Faster Retrievalcited by 202
  10. 2022Deep Bidirectional Language-Knowledge Graph Pretrainingcited by 156
  11. 2021Pretrained Language Models for Text Generation: A Surveycited by 95
  12. 2021HiT: Hierarchical Transformer with Momentum Contrast for Video-Text Retrievalcited by 87
  13. 2023Trends in Integration of Knowledge and Large Language Models: A Survey and Taxonomy of Methods, Benchmarks, and Applicationscited by 28

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Enhancing Large Language Models with Reliable Knowledge Graphs
  2. 2023Unifying Large Language Models and Knowledge Graphs: A Roadmap
  3. 2025From Symbolic to Neural and Back: Exploring Knowledge Graph-Large Language Model Synergies
  4. 2024Efficient Knowledge Infusion via KG-LLM Alignment
  5. 2022Adapters for Enhanced Modeling of Multilingual Knowledge and Text
  6. 2025Enhancing Large Language Model for Knowledge Graph Completion via Structure-Aware Alignment-Tuning
  7. 2024Synergizing Knowledge Graphs with Large Language Models: A Comprehensive Review and Future Prospects ↗
  8. 2023Give Us the Facts: Enhancing Large Language Models with Knowledge Graphs for Fact-aware Language Modeling