paper-with-me

Papers

Bag of Tricks for In-Distribution Calibration of Pretrained Transformers

2023-02-13 · Jaeyoung Kim, Dongbin Na, Sungchul Choi, Sungbin Lim

While pre-trained language models (PLMs) have become a de-facto standard promoting the accuracy of text classification tasks, recent studies find that PLMs often predict over-confidently. Although various calibration methods have been proposed, such as ensemble learning and data augmentation, most of the methods have been verified in computer vision benchmarks rather than in PLM-based text classification tasks. In this paper, we present an empirical study on confidence calibration for PLMs, addressing three categories, including confidence penalty losses, data augmentations, and ensemble methods. We find that the ensemble model overfitted to the training set shows sub-par calibration performance and also observe that PLMs trained with confidence penalty loss have a trade-off between calibration and accuracy. Building on these observations, we propose the Calibrated PLM (CALL), a combination of calibration techniques. The CALL complements the drawbacks that may occur when utilizing a calibration method individually and boosts both classification and calibration accuracy. Design choices in CALL's training procedures are extensively studied, and we provide a detailed analysis of how calibration techniques affect the calibration performance of PLMs.

📄 PDF Abstract BibTeX arXiv:2302.06690

Code (1)

kimjeyoung/plm_call 공식 구현

Tasks

ClassificationData AugmentationEnsemble Learningtext-classificationText Classification

Similar Papers 제목 키워드 기반

Transfer Learning with Pretrained Remote Sensing Transformers

2022-09-28 · Anthony Fuller, Koreen Millard, James R. Green

Although the remote sensing (RS) community has begun to pretrain transformers (intended to be fine-tuned on RS tasks), it is unclear how these models perform under distribution shifts. Here, we pretrain a new RS transfor…

Transfer Learning

Pretrained Transformers Improve Out-of-Distribution Robustness

2020-04-13 · ACL 2020 6 · Dan Hendrycks, Xiaoyuan Liu, Eric Wallace, Adam Dziedzic 외

Although pretrained Transformers such as BERT achieve high accuracy on in-distribution examples, do they generalize to new distributions? We systematically measure out-of-distribution (OOD) generalization for seven NLP d…

Transformer tricks: Precomputing the first layer

2024-02-20 · Nils Graef

This micro-paper describes a trick to speed up inference of transformers with RoPE (such as LLaMA, Mistral, PaLM, and Gemma). For these models, a large portion of the first transformer layer can be precomputed, which res…

Bag of Tricks for Retail Product Image Classification

2020-01-12 · Muktabh Mayank Srivastava

Retail Product Image Classification is an important Computer Vision and Machine Learning problem for building real world systems like self-checkout stores and automated retail execution evaluation. In this work, we prese…

ClassificationGeneral Classificationimage-classificationImage Classification

UAT-LITE: Inference-Time Uncertainty-Aware Attention for Pretrained Transformers

2026-02-03 · Elias Hossain, Shubhashis Roy Dipta, Subash Neupane, Rajib Rana 외 arxiv

Neural NLP models are often miscalibrated and overconfident, assigning high confidence to incorrect predictions and failing to express uncertainty during internal evidence aggregation. This undermines selective predictio…