Skip to content

DearKarl/bayesian-methods-lab

Repository files navigation

Bayesian Methods Lab

From uncertainty signals to posterior risk to reliable action.

Bayesian Methods Lab is a doctoral research programme on reliable language, multimodal, and agentic AI. The laboratory studies how heterogeneous evidence can be converted into calibrated posterior hallucination risk, how that risk changes across models, domains, modalities, and interaction trajectories, and how an AI system should act when the cost of being wrong is not zero.

measure uncertainty  ->  infer posterior risk  ->  choose an action

The objective is not to prove that Bayesian methods always outperform deterministic alternatives. It is to identify when posterior inference adds measurable value and when that value supports safer decisions.

Research Map

Current Evidence

Part I shows comparable point-prediction accuracy across the current linear baselines while demonstrating the additional objects supplied by posterior inference: predictive distributions, intervals, posterior samples, and proper probabilistic scores. The repeated-split study does not support a general RMSE superiority claim for the Gibbs model.

The first Part 0 pilot reproduces three official LM-Polygraph estimators on a small prompt stress test. Likelihood and entropy signals recognize difficult inputs, but their ranking is less reliable for the generations that were actually fabricated or malformed. This gap between a raw signal and calibrated outcome risk motivates Part II.

Research Principles

  • Separate point accuracy, uncertainty quality, calibration, and decision utility.
  • Treat hallucination labels, verifier outputs, and agent agreement as noisy evidence.
  • Evaluate with proper scores, calibration, risk--coverage, subgroup robustness, and repeated comparisons.
  • Record reproduction scope and never label a paper-derived implementation as author-code reproduction.
  • Prefer transparent baselines and falsifiable claims over broad performance narratives.

Reproduce the Existing Studies

Part I: Bayesian regression foundation

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python experiments/run_boston_benchmark.py
python experiments/run_repeated_split_comparison.py
pytest -q

Part 0, Route 1: LM-Polygraph signal pilot

Prepare the isolated environment described in the route environment record, then run:

python part0_reproductions/01_uncertainty_signals/experiments/run_lm_polygraph_signal_pilot.py

The research programme is evolving. Results are retained when they are useful, revised when evidence requires it, and never promoted beyond the experiment that produced them.

About

Bayesian uncertainty, calibration, and hallucination-risk modeling for reliable language and multimodal AI.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages