SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.09358 · 2023

Empirical evaluation of Uncertainty Quantification in Retrieval-Augmented Language Models for Science

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 6 functions out of this paper's own repositories and ran 4 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
pnnl/expert2 canonical 4 of 6
FunctionStatusWhere it lives
get_alo_accuracy Ran pnnl/expert2/model/metrics_eval.py
code served (permissive licence) · get_code("3205c4709d8055e2")
get_em_accuracy Ran pnnl/expert2/model/metrics_eval.py
code served (permissive licence) · get_code("f4091badea744020")
get_entropy Ran pnnl/expert2/model/evaluation_scripts/custom_evaluate.py
code served (permissive licence) · get_code("274a5f5175c05893")
get_pm_accuracy Ran pnnl/expert2/model/metrics_eval.py
code served (permissive licence) · get_code("f60ebd1fa96c5391")
get_argument_value Not yet run pnnl/expert2/model/finetune_qa.py
code served (permissive licence) · get_code("210d1520a7ea9d7f")
set_parser_options Not yet run pnnl/expert2/model/finetune_qa.py
code served (permissive licence) · get_code("3d952765274002ec")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large language models (LLMs) have shown remarkable achievements in natural language processing tasks, producing high-quality outputs. However, LLMs still exhibit limitations, including the generation of factually incorrect information. In safety-critical applications, it is important to assess the confidence of LLM-generated content to make informed decisions. Retrieval Augmented Language Models (RALMs) is relatively a new area of research in NLP. RALMs offer potential benefits for scientific NLP tasks, as retrieved documents, can serve as evidence to support model-generated content. This inclusion of evidence enhances trustworthiness, as users can verify and explore the retrieved documents to validate model outputs. Quantifying uncertainty in RALM generations further improves trustworthiness, with retrieved text and confidence scores contributing to a comprehensive and reliable model for scientific applications. However, there is limited to no research on UQ for RALMs, particularly in scientific contexts. This study aims to address this gap by conducting a comprehensive evaluation of UQ in RALMs, focusing on scientific tasks. This research investigates how uncertainty scores vary when scientific knowledge is incorporated as pretraining and retrieval data and explores the relationship between uncertainty scores and the accuracy of model-generated outputs. We observe that an existing RALM finetuned with scientific knowledge as the retrieval data tends to be more confident in generating predictions compared to the model pretrained only with scientific knowledge. We also found that RALMs are overconfident in their predictions, making inaccurate predictions more confidently than accurate ones. Scientific knowledge provided either as pretraining or retrieval corpus does not help alleviate this issue. We released our code, data and dashboards at https://github.com/pnnl/EXPERT2.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2311.09358")
get_code_for_paper("2311.09358")
have("2311.09358")

Connect an agent — have() is free.