SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.20725 · NeurIPS · 2025

No-Regret Thompson Sampling for Finite-Horizon Markov Decision Processes with Gaussian Processes

Carl Ek, Sattar Vakili, Amanda Prorok, Jasmine Bayrooti

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 0 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2510.20725.json · badge: /api/ran/2510.20725.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
jbayrooti/TS_regret_study canonical (classifier label)
classifier basis: census
3 ran · 0 no recorded run
FunctionStatusWhere it lives
get_kernel Ran
ran; our contract draft was wrong, not the code
jbayrooti/TS_regret_study/gp_model.py
pointer only (licence: NONE) · get_code("de1cbdf1ff86eb66")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jbayrooti/TS_regret_study when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

maze Ran
ran; our contract draft was wrong, not the code
jbayrooti/TS_regret_study/envs.py
pointer only (licence: NONE) · get_code("b0a720da5b21a621")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jbayrooti/TS_regret_study when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

navigation Ran
ran; our contract draft was wrong, not the code
jbayrooti/TS_regret_study/envs.py
pointer only (licence: NONE) · get_code("81ab6724fc538c4c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jbayrooti/TS_regret_study when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Thompson sampling (TS) is a powerful and widely used strategy for sequential decision-making, with applications ranging from Bayesian optimization to reinforcement learning (RL). Despite its success, the theoretical foundations of TS remain limited, particularly in settings with complex temporal structure such as RL. We address this gap by establishing no-regret guarantees for TS using models with Gaussian marginal distributions. Specifically, we consider TS in episodic RL with joint Gaussian process (GP) priors over rewards and transitions. We prove a regret bound of Õ( KHΓ(KH)) over K episodes of horizon H, where Γ(•) captures the complexity of the GP model. Our analysis addresses several challenges, including the non-Gaussian nature of value functions and the recursive structure of Bellman updates, and extends classical tools such as the elliptical potential lemma to multi-output settings. This work advances the understanding of TS in RL and highlights how structural assumptions and model uncertainty shape its performance in finite-horizon Markov Decision Processes. 2016; Russo, 2019). In particular, Posterior Sampling for Reinforcement Learning (PSRL) (Osband et al., 2013;Osband and Van Roy, 2017) achieves Õ(H √ SAT ) Bayesian regret, where H is the horizon, S the number of states, A the number of actions, and T the total number of steps. Building on their analyses, Fan et al. (2018) studied TS in continuous MDPs and established Bayesian regret bounds. Dann et al. ( 2021) also considered continuous MDPs, but under linearity assumptions, and derived tighter regret guarantees although their bounds scale poorly with state dimensionality. In the kernelized RL setting, Chowdhury and Gopalan (2019) analyzed TS where the transition probability distribution is assumed to be a fixed function in a reproducing kernel Hilbert space (RKHS) and derived regret bounds that depend on the maximum information gain of the kernel. Our work differs fundamentally from these approaches in both modeling and analysis. We model the reward and transition functions jointly as a multi-output GP and our analysis provides high-probability bounds that hold uniformly across all problem instances, unlike Bayesian regret bounds that are averaged over the distribution of all problems. Consequently, our approach requires different proof techniques and much of the analysis we present is novel, including Theorem 1 on confidence bounds for composed GPs, Corollary 1 on high-probability value function bounds, and Lemmas 1 and 2 on multi-output elliptical potential bounds. Our assumptions are also more mild than in prior analyses. For example, PSRL (Osband et al., 2013;Osband and Van Roy, 2017) assumes finite state and action spaces, linear MDP methods (Dann et al., 2021;Jin et al., 2020) assume linearity in both rewards and transitions, and RKHS-based approaches (Chowdhury and Gopalan, 2019) assume that the transition dynamics are modeled as fixed functions within a known RKHS, effectively treating each component independently. In contrast, our multi-output GP framework flexibly captures correlations between reward and transition without requiring assumptions on discretization, linearity, or independence.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2510.20725")
get_code_for_paper("2510.20725")
have("2510.20725")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2510.20725.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2510.20725.svg)](https://syntology.ai/paper/2510.20725)

Connect an agent — have() is free.