mlsanityData to 14 Oct 2026

From Parameters to Prompts: Understanding and Mitigating the Factuality Gap between Fine-Tuned LLMs

arXiv 2505.23410 ↗First posted 29 May 2025cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Factual knowledge extraction aims to explicitly extract knowledge parameterized in pre-trained language models for application in downstream tasks. While prior work has been investigating the impact of supervised fine-tuning data on the factuality of large language models (LLMs), its mechanism remains poorly understood. We revisit this impact through systematic experiments, with a particular focus on the factuality gap that arises when fine-tuning on known versus unknown knowledge. Our findings show that this gap can be mitigated at the inference stage, either under out-of-distribution (OOD) settings or by using appropriate in-context learning (ICL) prompts (i.e., few-shot learning and Chain of Thought (CoT)). We prove this phenomenon theoretically from the perspective of knowledge graphs, showing that the test-time prompt may diminish or even overshadow the impact of fine-tuning data and play a dominant role in knowledge extraction. Ultimately, our results shed light on the interaction between finetuning data and test-time prompt, demonstrating that ICL can effectively compensate for shortcomings in fine-tuning data, and highlighting the need to reconsider the use of ICL prompting as a means to evaluate the effectiveness of fine-tuning data selection methods.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 35 of its 40 references that are in the map. First posted on arXiv 29 May 2025.

Builds on

35 of 40 references.

References · 35

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  5. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  6. 2023Mistral 7Bcited by 3,164
  7. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
  8. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  9. 2019Language Models as Knowledge Bases?cited by 1,936
  10. 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
  11. 2023FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generationcited by 1,282
  12. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,128
23 more
  1. 2022Transformers learn in-context by gradient descentcited by 732
  2. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  3. 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 573
  4. 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 532
  5. 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 458
  6. 2023Can We Edit Factual Knowledge by In-Context Learning?cited by 285
  7. 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 270
  8. 2024Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?cited by 232
  9. 2023GraphGPT: Graph Instruction Tuning for Large Language Modelscited by 226
  10. 2021Simple Entity-Centric Questions Challenge Dense Retrieverscited by 140
  11. 2024Unfamiliar Finetuning Examples Control How Language Models Hallucinatecited by 87
  12. 2023Unleashing the potential of prompt engineering for large language modelscited by 72
  13. 2024CLAMBER: A Benchmark of Identifying and Clarifying Ambiguous Information Needs in Large Language Modelscited by 54
  14. 2023Personas as a Way to Model Truthfulness in Language Modelscited by 47
  15. 2024Understanding Finetuning for Factual Knowledge Extractioncited by 32
  16. 2024Knowledge Graph-Enhanced Large Language Models via Path Selectioncited by 28
  17. 2024TSDS: Data Selection for Task-Specific Model Finetuningcited by 28
  18. 2023Supervised Knowledge Makes Large Language Models Better In-context Learnerscited by 20
  19. 2023Understanding Finetuning for Factual Knowledge Extraction from Language Modelscited by 13
  20. 2024Re-TASK: Revisiting LLM Tasks from Capability, Skill, and Knowledge Perspectivescited by 13
  21. 2023Wikibio: a Semantic Resource for the Intersectional Analysis of Biographical Eventscited by 8
  22. 2024Towards Reliable Latent Knowledge Estimation in LLMs: Zero-Prompt Many-Shot Based Factual Knowledge Extractioncited by 7
  23. 2023Knowledgeable In-Context Tuning: Exploring and Exploiting Factual Knowledge for In-Context Learningcited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2023Fine-tuning Language Models for Factuality
  2. 2024Large Language Models Can Better Understand Knowledge Graphs Than We Thought
  3. 2024Where is the answer? Investigating Positional Bias in Language Model Knowledge Extraction
  4. 2025"Lost-in-the-Later": Framework for Quantifying Contextual Grounding in Large Language Models
  5. 2023Survey on Factuality in Large Language Models: Knowledge, Retrieval and Domain-Specificity
  6. 2025On the generalization of language models from in-context learning and finetuning: a controlled study
  7. 2026Beyond the Prompt in Large Language Models: Comprehension, In-Context Learning, and Chain-of-Thought
  8. 2026Knowledgeless Language Models: Suppressing Parametric Recall for Evidence-Grounded Language Modeling