Skip to content
nsdmlkPublic

About

research benchmark for auditing action confidence calibration in value-based reinforcement learning

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Orchid

Orchid is a research benchmark for auditing action confidence calibration in value-based reinforcement learning. Using small tabular MDPs where the exact optimal value function is computed via Value Iteration, we measure whether an agent's reported confidence in its chosen action actually reflects optimality—and how much expected reward is lost on overconfident mistakes.

Research Questions

  1. Trustworthiness: When an uncertainty-aware RL agent reports high confidence ($\ge 90%$), is its selected action genuinely optimal?
  2. Failure Modes: How do long horizons ($\gamma$), TD-bootstrapping, and heavy-tailed reward noise affect calibration and High-Confidence Regret?
  3. Utility vs. Calibration: Does using uncertainty for exploration (Thompson Sampling / UCB) or TD-target weighting improve learning, and does it help or hurt confidence calibration?

Core Methodology

  • Exact Oracle Evaluation: Every environment exposes its transition kernel $P$ and true expected reward $R$, allowing exact $Q^*$ computation (tol=1e-10) and policy-weighted occupancy evaluation $d_\pi(s)$.
  • Metrics:
    • Action-ECE & Brier Score — probabilistic calibration of action optimality.
    • OER@τ (Overconfident Error Rate) — error rate conditioned on reported confidence $\ge \tau$.
    • HC-Regret@τ (High-Confidence Regret) — expected suboptimality $V^(s) - Q^(s, \hat{a})$ on high-confidence errors.
    • AURC — tie-safe Area Under the Risk-Coverage Curve.
  • Unified Agent Interface: All agents implement predict_q_samples(states) -> (M, N_states, N_actions), enabling identical evaluation across ensembles, dropout, distributional critics, and Bayesian baselines.

Repository Structure

orchid/
├── configs/                      # Experiment grids (gamma, noise, episode budgets)
├── src/
│   ├── envs/
│   │   ├── tabular_mdps.py       # Garnet, RiverSwim, and Cliff-Trap (planned)
│   │   └── reward_noise.py       # Zero-mean Gaussian & heavy-tailed outlier noise
│   ├── oracle.py                 # Value Iteration, occupancy measure, ECE/OER/Regret/AURC
│   ├── agents/
│   │   ├── bootstrapped_dqn.py   # Vectorized Bootstrapped DQN + Randomized Prior Functions
│   │   ├── mc_dropout_dqn.py     # MC Dropout DQN (planned)
│   │   ├── ensemble_qrdqn.py     # Ensemble QR-DQN (planned)
│   │   └── bayes_tabular.py      # Tabular Bayesian Q-learning reference (planned)
│   ├── calibration.py            # Post-hoc & gap-normalized conformal calibration (planned)
│   └── train_loop.py             # Passive (ε-greedy), Thompson, UCB, and TD-weighted loops
├── scripts/
│   ├── sanity_check_oracle.py    # Fast oracle & metric verification without training
│   ├── run_pilot.py              # Parallel CPU pilot runner (Garnet & RiverSwim)
│   └── plot_figures.py           # Learning curve & calibration plots
├── RES_LOG.md                    # Ongoing experiment log and pilot findings
├── requirements.txt
└── README.md

About

research benchmark for auditing action confidence calibration in value-based reinforcement learning

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages