arXiv:2610.32514cs.LGOct 2026

Manuscript Offprint

arXiv:2610.32514

Amortized Thompson Sampling and Efficient Information-Directed Sampling for Simulator-Based Design

Michal Kobiela, Michael U. Gutmann

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Thompson sampling is a widely used strategy for sequential decision-making under uncertainty, offering a principled way to balance exploration and exploitation. This strategy involves maximizing a target objective under a single sample drawn from the current belief over unknown quantities. Conventionally, this optimization is performed once the belief has been inferred from data, and it becomes computationally burdensome when many Thompson samples are required, especially in continuous action spaces. In this work, we introduce an approach that amortizes this process ahead of time, before any data is collected, so that an approximation of the full Thompson sampling distribution is available immediately once observations arrive. We employ this approach to solve the multi-round setting, involving sequential data acquisition and Thompson-sample recommendation across rounds. Beyond accelerating Thompson sampling, our approach enables efficient estimation of expected information gain about the optimal action. This can be used to select more informative Thompson samples or to obtain maximally informative designs with optimization. Combining this estimate of expected information gain with immediate regret supports information-directed sampling (IDS), which can outperform Thompson sampling by explicitly balancing these two quantities. We demonstrate our approach on two simulator-based design problems in synthetic biology, where the simulators have intractable likelihoods.

1 INTRODUCTION

Thompson sampling is a widely used strategy for sequential decision-making under uncertainty. Given the observations collected so far, it samples a plausible value of the unknown quantities from their posterior distribution and selects an action that is optimal under that sample. This provides a principled mechanism for balancing exploration and exploitation and has strong theoretical guarantees under established assumptions. The strategy was first proposed in 1933 by Thompson et al. (1933), and later analyzed by Russo & Van Roy (2014b), who provided Bayesian regret bounds for this strategy. The method proved to be effective as decision making principle for multi-armed bandits (Chapelle & Li, 2011) and Bayesian optimization (Eriksson et al., 2019; Garnett, 2023). However, conventional Thompson sampling can be burdensome in continuous action domains because each posterior sample requires solving a separate optimization problem.

To illustrate how this computational cost recurs, consider a laboratory using a simulator to design experiments. First, generating multiple Thompson samples within a single experimental round requires solving a separate optimization problem for each posterior sample. Multiple samples may be needed to obtain a batch of recommendations or to characterize uncertainty over the optimal action, see (see e.g. Kobiela et al., 2026a). Second, after each experiment, the posterior changes as new data become available, requiring inference and optimization to be performed again. When delays between experiments incur costs, the next action should be available with minimal latency. Third, when the method is deployed under different conditions, for example, in another laboratory with different unknown experimental conditions, these steps must be repeated using observations from the new setting. These repeated computations are particularly expensive when the objective is evaluated using a costly, stochastic, or non-differentiable simulator with continuous action space.

In this work, we amortize the optimization underlying Thompson sampling before data collection. Our approach trains a parameterized policy to map values of the unknown model parameters to approximately reward-maximizing actions under those parameter values. We train this policy using policy gradient method, allowing the approach to handle stochastic and non-differentiable simulators. The trained policy is then combined with simulation-based inference (SBI): once experimental observations become available, SBI provides samples from the posterior over the unknown parameters, and passing these samples through the policy produces approximate Thompson samples. In this way, the costly optimization is performed during offline training rather than repeatedly for each posterior sample and experimental round.

We also develop a second amortized sampling route that bypasses explicit parameter inference. We train an action flow, implemented as a conditional normalizing flow, to represent a conditional distribution over approximate Thompson samples given an experimental history. Training targets are generated by applying the pretrained policy to parameter values sampled from the prior. Both approaches support sequential design through round-specific flows trained offline over a prescribed experimental horizon and conditioned at deployment on the evolving history of actions and observations. The pretrained models can be reused across experimental settings whose unknown conditions are represented by the simulator and training prior.

Efficient access to an approximate distribution over optimal actions, together with amortization across design rounds, provides capabilities beyond accelerating conventional Thompson sampling. Standard Thompson sampling balances exploration and exploitation implicitly through posterior randomization, without explicitly evaluating the information value of a recommendation. To enable more directed exploration, the key observation is that expected information gain about the optimal action is the expected reduction in the entropy of the Thompson-sampling distribution after observing the outcome of an experiment from predictive distribution. The tractable conditional density of the action flow enables efficient estimation of this quantity, allowing us to score and select Thompson-sampled candidates to avoid uninformative measurements and focus experimental effort on identifying the optimal action. The parameter flows additionally support one-step look-ahead regret estimation by conditioning on hypothetical observations. This also encourages exploration as the immediate action outcome is unimportant and only expected outcome of the future Thompson sample is used.

In contrast, selecting actions by minimizing expected immediate regret favors exploitation: these actions maximize expected reward under the current belief but may provide little information for future rounds. Together, these criteria allow explicit control over the exploration-exploitation trade-off beyond posterior randomization. For example, in the final round of experimental design, an exploitative action may be preferable, whereas earlier rounds may benefit from informative experiments that help identify the optimal action, but not necessarily yield good reward. Neither purely exploitative nor purely information-seeking actions are necessarily preferable throughout an experiment: exploitation can leave useful alternatives unexplored, while information-seeking actions may incur substantial immediate regret. Information-directed sampling offers a way to balance these competing objectives and can often outperform standard Thompson samples (Russo & Van Roy, 2014a). Thanks to efficient estimation of information gain our approach allows to acquire such acquisition samples.

Our method supports two approaches to action selection. First, we can generate multiple approximate Thompson samples and use decision-theoretic criteria to select a desirable candidate. These include expected information gain about the optimal action, expected immediate regret, one-step look-ahead regret, and an information-directed criterion that balances immediate regret against information gain. This approach avoids an additional acquisition-optimization step while allowing more explicit control over exploration and exploitation than selecting a Thompson sample.

Alternatively, we can optimize the chosen criterion directly over the admissible action space, using the flows to approximate the criterion rather than to generate candidate actions. A finite set of

Thompson samples may miss actions that optimize the acquisition criterion. Direct optimization can also identify revealing actions outside the support of the Thompson-sampling distribution: actions that are not plausible reward maximizers under the current belief but provide valuable information about which action is optimal. The flows make these criteria efficient to estimate by providing tractable conditional densities and rapid conditioning on hypothetical observations, although the acquisition criterion computation and optimization introduces additional latency, as compared to amortized Thompson samples which are available immediately, once the data is acquired.

We demonstrate the proposed framework on two model-based design problems from synthetic biology. The first concerns maximizing fluorescent-protein production using a host-aware simulator. The second concerns the design of a genetic oscillator represented by a highly stochastic and non-differentiable model. These applications provide challenging test cases involving intrinsic stochasticity, uncertain experimental conditions, and simulator-based optimization, while illustrating the broader applicability of the framework to scientific design problems.

Contributions. Our contributions fall into two groups: amortizing Thompson sampling and using the resulting models for decision-focused experimental design.

• Amortized Thompson sampling through parameter inference. We train a parameter-conditioned policy that maps unknown model parameters to approximately reward-maximizing actions. Combined with amortized simulation-based inference, this approach generates approximate Thompson samples without repeated online inference or reward optimization.

• Direct amortization with an action flow. We introduce a conditional normalizing flow that approximates the Thompson-sampling distribution directly from experimental histories, bypassing explicit parameter inference when generating actions. Its tractable conditional density also enables estimation of entropy and information gain about the optimal action.

• Decision-focused selection among Thompson samples. We combine the learned models to efficiently estimate expected immediate regret, expected information gain about the optimal action, one-step look-ahead regret, and information-directed criteria. These criteria enable selection among Thompson-sampled candidates, providing explicit control over exploration and exploitation beyond posterior randomization.

• Acquisition optimization beyond Thompson samples. We use the same models to estimate acquisition criteria during direct optimization over the admissible action space. This avoids restricting decisions to a finite set of Thompson samples and allows selection of informative experiments that need not themselves be plausible reward maximizers.

References (32)