[Paper Review] Uncertainty Estimation and Calibration with Finite-State Probabilistic RNNs
This paper proposes ST-τ, a finite-state probabilistic RNN that estimates uncertainty via stochastic state transitions using the Gumbel-Softmax trick with a learnable temperature parameter. By sampling multiple inference paths, ST-τ quantifies predictive uncertainty, enabling well-calibrated probabilities, improved out-of-distribution detection, and better exploration-exploitation trade-offs in reinforcement learning without requiring Bayesian neural network complexity.
Uncertainty quantification is crucial for building reliable and trustable machine learning systems. We propose to estimate uncertainty in recurrent neural networks (RNNs) via stochastic discrete state transitions over recurrent timesteps. The uncertainty of the model can be quantified by running a prediction several times, each time sampling from the recurrent state transition distribution, leading to potentially different results if the model is uncertain. Alongside uncertainty quantification, our proposed method offers several advantages in different settings. The proposed method can (1) learn deterministic and probabilistic automata from data, (2) learn well-calibrated models on real-world classification tasks, (3) improve the performance of out-of-distribution detection, and (4) control the exploration-exploitation trade-off in reinforcement learning.
Motivation & Objective
- To address poor probability calibration in standard RNNs, especially for out-of-distribution inputs.
- To provide a method for uncertainty quantification in RNNs that avoids the complexity of Bayesian neural networks.
- To enable well-calibrated predictions and improved uncertainty-aware decision-making in real-world classification and reinforcement learning tasks.
- To support both deterministic and probabilistic automaton learning from data.
- To control the exploration-exploitation trade-off in partially observable environments through intrinsic uncertainty modeling.
Proposed method
- The model uses a finite set of k learnable states and computes a probability distribution over these states at each RNN time step.
- The next state is sampled using the Gumbel-Softmax trick, enabling differentiable sampling for gradient-based training.
- The temperature τ of the Gumbel-Softmax is learned during training, acting as an entropy regularizer to control uncertainty concentration.
- Prediction uncertainty is estimated by running multiple forward passes and computing the mean and variance of output probabilities.
- The method is applied to classification, OOD detection, and reinforcement learning tasks with minimal architectural changes.
- The approach is compatible with both LSTM and vanilla RNN architectures and supports both greedy and stochastic action selection.
Experimental results
Research questions
- RQ1Can a finite-state probabilistic RNN achieve well-calibrated uncertainty estimates without relying on Bayesian neural networks?
- RQ2How does the learned temperature parameter τ affect uncertainty quantification and model calibration?
- RQ3Can ST-τ improve out-of-distribution detection performance compared to standard RNNs and dropout-based methods?
- RQ4Does the stochastic state transition mechanism enhance exploration in partially observable reinforcement learning environments?
- RQ5Can ST-τ learn both deterministic and probabilistic automata from sequential data?
Key findings
- ST-τ achieves state-of-the-art performance in out-of-distribution detection on IMDB-based OOD tasks, with O-AUPR and O-AUROC scores outperforming baselines.
- Learning the temperature τ during training leads to significantly better OOD detection than fixed τ=1, especially with fewer states (k=2).
- In reinforcement learning, ST-τ achieves higher cumulative rewards with lower sample complexity than LSTM, VD, and BBB, particularly under stochastic policy settings.
- The model shows improved calibration on real-world classification tasks, with better alignment between predicted probabilities and actual correctness.
- ST-τ successfully learns deterministic and probabilistic automata from sequential data, demonstrating its ability to model structured sequence behavior.
- The ablation study confirms that a small number of states (k=2) with learned τ is sufficient for effective uncertainty modeling, avoiding overfitting and maintaining performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.