Lune

EMNLP Findings2024

Distance-aware Calibration for Pre-trained Language Models

Alberto Gasparin, Gianluca Detommaso

Abstract

Language Models for text classification often produce overconfident predictions for both indistribution and out-of-distribution samples, i.e. the model's output probabilities do not match their accuracy. Prior work showed that simple post-hoc approaches are effective for mitigating this issue, but are not robust in noisy settings, e.g., when the distribution shift is caused by spelling mistakes. In this work, we propose Distance Aware Calibration (DAC), a post-hoc approach that changes the confidence scores of a Language Model leveraging the distance between new samples been evaluated and the in-domain training set. We show that using DAC on top of a Language Model can improve in-domain calibration, robustness to different kind of distribution shift and also the model's ability to detect out-of-distribution samples. We provide an extensive evaluation on common text classification benchmark for both calibration and out-of-distribution detection tasks.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Beyond In-Domain Scenarios: Robust Density-Aware Calibration cites Out-of-Distribution Detection with Deep Nearest Neighbors
  • Out-of-Distribution Detection with Deep Nearest Neighbors cites Uncertainty Estimation Using a Single Deep Deterministic Neural Network
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on9

  1. Out-of-Distribution Detection with Deep Nearest NeighborsYiyou Sun, Yifei Ming, Xiaojin Zhu, Yixuan LiICML 2022 · 789 citations
  2. Uncertainty Estimation Using a Single Deep Deterministic Neural NetworkJoost van Amersfoort, Lewis Smith, Yee Whye Teh, Yarin GalICML 2020 · 529 citations
  3. On the Calibration of Pre-trained Language Models using Mixup Guided by Area Under the Margin and SaliencySeoyeon Park, Cornelia CarageaACL 2022 · 44 citations
  4. Uncertainty Quantification with Pre-trained Language Models: A Large-Scale Empirical AnalysisYuxin Xiao, Paul Pu Liang, Umang Bhatt, Willie Neiswanger et al.EMNLP Findings 2022 · 34 citations
  5. Beyond In-Domain Scenarios: Robust Density-Aware CalibrationChristian Tomani, Futa Kai Waseda, Yuesong Shen, Daniel CremersICML 2023 · 16 citations

Related papers

  1. Open-Vocabulary Calibration for Fine-tuned CLIPShuoyuan Wang, Jindong Wang, Guoqing Wang, Bob Zhang et al.ICML 2024 · 17 citations
  2. Transferable Post-hoc Calibration on Pretrained Transformers in Noisy Text ClassificationJun Zhang, Wen Yao, Xiaoqian Chen, Ling FengAAAI 2023 · 5 citations
  3. Preserving Pre-trained Features Helps Calibrate Fine-tuned Language ModelsGuande He, Jianfei Chen, Jun ZhuICLR 2023 · 1 citation
  4. Calibrating Zero-shot Cross-lingual (Un-)structured PredictionsZhengping Jiang, Anqi Liu, Benjamin Van DurmeEMNLP 2022 · 4 citations
  5. Your Pre-trained LLM is Secretly an Unsupervised Confidence CalibratorBeier Luo, Shuoyuan Wang, Sharon Li, Hongxin WeiNeurIPS 2025 · 22 citations
Dusk over the sea between two cliffs drawn in fine vertical lines