arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.02444cs.LGstat.ML

通过稀疏高斯过程校准Transformer

Calibrating Transformers via Sparse Gaussian Processes

Imperial College London(伦敦帝国学院)

Wenlong Chen, Yingzhen Li

AI总结:

提出稀疏高斯过程注意力(SGPA),在Transformer的多头注意力输出空间进行贝叶斯推理,以校准不确定性,提升分布内校准和分布外鲁棒性。

摘要:

Transformer模型在自然语言处理、语音识别和计算机视觉等广泛应用中的预测任务上取得了巨大成功。将Transformer的成功扩展到安全关键领域需要校准的不确定性估计,而这方面的研究仍不充分。为了解决这一问题,我们提出了稀疏高斯过程注意力(SGPA),该方法直接在Transformer中多头注意力块(MHAs)的输出空间进行贝叶斯推理,以校准其不确定性。它用有效的对称核替换缩放点积操作,并使用稀疏高斯过程(SGP)技术来近似MHA输出的后验过程。在实验上,在文本、图像和图上的系列预测任务中,基于SGPA的Transformer取得了具有竞争力的预测精度,同时显著改善了分布内校准以及分布外鲁棒性和检测能力。

英文摘要:

Transformer models have achieved profound success in prediction tasks in a wide range of applications in natural language processing, speech recognition and computer vision. Extending Transformer's success to safety-critical domains requires calibrated uncertainty estimation which remains under-explored. To address this, we propose Sparse Gaussian Process attention (SGPA), which performs Bayesian inference directly in the output space of multi-head attention blocks (MHAs) in transformer to calibrate its uncertainty. It replaces the scaled dot-product operation with a valid symmetric kernel and uses sparse Gaussian processes (SGP) techniques to approximate the posterior processes of MHA outputs. Empirically, on a suite of prediction tasks on text, images and graphs, SGPA-based Transformers achieve competitive predictive accuracy, while noticeably improving both in-distribution calibration and out-of-distribution robustness and detection.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑