Skip to main content
QUICK REVIEW

[Paper Review] Injecting New Knowledge into Large Language Models via Supervised Fine-Tuning

Nick Mecklenburg, Yiyou Lin|arXiv (Cornell University)|Mar 30, 2024
Natural Language Processing TechniquesComputer Science3 citations
TL;DR

This paper proposes a fact-based dataset generation method for supervised fine-tuning (SFT) to inject out-of-domain knowledge—specifically recent sporting events—into large language models like GPT-4. By ensuring even coverage of salient facts rather than relying on token-based scaling, the approach achieves significant improvements in question-answering accuracy, with gains up to 15% on certain benchmarks, demonstrating SFT's effectiveness for domain-specific knowledge injection beyond the model's training cutoff.

ABSTRACT

In recent years, Large Language Models (LLMs) have shown remarkable performance in generating human-like text, proving to be a valuable asset across various applications. However, adapting these models to incorporate new, out-of-domain knowledge remains a challenge, particularly for facts and events that occur after the model's knowledge cutoff date. This paper investigates the effectiveness of Supervised Fine-Tuning (SFT) as a method for knowledge injection in LLMs, specifically focusing on the domain of recent sporting events. We compare different dataset generation strategies -- token-based and fact-based scaling -- to create training data that helps the model learn new information. Our experiments on GPT-4 demonstrate that while token-based scaling can lead to improvements in Q&A accuracy, it may not provide uniform coverage of new knowledge. Fact-based scaling, on the other hand, offers a more systematic approach to ensure even coverage across all facts. We present a novel dataset generation process that leads to more effective knowledge ingestion through SFT, and our results show considerable performance improvements in Q&A tasks related to out-of-domain knowledge. This study contributes to the understanding of domain adaptation for LLMs and highlights the potential of SFT in enhancing the factuality of LLM responses in specific knowledge domains.

Motivation & Objective

  • To address the challenge of incorporating up-to-date, out-of-domain knowledge into large language models (LLMs) after their knowledge cutoff date.
  • To evaluate and compare the effectiveness of token-based versus fact-based dataset generation strategies for supervised fine-tuning (SFT).
  • To develop a systematic method that ensures uniform coverage of new facts across training data, improving model retention of diverse knowledge.
  • To empirically validate that SFT can significantly enhance LLM performance on post-cutoff factual knowledge, particularly in domain-specific contexts.
  • To benchmark SFT-learned knowledge against retrieval-augmented generation (RAG) and analyze trade-offs between direct training and external retrieval.

Proposed method

  • Proposes a fact-based dataset generation process that extracts and structures salient facts from source documents (e.g., Wikipedia articles on sporting events) to ensure balanced representation.
  • Constructs training data by creating question-answer pairs for each fact, prioritizing comprehensive and even coverage across all key information points in the source material.
  • Employs supervised fine-tuning (SFT) on GPT-4 using the fact-based datasets to directly inject new knowledge into the model’s parameters.
  • Compares performance across different scaling levels (1x, 5x, 10x) of fact-based and token-based datasets to assess coverage and learning efficiency.
  • Conducts ablation studies on hyperparameters, including training epochs, to analyze sensitivity and identify optimal configurations.
  • Performs benchmark comparisons between SFT models and RAG-augmented models to evaluate relative performance and trade-offs in knowledge retention and accuracy.

Experimental results

Research questions

  • RQ1Does fact-based dataset generation lead to more uniform and complete coverage of new knowledge compared to token-based scaling in SFT?
  • RQ2To what extent does SFT with fact-based data improve factual accuracy on out-of-domain, post-cutoff knowledge, such as recent sporting events?
  • RQ3How does the performance of SFT models compare to retrieval-augmented models in terms of accuracy and robustness for factual QA tasks?
  • RQ4What is the impact of hyperparameter tuning—particularly training epochs—on knowledge injection efficacy in SFT?
  • RQ5Can fact-based scaling achieve better performance than token-based scaling when both are constrained by similar training budgets?

Key findings

  • Fact-based scaling achieved up to a 15% absolute improvement in Q&A accuracy on the NCAA dataset at 1x scale, compared to token-based methods.
  • At 10x scale, the fact-based SFT model outperformed the 5x 6-epoch configuration by 3–5% across all datasets, indicating benefits beyond just longer training.
  • The 10x 3-epoch fact-based model outperformed the 5x 6-epoch model despite a lower total training budget, suggesting that fact-based scaling contributes independently to performance gains.
  • The 1x fact-based training set had roughly twice the token count of the 1x token-based set, confirming that fact-based methods inherently require more tokens but offer better coverage.
  • Anomalies in training, such as overfitting in the Cricket 5x 6-epoch run, were traced to suboptimal learning rates, highlighting the importance of hyperparameter tuning in SFT for knowledge injection.
  • The study confirms that SFT can effectively internalize new, domain-specific knowledge post-cutoff, with measurable gains in factual accuracy, particularly when using structured, fact-centric data curation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.