KnowTuning: Knowledge-aware Fine-tuning for Large Language Models

Yougang Lyu, Lingyong Yan, Shuaiqiang Wang, Haibo Shi, Dawei Yin +4 more
2/17/2024
cs.CLcs.AI

No official code found. Best implementation: hiyouga/LlamaFactory (72,841 stars, Apache-2.0, last commit 2026-04-29). 1 more below.

Abstract

Despite their success at many natural language processing (NLP) tasks, large language models still struggle to effectively leverage knowledge for knowledge-intensive tasks, manifesting limitations such as generating incomplete, non-factual, or illogical answers. These limitations stem from inadequate knowledge awareness of LLMs during vanilla fine-tuning. To address these problems, we propose a knowledge-aware fine-tuning (KnowTuning) method to improve fine-grained and coarse-grained knowledge awareness of LLMs. We devise a fine-grained knowledge augmentation stage to train LLMs to identify difficult fine-grained knowledge in answers. We also propose a coarse-grained knowledge comparison stage to train LLMs to distinguish between reliable and unreliable knowledge, in three aspects: completeness, factuality, and logicality. Extensive experiments on both generic and medical question answering (QA) datasets confirm the effectiveness of KnowTuning, through automatic and human evaluations, across various sizes of LLMs. We further verify that KnowTuning generates more facts with less factual error rate under fine-grained facts evaluation.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)

72,8418,898Python, MakefileMay 28, 20235 months agoApache-2.0
agentaideepseekfine-tuninggemma+15 more
181Shell, PythonFeb 21, 20241 years ago

Similar Papers

Cite this paper

@article{lyu2024knowtuning,
  title  = {KnowTuning: Knowledge-aware Fine-tuning for Large Language Models},
  author = {Yougang Lyu and Lingyong Yan and Shuaiqiang Wang and Haibo Shi and Dawei Yin and Pengjie Ren and Zhumin Chen and Maarten de Rijke and Zhaochun Ren},
  year   = {2024},
  eprint = {2402.11176},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.11176v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.11176.svg)](https://codeofpaper.com/paper/2402.11176)

Discussion