paper-with-me

홈 › Papers

How Can We Know When Language Models Know? On the Calibration of Language Models for Question Answering

2020-12-02 · Zhengbao Jiang, Jun Araki, Haibo Ding, Graham Neubig

Recent works have shown that language models (LM) capture different types of knowledge regarding facts or common sense. However, because no model is perfect, they still fail to provide appropriate answers in many cases. In this paper, we ask the question "how can we know when language models know, with confidence, the answer to a particular query?" We examine this question from the point of view of calibration, the property of a probabilistic model's predicted probabilities actually being well correlated with the probabilities of correctness. We examine three strong generative models -- T5, BART, and GPT-2 -- and study whether their probabilities on QA tasks are well calibrated, finding the answer is a relatively emphatic no. We then examine methods to calibrate such models to make their confidence scores correlate better with the likelihood of correctness through fine-tuning, post-hoc probability modification, or adjustment of the predicted outputs or inputs. Experiments on a diverse range of datasets demonstrate the effectiveness of our methods. We also perform analysis to study the strengths and limitations of these methods, shedding light on further improvements that may be made in methods for calibrating LMs. We have released the code at https://github.com/jzbjyb/lm-calibration.

📄 PDF Abstract BibTeX arXiv:2012.00955

Code (1)

jzbjyb/lm-calibration 공식 구현 tf

Tasks

Common Sense ReasoningQuestion Answering

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Linear Warmup With Cosine Annealing Linear Warmup With Cosine Annealing is a learning rate schedule where we increase the learning rate linearly for $n$ updates and then anneal according to a cosine schedule…
Discriminative Fine-Tuning Discriminative Fine-Tuning is a fine-tuning strategy that is used for ULMFiT type models. Instead of using the same learning rate…
Weight Decay 설명 없음
Adam 설명 없음
GPT-2 GPT-2 is a Transformer architecture that was notable for its size (1.5 billion parameters) on its release. The…
BART BART is a denoising autoencoder for pretraining sequence-to-sequence models. It is trained by (1) corrupting text…

Similar Papers 제목 키워드 기반

Hard Gate Knowledge Distillation -- Leverage Calibration for Robust and Reliable Language Model

2022-10-22 · Dongkyu Lee, Zhiliang Tian, Yingxiu Zhao, Ka Chun Cheung 외

In knowledge distillation, a student model is trained with supervisions from both knowledge from a teacher and observations drawn from a training data distribution. Knowledge of a teacher is considered a subject that hol…

Knowledge DistillationLanguage ModelingLanguage ModellingSentence+1

LPC: A Logits and Parameter Calibration Framework on Continual Learning

2021-12-17 · ACL ARR December 2022 12 · Anonymous

Deep learning based pre-trained natural language processing (NLP) models typically pre-train on large unlabeled corpora first, then fine-tune on new tasks. When we execute such a paradigm on continuously sequential tasks…

Continual Learning

When Models Know When They Do Not Know: Calibration, Cascading, and Cleaning

2026-01-12 · Chenjie Hao, Weyl Lu, Yuko Ishiwaka, Zengyi Li 외 arxiv

When a model knows when it does not know, many possibilities emerge. The first question is how to enable a model to recognize that it does not know. A promising approach is to use confidence, computed from the model's in…

When to Trust: A Causality-Aware Calibration Framework for Accurate Knowledge Graph Retrieval-Augmented Generation

2026-01-14 · Jing Ren, Bowen Li, Ziqi Xu, Xikun Zhang 외 arxiv

Knowledge Graph Retrieval-Augmented Generation (KG-RAG) extends the RAG paradigm by incorporating structured knowledge from knowledge graphs, enabling Large Language Models (LLMs) to perform more precise and explainable …

Knowledge Graphs

Do Large Language Models Know What They Don't Know? Kalshibench: A New Benchmark for Evaluating Epistemic Calibration via Prediction Markets

2025-12-17 · Lukas Nel arxiv

A well-calibrated model should express confidence that matches its actual accuracy -- when it claims 80\% confidence, it should be correct 80\% of the time. While large language models (LLMs) have achieved remarkable per…