Towards a Holistic Evaluation of LLMs on Factual Knowledge Recall
Jiaqing Yuan, Lin Pan, Chung-Wei Hang, Jiang Guo, Jiarong Jiang, Bonan Min, Patrick Ng, Zhiguo Wang
TL;DR
This work addresses how well LLMs recall factual knowledge learned during pretraining and how factors such as model size, training regime, and prompting affect recall. It introduces FACT-Bench, a diverse, grounded benchmark built from Wikidata triplets with Wikipedia grounding, spanning 20 domains, 134 properties, and three answer types, and validated via human curation to estimate upper bounds. Through large-scale benchmarking of 31 models across 10 families, the study finds that pretraining lone often outperforms instruction-tuned variants, scaling improves performance, and GPT-4 remains far from an upper bound; it also reveals that counterfactual in-context exemplars significantly undermine recall in large models and that fine-tuning on known knowledge can enhance recall. The results offer practical guidance for prompting and fine-tuning LLMs and establish FACT-Bench as a rigorous, public resource for evaluating factual recall. Overall, the work highlights the importance of grounding prompts and training data in reliable knowledge sources to mitigate hallucinations in LLMs.
Abstract
Large language models (LLMs) have shown remarkable performance on a variety of NLP tasks, and are being rapidly adopted in a wide range of use cases. It is therefore of vital importance to holistically evaluate the factuality of their generated outputs, as hallucinations remain a challenging issue. In this work, we focus on assessing LLMs' ability to recall factual knowledge learned from pretraining, and the factors that affect this ability. To that end, we construct FACT-BENCH, a representative benchmark covering 20 domains, 134 property types, 3 answer types, and different knowledge popularity levels. We benchmark 31 models from 10 model families and provide a holistic assessment of their strengths and weaknesses. We observe that instruction-tuning hurts knowledge recall, as pretraining-only models consistently outperform their instruction-tuned counterparts, and positive effects of model scaling, as larger models outperform smaller ones for all model families. However, the best performance from GPT-4 still represents a large gap with the upper-bound. We additionally study the role of in-context exemplars using counterfactual demonstrations, which lead to significant degradation of factual knowledge recall for large models. By further decoupling model known and unknown knowledge, we find the degradation is attributed to exemplars that contradict a model's known knowledge, as well as the number of such exemplars. Lastly, we fine-tune LLaMA-7B in different settings of known and unknown knowledge. In particular, fine-tuning on a model's known knowledge is beneficial, and consistently outperforms fine-tuning on unknown and mixed knowledge. We will make our benchmark publicly available.
