Skip to main content
QUICK REVIEW

[Paper Review] Uncertainty-Aware Attention for Reliable Interpretation and Prediction

Jay Heo, Haebeom Lee|arXiv (Cornell University)|May 24, 2018
Machine Learning in HealthcareComputer Science29 references34 citations
TL;DR

This paper proposes Uncertainty-Aware Attention (UA), a variational inference-based attention mechanism that models input-dependent uncertainty by learning instance-specific variance in attention weights. By generating attention with learned uncertainty, UA improves prediction reliability, calibration, and clinical interpretability on electronic health record tasks, outperforming baselines in accuracy, uncertainty calibration (ECE), and safe prediction via 'I don’t know' decisions.

ABSTRACT

Attention mechanism is effective in both focusing the deep learning models on relevant features and interpreting them. However, attentions may be unreliable since the networks that generate them are often trained in a weakly-supervised manner. To overcome this limitation, we introduce the notion of input-dependent uncertainty to the attention mechanism, such that it generates attention for each feature with varying degrees of noise based on the given input, to learn larger variance on instances it is uncertain about. We learn this Uncertainty-aware Attention (UA) mechanism using variational inference, and validate it on various risk prediction tasks from electronic health records on which our model significantly outperforms existing attention models. The analysis of the learned attentions shows that our model generates attentions that comply with clinicians' interpretation, and provide richer interpretation via learned variance. Further evaluation of both the accuracy of the uncertainty calibration and the prediction performance with "I don't know" decision show that UA yields networks with high reliability as well.

Motivation & Objective

  • To address the unreliability of conventional attention mechanisms in safety-critical applications like healthcare, where models may be overconfident and poorly calibrated.
  • To enable deep learning models to recognize their own uncertainty by modeling instance-specific predictive uncertainty in attention weights.
  • To improve model reliability through uncertainty-aware prediction, including the ability to defer decisions with 'I don’t know' when uncertain.
  • To provide richer, clinically aligned interpretations by learning attention variances that reflect model confidence.

Proposed method

  • Formulates attention weights as Gaussian distributions with input-dependent mean and variance, enabling heteroscedastic uncertainty modeling.
  • Uses variational inference to train the uncertainty-aware attention mechanism end-to-end, jointly optimizing for attention and uncertainty.
  • Decouples mean and variance prediction in the attention mechanism, allowing independent modeling of attention strength and uncertainty.
  • Employs Monte Carlo dropout and stochastic Gaussian sampling to estimate prediction uncertainty for reliability evaluation.
  • Introduces a 'I don’t know' (IDK) decision mechanism by deferring predictions when uncertainty exceeds a threshold.
  • Validates the method on multiple EHR tasks, including sepsis and mortality prediction, using Expected Calibration Error (ECE) and accuracy under IDK.

Experimental results

Research questions

  • RQ1Can attention mechanisms be made more reliable by explicitly modeling instance-specific uncertainty in attention weights?
  • RQ2How does uncertainty-aware attention improve prediction calibration compared to deterministic or stochastic attention baselines?
  • RQ3To what extent does the learned uncertainty in attention align with clinical interpretations of patient risk?
  • RQ4Can the model improve safety by deferring predictions via an 'I don’t know' option when uncertain?
  • RQ5Does uncertainty-aware attention lead to better performance and more reliable predictions on real-world EHR risk prediction tasks?

Key findings

  • UA significantly outperformed RETAIN-DA, RETAIN-SA, and UA-independent baselines in prediction accuracy across eight EHR tasks, with mean ECE values of 4.22 ± 0.82 (PhysioNet Mortality) and 1.78 ± 0.41 (Sepsis), showing superior calibration.
  • The model achieved a 30% reduction in incorrect predictions at equivalent correct prediction ratios when using the 'I don’t know' option, demonstrating higher reliability.
  • Clinician-validated attention interpretations showed that UA-generated attentions better aligned with clinical reasoning than baseline models.
  • Uncertainty-aware attention produced richer interpretations by learning meaningful variance patterns that reflect model confidence per input.
  • UA+ (with additional uncertainty modeling) further improved calibration, especially on low-frequency tasks like pancreatic cancer prediction.
  • The method demonstrated robust performance across diverse EHR datasets, including PhysioNet, MIMIC, and Pancreatic, with consistent gains in both accuracy and reliability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.